Beginner Using a2dpsink, avdtpsink, and rtpsbcpay

Chuck Crisler ccrisler at mutualink.net
Wed Feb 13 10:18:17 PST 2013


I don't have much of an idea what you are doing, so I can't say why it is
failing. However, errors like these are often caused by configuration/setup
errors. Getting more information helps solve those. So you need logging.

Here is the complete resource:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstInfo.html

Here is a summary:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/section-checklist-debug.html

You can (and probably should) start with a big hammer - export GST_DEBUG=*:4

That will give A LOT of debugging info, much more that you want but it will
contain the needed information. You can use the other references to easily
cut down on the amount of clutter after you get started.

Chuck

On Tue, Feb 12, 2013 at 5:17 PM, johnwesting
<john.blank.westing at gmail.com>wrote:

> I'm using Ubuntu 12.04 and was hoping to payload and send MP3s using
> Bluetooth and the BlueZ GStreamer plugin. My first test was to see if I
> could stream SBC audio so I used the following command
>
> gst-launch filesrc location=~/music/song.mp3 ! flump3dec ! sbcenc !
> a2dpsink
> device=00:01:1A:FA:5C:AA
>
> and it streamed correctly. Next I wanted to see if I could use the
> rtpsbcpay
> RTP payloader element, so executed the command
>
> gst-launch filesrc location= ~/music/song.mp3 ! flump3dec ! sbcenc !
> rtpsbcpay min-frames=-1 ! avdtpsink device= 00:01:1A:FA:5C:AA
>
> but it failed with the following errors:
>
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> 0:00:02.056144952  2475  0x8cdb690 ERROR              avdtpsink
> audio/gstavdtpsink.c:1912:gst_avdtp_sink_audioservice_recv:<avdtpsink0>
> BT_START_STREAM failed : Success(0)
> 0:00:02.057025034  2475  0x8cdb690 ERROR              avdtpsink
> audio/gstavdtpsink.c:1507:gst_avdtp_sink_stream_start:<avdtpsink0> Error
> while stream start confirmation
> 0:00:02.063086880  2475  0x8cdb690 WARN                 basesrc
> gstbasesrc.c:2625:gst_base_src_loop:<filesrc0> error: Internal data flow
> error.
> 0:00:02.063446032  2475  0x8cdb690 WARN                 basesrc
> gstbasesrc.c:2625:gst_base_src_loop:<filesrc0> error: streaming task
> paused,
> reason error (-5)
> ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal
> data flow error.
> Additional debug info:
> gstbasesrc.c(2625): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstFileSrc:filesrc0:
> streaming task paused, reason error (-5)
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to NULL ...
> Freeing pipeline ...
>
> I looked at the code for a2dpsink and it simply loads the 2 elements into a
> GstBin, I don't see why the functionality would be different when using
> rtpsbcpay and avdtpsink explicitly.
>
> If I can't use the rtpsbcpay element to payload SBC data I'm not going be
> able to paylod MP3 data either. Does anyone have any idea what the problem
> is?
>
> John
>
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/Beginner-Using-a2dpsink-avdtpsink-and-rtpsbcpay-tp4658501.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130213/aba6a6f7/attachment.html>


More information about the gstreamer-devel mailing list