[gst-devel] alsasrc device=hw:1 pipeline problems
Stefan Kost
ensonic at hora-obscura.de
Wed Sep 16 10:45:08 CEST 2009
startoftext schrieb:
> Can any one here tell me why this pipeline does not work?
>
> gst-launch-0.10 v4l2src ! queue ! ffmpegcolorspace ! ffenc_flv ! queue !
> ffmux_flv name=mux alsasrc device=hw:1 ! queue ! audioconvert ! lame ! queue
> ! mux. mux. ! filesink location=vid.flv
>
> Here is the output i get from above:
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> Setting pipeline to PLAYING ...
> New clock: GstAudioSrcClock
> ERROR: from element /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0: Internal
> data flow error.
> Additional debug info:
> gstbasesrc.c(2334): gst_base_src_loop ():
> /GstPipeline:pipeline0/GstAlsaSrc:alsasrc0:
> streaming task paused, reason not-negotiated (-4)
> Execution ended after 37319285 ns.
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> Freeing pipeline ...
>
>
> Funny thing is that if i change the device from hw:1 to hw:0 it works. Also
> this pipeline below DOES work.
>
> gst-launch-0.10 v4l2src ! queue ! xvimagesink . alsasrc device=hw:1 !
> alsasink
>
what you need to get working is
alsasrc device=hw:1 ! queue ! audioconvert ! lame ! fakesink
I suspect sampling rates, so please try
alsasrc device=hw:1 ! queue ! audioresample ! audioconvert ! lame ! fakesink
Also consider to use less queues. Does that work?
gst-launch-0.10 v4l2src ! ffmpegcolorspace ! ffenc_flv ! queue !
ffmux_flv name=mux alsasrc device=hw:1 ! audioresample ! audioconvert ! lame ! queue
! mux. mux. ! filesink location=vid.flv
Stefan
> Any one have any ideas?
>
More information about the gstreamer-devel
mailing list