Gstreamer doesn't start pipeline

Nicolas Dufresne nicolas.dufresne at collabora.com
Tue Jan 7 10:04:21 PST 2014


Le samedi 27 juillet 2013 à 15:31 -0700, ViniciusD a écrit :
> Hello! I'm trying the following command in my terminal:
>  gst-launch -e -v v4l2src device="/dev/video1" ! video/x-raw-yuv,
> framerate=25/1, width=640, height=360 ! \
>    timeoverlay halign=right valign=bottom shaded-background=true ! \
>    textoverlay text="Test Video 640x360 25fps" halign=left
> valign=bottom
> shaded-background=true ! \
>    x264enc bitrate=498 ! mpegtsmux ! filesink location=video1.ts
> After using "mkfifo video1.ts", and I just get the message:
> "setting pipeline to PAUSED"
> So, It's getting stucked at pause, why isn't it working?

Works for me on 1.0 (note my camera does not support 25 fps, and there
is not element to adjust live stream framerate).

gst-launch-1.0 -e v4l2src ! \
                  videoscale ! videoconvert ! \
                  video/x-raw,width=640,height=320 ! \
                  timeoverlay halignment=right valignment=bottom shaded-background=true ! \
                  textoverlay text="Test Video 640x360 25fps" halignment=left valignment=bottom shaded-background=true ! \
                  videoconvert ! x264enc bitrate=498 ! mpegtsmux ! filesink location=test.ts

Being stucked in preroll in 0.10 probably means that the v4l2src has a
limited amount of buffers and is blocked waiting for them to be freed.
At the same time the decoder (x264enc) in default configuration need to
accumulate a important amount of buffer before it can produce the first
decoded buffer (which would terminated the paused transition). In 1.0,
when the buffer pool reaches the threshold of 2, we copy the buffers and
put it back into the v4l2src pool, in order to continue. This is
probably why it works in 1.0. If you are stuck with 0.10 for any reason,
you may try your luck using tune=zerolatency to x264enc, but quality
will be reduced.

regards,
Nicolas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140107/ac186b85/attachment.pgp>


More information about the gstreamer-devel mailing list