I am working on a ROS project where I need to stream audio from a raspberry
PI 3 to my computer. At the moment I am working only on the raspberry and I have worked out a correct gstreamer pipeline to be used, which is the following: gst-launch-0.10 alsasrc device=hw:1,0 ! audioconvert ! audioresample ! alsasink Anyway, when I use the ROS package audio_common ( <href="http://wiki.ros.org/audio_common"> ), in particular the audio_capture feature ( ) the error "[ERROR] [1506519371.050052798]: Failed to create encoder element" pops out. I tried a lots of difference set-ups and several plugins, but since gstream is correctly working when I launch it from the command line, I am quite sure that it is due to some configuration issues. Thanks a lot in advance. <https://github.com/ros-drivers/audio_common/blob/master/audio_capture/src/audio_capture.cpp> -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Le 27 sept. 2017 4:02 PM, "piti_wity" <[hidden email]> a écrit : I am working on a ROS project where I need to stream audio from a raspberry Did you select mp3 format, and if so, do you have lamemp3enc element installed?
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Thanks for your reply Nicolas.
I did select mp3 as format, and I think that you are right, the problem is that I don't have lamemp3enc installed. In fact if I try a general pipe as: gst-launch-0.10 -e audiotestsrc ! audioconvert ! lamemp3enc ! filesink location=audio.mp3 I get: WARNING: erroneous pipeline: no element "lamemp3enc" How can I install it from the command line? I am using a raspberry Pi 3 with Raspbian GNU/Linux 8.0 (jessie). -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Nicolas Dufresne-5
Thanks a lot for the reply!
Did you select mp3 format? Yes I did and if so, do you have lamemp3enc element installed? No, I haven't. Infact I tried to run a generic pipelline with lamemp3enc: gst-launch-1.0 -v audiotestsrc wave=sine num-buffers=100 ! audioconvert ! lamemp3enc ! filesink location=sine.mp3 and I got an error saying that it is not present. However, I tried different ways to install the related plugins, but I have always error on locating packages. I am using a Raspberry pi 3 with Raspbian GNU/Linux 8.0 (jessie) on it. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
UPDATE: I have found the correct packages, however now I get a different
error concerning the media type. I attach a screenshot, so that on the left you can find all the parameters. <http://gstreamer-devel.966125.n4.nabble.com/file/t377998/Schermata_da_2017-09-28_15-40-15.png> -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by piti_wity
Le jeudi 28 septembre 2017 à 01:25 -0700, piti_wity a écrit :
> Thanks for your reply Nicolas. > > I did select mp3 as format, and I think that you are right, the > problem is > that I don't have lamemp3enc installed. In fact if I try a general > pipe as: > > gst-launch-0.10 -e audiotestsrc ! audioconvert ! lamemp3enc ! > filesink > location=audio.mp3 > > I get: > WARNING: erroneous pipeline: no element "lamemp3enc" > > How can I install it from the command line? I am using a raspberry Pi > 3 with > Raspbian GNU/Linux 8.0 (jessie). using "apt search plugins-ugly"). Nicolas _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (201 bytes) Download Attachment |
Thanks, I installed the correct plugin, but now I have problem about the
media type, I attached a screenshot in the previous reply. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by piti_wity
On 09/28/2017 03:40 PM, piti_wity wrote:
> UPDATE: I have found the correct packages, however now I get a different > error concerning the media type. I attach a screenshot, so that on the left > you can find all the parameters. > > <http://gstreamer-devel.966125.n4.nabble.com/file/t377998/Schermata_da_2017-09-28_15-40-15.png> > > I would report this on the ros-audio package. Only likely explanation is insufficient error handling on the ros-node. Stefan _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Thanks Stefan, I have reported the error more than a week ago, still no
responses. Hope they will find out something. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
On 10/04/2017 11:56 AM, piti_wity wrote:
> UPDATE: I manage to solve the ros problem, now I have another error as: > > [ERROR] [1507110828.315476430]: gstreamer: Could not open audio device for > recording. Could you rerun your command with GST_DEBUG="*:3" this will give us more infomation, in particullar which audio device it tried to open - the "*:3" means all categories and the 3 is everything up to FIXME (1=ERROR, 2=WARNING, 3=FIXME). Stefan > Any idea of that? I attach the screenshoot > > <http://gstreamer-devel.966125.n4.nabble.com/file/t377998/Schermata_da_2017-10-04_11-53-54.png> > > > > > > > -- > Sent from: http://gstreamer-devel.966125.n4.nabble.com/ > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |