[gst-devel] gst-launch, decodebin and avimux - stalled pipeline, what am I doing wrong ?

Tim Day timday at bottlenose.demon.co.uk
Wed Jun 16 01:04:58 CEST 2010


On Tue, 2010-06-15 at 22:00 +0100, Tim Day wrote:
>   gst-launch-0.10 \
>   filesrc location=MVI_2034.AVI ! decodebin name=dec \
>   dec. ! ffmpegcolorspace ! 'video/x-raw-yuv' ! mux. \
>   dec. ! audioconvert ! 'audio/x-raw-int,rate=44100,channels=1' ! mux. \
>   avimux name=mux ! filesink location=gst.avi
> ...does the endless "Pipeline is PREROLLING ..."

OK cracked it... this does what I want:

gst-launch-0.10 \
filesrc location=MVI_2034.AVI ! decodebin name=dec \
dec. ! queue ! ffmpegcolorspace ! 'video/x-raw-yuv' ! queue ! mux. \
dec. ! queue ! audioconvert ! 'audio/x-raw-int,channels=1' ! audioresample ! 'audio/x-raw-int,rate=44100' ! queue ! mux. \
avimux name=mux ! filesink location=gst.avi

The queue elements (both leading and trailing) appear to be crucial.

Further experiments adding things like videoflip or
  videorate !'video/x-raw-yuv,framerate=25/1'
into the video part of the pipeline all work as expected.

Tim






More information about the gstreamer-devel mailing list