How to enable httpsrc plug-in in my gstreamer? - c

I've tried to play an mp3 file or stream retrieved via http with the following command
gst-launch httpsrc location=http://domain.com/music.mp3 ! mad ! osssink
but a get the following error
ERREUR : le pipeline n'a pas pu être construit : pas d'élément « httpsrc ».
Which says that the pipeline could not be constructed due to the missing of httpsrc element.
After googling around I did not found how to enable/install httpsrc plug-ins
I've tried
sudo apt-get install gstreamer-httpsrc
sudo apt-get install gstreamer0.10-httpsrc
without success.
I'm using the default gstreamer installation which came with my Ubuntu 12.0.4 distribution.
Do i missing something or Is there any other way to do the same work even witout httpsrc
thanks for any reply !

The element you want to use is called souphttpsrc. You can run gst-inspect | grep http to see all installed elements matching http.

Related

net/rime.h error using Cooja, how can I install it but not just download it?

I am trying to do a simple simulation in Cooja (literally the example on the Contiki website here).
However I have an error message linked to my #include "net/rime.h", Cooja outputs the following message while compiling:
fatal error: net/rime.h: No such file or directory
I thought that it came with Contiki when I've installed contiki-ng following the procedure on the official website. My quick fix was to download the file from the github repository and store it in my active directory. However I find it quite ugly, is there a way to install this library ? Because I haven't found a way yet.
Thanks a lot.
It's a question close to this one.
Which kind of method are you using to start Cooja? Directly on the SO? Over Docker?
I recommend you de Docker way, and remember to apply the command
git submodule update --init --recursive
after cloning the git repository.
Also, if you are using Docker, check if the binding of the Contiki folders between de Host and the Container are correctly made.

Gstreamer tutorial gives distorted/warped video

I am running Ubuntu (18.04.01 LTS) on a virtual machine (VMware Fusion 11.0.0) and I want to go through the first basic GStreamer tutorial. This example should play a short video from the internet using the playbin element. However, when I compile and run the code, the resulting video is distorted/warped. When I download the file and play it directly from the desktop, everything looks fine. Same problem with other video files.
I have successfully followed the instructions how to install GStreamer (gstreamer-1.0, version 1.14.1) on Ubuntu and all the required additional plugins:
sudo apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools
The same problem occurs when I play the video using gst-launch-1.0 directly in the terminal:
gst-launch-1.0 playbin uri=https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm
Anybody has an idea what's going on here?
Thanks in advance.
As Florian pointed out in the comments: Use another renderer instead. For me, it was xvimagesink which caused the troubles.
Either
gst-launch-1.0 playbin video-sink=ximagesink uri=...
or
gst-launch-1.0 playbin video-sink=glimagesink uri=...
worked fine.

Deployd Failing to Start - mongodb issue

Have tried to troubleshoot this issue from previous posts, but no joy so here goes.
I am working through the Apress Pro Angular book and am on a different machine today and have all the content I need to work from but Deployd is failing with the following error:
dpd -p 5500 sportsstore/app.dpd
Failed to start MongoDB (Make sure 'mongod' are in your $PATH or use dpd --mongod option. Ref: http://docs.deployd.com/docs/basics/cli.html)
bye
I installed Mongodb view homebrew and am just a bit unsure what I need to do. The deployd docs aren't helping.
I am running this on OSX Yosemite and Mongodb was installed via homebrew.
Thanks in advance :)
I have had same problem today, try to open command prompt in Administrator mode. Its working for me like this.

How to stop apache2 when `apachectl stop` doesn't stop it?

I am using OSX El Capitan. This comes with the default apache where I find stuff at private/etc/apache2. I also had apache2 installed via macports which was stored in opt/local/apache2.
When I
sudo apachectl stop
and go to localhost it still displays that "It works!". This document is found in /opt/local/apache2/htdocs/index.html.
My first thought was to remove apache2 from opt using
sudo port uninstall apache2
This hasn't appeared to have removed anything.
Which apache am I running? How can I stop it? Ideally, I would like to return my apache-ness to the default of El Capitan: what needs to be done to achieve that?

Opendaylight (odl) ovs-vsctl not found error

I am following this tutorial: https://wiki.opendaylight.org/view/Getting_started
I am trying to use the following code in opendaylight using karaf
ovs-vsctl show
But the command window says Command not found: ovs-vsctl
I have installed all the necessary libraries and the local host server (http://localhost:8181/dlux/index.html) is running fine. But somehow odl can't find ovs.
Can anyone tell me what's the error? I am running win 8.
Thank you
You need to run this command outside of karaf terminal.
Firstly, you should have ovs(Open Virtual Switch) or Mininet installed, and then create one or two open switches.
Basically, you started the SDN controller in karaf, and now in the step you are encountering problem, the switches need to be assigned ODL controller as their manager.
You must check also that ovsdb is already installed in karaf.
For that, try to execute the next command:
feature:list | grep ovsdb
That command will display all the ovsdb components/features that are available in your karaf distribution. The third column will indicate you if a given component is already installed or not (if you see an X, that means that the component is installed). If you want to install a component/feature:
feature:install <name_of_the_feature>
After that, try to execute it outside of karaf, as Sidhant01 has indicated you before.
Try to do it with sudo:
sudo ovs-vsctl show.
If you want to configure ovsdb in an active mode:
tools-vm:~$ sudo ovs-vsctl set-manager tcp:127.0.0.1:6640
tools-vm:~$ sudo ovs-vsctl show
98d8cf7a-44b1-4b02-a60c-7d832409d06f
Manager "tcp:127.0.0.1:6640"
is_connected: true
ovs_version: "2.0.2"
Cheers

Resources