<div dir="ltr">bluez-utils package (in <a href="http://www.bluez.org">www.bluez.org</a>) has a2dpsink element that handles sending audio to a bluetooth headset using a2dp, might be worth trying it.<br><br>It is capable of sending sbc audio (bluez-utils has a sbc encoder) and mp3.<br>
<br><div class="gmail_quote">On Thu, Aug 14, 2008 at 11:49 PM, axel lin <span dir="ltr">&lt;<a href="mailto:axel.lin@gmail.com">axel.lin@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi list,<br>
<br>
I want to playback a Theora video file and output the audio to my<br>
bluetooth headphone.<br>
<br>
First, I try below command to playback an audio and output to<br>
bluetooth headphone, it works.<br>
$ gst-launch-0.10 -v filesrc location=ubuntu\ Sax.ogg ! oggdemux !<br>
vorbisdec ! audioconvert ! audioresample ! alsasink device=bluetooth<br>
<br>
Then, I playback the Theora video file and output audio to default<br>
(wired) earphone, it works.<br>
<br>
$ gst-launch-0.10 filesrc location=/home/ume/media/video/Experience\<br>
ubuntu.ogg ! oggdemux name=d d. ! queue ! theoradec ! ffmpegcolorspace<br>
! ximagesink d. ! queue ! vorbisdec ! audioconvert ! audioresample !<br>
alsasink device=default<br>
Setting pipeline to PAUSED ...<br>
Pipeline is PREROLLING ...<br>
Pipeline is PREROLLED ...<br>
Setting pipeline to PLAYING ...<br>
New clock: GstAudioSinkClock<br>
Caught interrupt -- handling interrupt.<br>
Interrupt: Stopping pipeline ...<br>
Execution ended after 2968758593 ns.<br>
Setting pipeline to PAUSED ...<br>
Setting pipeline to READY ...<br>
Setting pipeline to NULL ...<br>
FREEING pipeline ...<br>
<br>
However,I got below error messages when playback the Theora video file<br>
and output to bluetooth headphone.<br>
<br>
$ gst-launch-0.10 -v filesrc<br>
location=/home/ume/media/video/Experience\ ubuntu.ogg ! oggdemux<br>
name=d d. ! queue ! theoradec ! ffmpegcolorspace ! ximagesink d. !<br>
queue ! vorbisdec ! audioconvert ! audioresample ! alsasink<br>
device=bluetooth<br>
Setting pipeline to PAUSED ...<br>
Pipeline is PREROLLING ...<br>
/pipeline0/queue0.sink: caps = video/x-theora<br>
/pipeline0/queue0.src: caps = video/x-theora<br>
/pipeline0/theoradec0.sink: caps = video/x-theora<br>
/pipeline0/queue1.sink: caps = audio/x-vorbis<br>
/pipeline0/queue1.src: caps = audio/x-vorbis<br>
/pipeline0/vorbisdec0.sink: caps = audio/x-vorbis<br>
/pipeline0/vorbisdec0.src: caps = audio/x-raw-float, rate=(int)22050,<br>
channels=(int)2, endianness=(int)1234, width=(int)32<br>
/pipeline0/theoradec0.src: caps = video/x-raw-yuv,<br>
format=(fourcc)I420, framerate=(fraction)25/1,<br>
pixel-aspect-ratio=(fraction)1/1, width=(int)360, height=(int)288<br>
/pipeline0/audioconvert0.src: caps = audio/x-raw-int,<br>
endianness=(int)1234, signed=(boolean)true, width=(int)16,<br>
depth=(int)16, rate=(int)22050, channels=(int)2<br>
/pipeline0/audioconvert0.sink: caps = audio/x-raw-float,<br>
rate=(int)22050, channels=(int)2, endianness=(int)1234, width=(int)32<br>
/pipeline0/audioresample0.src: caps = audio/x-raw-int,<br>
endianness=(int)1234, signed=(boolean)true, width=(int)16,<br>
depth=(int)16, rate=(int)22050, channels=(int)2<br>
/pipeline0/audioresample0.sink: caps = audio/x-raw-int,<br>
endianness=(int)1234, signed=(boolean)true, width=(int)16,<br>
depth=(int)16, rate=(int)22050, channels=(int)2<br>
ERROR: from element /pipeline0/alsasink0: Could not get/set settings<br>
from/on resource.<br>
Additional debug info:<br>
gstalsasink.c(507): set_hwparams (): /pipeline0/alsasink0:<br>
Rate doesn&#39;t match (requested 22050Hz, get 0Hz)<br>
ERROR: pipeline doesn&#39;t want to preroll.<br>
Setting pipeline to NULL ...<br>
/pipeline0/audioresample0.src: caps = NULL<br>
/pipeline0/audioresample0.sink: caps = NULL<br>
/pipeline0/ffmpegcsp0.src: caps = video/x-raw-rgb, bpp=(int)32,<br>
depth=(int)24, endianness=(int)4321, red_mask=(int)65280,<br>
green_mask=(int)16711680, blue_mask=(int)-16777216, width=(int)360,<br>
height=(int)288, framerate=(fraction)25/1,<br>
pixel-aspect-ratio=(fraction)1/1<br>
/pipeline0/ffmpegcsp0.sink: caps = video/x-raw-yuv,<br>
format=(fourcc)I420, framerate=(fraction)25/1,<br>
pixel-aspect-ratio=(fraction)1/1, width=(int)360, height=(int)288<br>
/pipeline0/ffmpegcsp0.src: caps = NULL<br>
/pipeline0/ffmpegcsp0.sink: caps = NULL<br>
/pipeline0/audioconvert0.src: caps = NULL<br>
/pipeline0/audioconvert0.sink: caps = NULL<br>
/pipeline0/theoradec0.src: caps = NULL<br>
/pipeline0/theoradec0.sink: caps = NULL<br>
/pipeline0/vorbisdec0.src: caps = NULL<br>
/pipeline0/vorbisdec0.sink: caps = NULL<br>
/pipeline0/queue0.src: caps = NULL<br>
/pipeline0/queue0.sink: caps = NULL<br>
/pipeline0/queue1.src: caps = NULL<br>
/pipeline0/queue1.sink: caps = NULL<br>
/pipeline0/d.serial_1a122481: caps = NULL<br>
/pipeline0/d.serial_0ce1be9e: caps = NULL<br>
FREEING pipeline ...<br>
<br>
Can someone help to fix this issue?<br>
<br>
Below is the gstreamer version in my environment<br>
$ dpkg -l |grep gst<br>
ii &nbsp;gstreamer-dbus-media-service<br>
0.1.17-upstream-0ubuntu1~804um1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Media service for Ubuntu<br>
Mobile<br>
ii &nbsp;gstreamer0.10-alsa &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.10.18-3<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GStreamer plugin for ALSA<br>
ii &nbsp;gstreamer0.10-ffmpeg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.10.3-6<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FFmpeg plugin for GStreamer<br>
ii &nbsp;gstreamer0.10-gnomevfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.10.18-3<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GStreamer plugin for GnomeVFS<br>
ii &nbsp;gstreamer0.10-plugins-bad &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.10.6-5<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GStreamer plugins from the &quot;bad&quot; set<br>
ii &nbsp;gstreamer0.10-plugins-bad-multiverse &nbsp; &nbsp;0.10.6-1<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GStreamer plugins from the &quot;bad&quot; set (Multiv<br>
ii &nbsp;gstreamer0.10-plugins-base &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.10.18-3<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GStreamer plugins from the &quot;base&quot; set<br>
ii &nbsp;gstreamer0.10-plugins-farsight &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.12.5-2ubuntu1<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; plugins for Gstreamer for Audio/Video confer<br>
ii &nbsp;gstreamer0.10-plugins-good &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.10.7-3ubuntu0.1<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GStreamer plugins from the &quot;good&quot; set<br>
ii &nbsp;gstreamer0.10-plugins-ugly &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.10.7-3ubuntu1<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GStreamer plugins from the &quot;ugly&quot; set<br>
ii &nbsp;gstreamer0.10-tools &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.10.18-4ubuntu1<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Tools for use with GStreamer<br>
ii &nbsp;gstreamer0.10-x &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.10.18-3<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GStreamer plugins for X11 and Pango<br>
ii &nbsp;libgstreamer-plugins-base0.10-0 &nbsp; &nbsp; &nbsp; &nbsp; 0.10.18-3<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; GStreamer libraries from the &quot;base&quot; set<br>
ii &nbsp;libgstreamer0.10-0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.10.18-4ubuntu1<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Core GStreamer libraries and elements<br>
ii &nbsp;libgstreamer0.10-0-dbg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.10.18-4ubuntu1<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Core GStreamer libraries and elements<br>
ii &nbsp;python-gst0.10 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0.10.11-1<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; generic media-playing framework (Python bind<br>
<br>
Thanks for your help,<br>
Axel<br>
<br>
-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Thiago Sousa Santos<br><br>Embedded Systems and Pervasive Computing Lab (Embedded)<br>Center of Electrical Engineering and Informatics (CEEI)<br>Federal University of Campina Grande (UFCG)<br>

</div>