Fwd: Beginner Using a2dpsink, avdtpsink, and rtpsbcpay

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux