[gst-devel] Got ERROR: pipeline doesn't want to preroll

thiagoss thiagossantos at gmail.com
Fri Aug 15 05:00:21 CEST 2008


bluez-utils package (in www.bluez.org) has a2dpsink element that handles
sending audio to a bluetooth headset using a2dp, might be worth trying it.

It is capable of sending sbc audio (bluez-utils has a sbc encoder) and mp3.

On Thu, Aug 14, 2008 at 11:49 PM, axel lin <axel.lin at gmail.com> wrote:

> hi list,
>
> I want to playback a Theora video file and output the audio to my
> bluetooth headphone.
>
> First, I try below command to playback an audio and output to
> bluetooth headphone, it works.
> $ gst-launch-0.10 -v filesrc location=ubuntu\ Sax.ogg ! oggdemux !
> vorbisdec ! audioconvert ! audioresample ! alsasink device=bluetooth
>
> Then, I playback the Theora video file and output audio to default
> (wired) earphone, it works.
>
> $ gst-launch-0.10 filesrc location=/home/ume/media/video/Experience\
> ubuntu.ogg ! oggdemux name=d d. ! queue ! theoradec ! ffmpegcolorspace
> ! ximagesink d. ! queue ! vorbisdec ! audioconvert ! audioresample !
> alsasink device=default
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> Pipeline is PREROLLED ...
> Setting pipeline to PLAYING ...
> New clock: GstAudioSinkClock
> Caught interrupt -- handling interrupt.
> Interrupt: Stopping pipeline ...
> Execution ended after 2968758593 ns.
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> FREEING pipeline ...
>
> However,I got below error messages when playback the Theora video file
> and output to bluetooth headphone.
>
> $ gst-launch-0.10 -v filesrc
> location=/home/ume/media/video/Experience\ ubuntu.ogg ! oggdemux
> name=d d. ! queue ! theoradec ! ffmpegcolorspace ! ximagesink d. !
> queue ! vorbisdec ! audioconvert ! audioresample ! alsasink
> device=bluetooth
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> /pipeline0/queue0.sink: caps = video/x-theora
> /pipeline0/queue0.src: caps = video/x-theora
> /pipeline0/theoradec0.sink: caps = video/x-theora
> /pipeline0/queue1.sink: caps = audio/x-vorbis
> /pipeline0/queue1.src: caps = audio/x-vorbis
> /pipeline0/vorbisdec0.sink: caps = audio/x-vorbis
> /pipeline0/vorbisdec0.src: caps = audio/x-raw-float, rate=(int)22050,
> channels=(int)2, endianness=(int)1234, width=(int)32
> /pipeline0/theoradec0.src: caps = video/x-raw-yuv,
> format=(fourcc)I420, framerate=(fraction)25/1,
> pixel-aspect-ratio=(fraction)1/1, width=(int)360, height=(int)288
> /pipeline0/audioconvert0.src: caps = audio/x-raw-int,
> endianness=(int)1234, signed=(boolean)true, width=(int)16,
> depth=(int)16, rate=(int)22050, channels=(int)2
> /pipeline0/audioconvert0.sink: caps = audio/x-raw-float,
> rate=(int)22050, channels=(int)2, endianness=(int)1234, width=(int)32
> /pipeline0/audioresample0.src: caps = audio/x-raw-int,
> endianness=(int)1234, signed=(boolean)true, width=(int)16,
> depth=(int)16, rate=(int)22050, channels=(int)2
> /pipeline0/audioresample0.sink: caps = audio/x-raw-int,
> endianness=(int)1234, signed=(boolean)true, width=(int)16,
> depth=(int)16, rate=(int)22050, channels=(int)2
> ERROR: from element /pipeline0/alsasink0: Could not get/set settings
> from/on resource.
> Additional debug info:
> gstalsasink.c(507): set_hwparams (): /pipeline0/alsasink0:
> Rate doesn't match (requested 22050Hz, get 0Hz)
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to NULL ...
> /pipeline0/audioresample0.src: caps = NULL
> /pipeline0/audioresample0.sink: caps = NULL
> /pipeline0/ffmpegcsp0.src: caps = video/x-raw-rgb, bpp=(int)32,
> depth=(int)24, endianness=(int)4321, red_mask=(int)65280,
> green_mask=(int)16711680, blue_mask=(int)-16777216, width=(int)360,
> height=(int)288, framerate=(fraction)25/1,
> pixel-aspect-ratio=(fraction)1/1
> /pipeline0/ffmpegcsp0.sink: caps = video/x-raw-yuv,
> format=(fourcc)I420, framerate=(fraction)25/1,
> pixel-aspect-ratio=(fraction)1/1, width=(int)360, height=(int)288
> /pipeline0/ffmpegcsp0.src: caps = NULL
> /pipeline0/ffmpegcsp0.sink: caps = NULL
> /pipeline0/audioconvert0.src: caps = NULL
> /pipeline0/audioconvert0.sink: caps = NULL
> /pipeline0/theoradec0.src: caps = NULL
> /pipeline0/theoradec0.sink: caps = NULL
> /pipeline0/vorbisdec0.src: caps = NULL
> /pipeline0/vorbisdec0.sink: caps = NULL
> /pipeline0/queue0.src: caps = NULL
> /pipeline0/queue0.sink: caps = NULL
> /pipeline0/queue1.src: caps = NULL
> /pipeline0/queue1.sink: caps = NULL
> /pipeline0/d.serial_1a122481: caps = NULL
> /pipeline0/d.serial_0ce1be9e: caps = NULL
> FREEING pipeline ...
>
> Can someone help to fix this issue?
>
> Below is the gstreamer version in my environment
> $ dpkg -l |grep gst
> ii  gstreamer-dbus-media-service
> 0.1.17-upstream-0ubuntu1~804um1               Media service for Ubuntu
> Mobile
> ii  gstreamer0.10-alsa                      0.10.18-3
>                   GStreamer plugin for ALSA
> ii  gstreamer0.10-ffmpeg                    0.10.3-6
>                   FFmpeg plugin for GStreamer
> ii  gstreamer0.10-gnomevfs                  0.10.18-3
>                   GStreamer plugin for GnomeVFS
> ii  gstreamer0.10-plugins-bad               0.10.6-5
>                   GStreamer plugins from the "bad" set
> ii  gstreamer0.10-plugins-bad-multiverse    0.10.6-1
>                   GStreamer plugins from the "bad" set (Multiv
> ii  gstreamer0.10-plugins-base              0.10.18-3
>                   GStreamer plugins from the "base" set
> ii  gstreamer0.10-plugins-farsight          0.12.5-2ubuntu1
>                   plugins for Gstreamer for Audio/Video confer
> ii  gstreamer0.10-plugins-good              0.10.7-3ubuntu0.1
>                   GStreamer plugins from the "good" set
> ii  gstreamer0.10-plugins-ugly              0.10.7-3ubuntu1
>                   GStreamer plugins from the "ugly" set
> ii  gstreamer0.10-tools                     0.10.18-4ubuntu1
>                   Tools for use with GStreamer
> ii  gstreamer0.10-x                         0.10.18-3
>                   GStreamer plugins for X11 and Pango
> ii  libgstreamer-plugins-base0.10-0         0.10.18-3
>                   GStreamer libraries from the "base" set
> ii  libgstreamer0.10-0                      0.10.18-4ubuntu1
>                   Core GStreamer libraries and elements
> ii  libgstreamer0.10-0-dbg                  0.10.18-4ubuntu1
>                   Core GStreamer libraries and elements
> ii  python-gst0.10                          0.10.11-1
>                   generic media-playing framework (Python bind
>
> Thanks for your help,
> Axel
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



-- 
Thiago Sousa Santos

Embedded Systems and Pervasive Computing Lab (Embedded)
Center of Electrical Engineering and Informatics (CEEI)
Federal University of Campina Grande (UFCG)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20080815/97b9d0b6/attachment.htm>


More information about the gstreamer-devel mailing list