tee won't go in playing state

Sebastian Dröge sebastian at centricular.com
Thu Oct 20 04:21:35 UTC 2016


On Wed, 2016-10-19 at 20:02 +0000, philippe renon wrote:
> Hi,
> 
> The following pipeline will not got to the playing state (using a
> Windows msys2 build of 1.9.90).
> 
> videotestsrc ! tee name=t \
>    t. ! queue ! videoconvert ! autovideosink \
>    t. ! queue ! videoconvert ! x264enc bitrate=1024 ! avimux !
> filesink location=capture.avi
> 
> It goes to pause state and just hangs there. A single frame is shown
> in the videosink.
> 
> $ gst-launch-1.0.exe videotestsrc ! tee name=t t. ! queue !
> videoconvert ! autovideosink t. ! queue ! videoconvert ! x264enc
> bitrate=1024 ! avimux ! filesink location=capture.avi
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> Redistribute latency...
> 
> 
> Both branches work fine when used on their own.

The problem here is that by default, x264enc has ~3 seconds of latency
and queue only has space for 1 second.

Either increase the queue limit (at the non-x264enc branch) to more
than 3 seconds (and disable the buffers/bytes limits), or change the
x264enc settings to have a lower latency (e.g. tune=zerolatency).

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161020/f2ea1dba/attachment.sig>


More information about the gstreamer-devel mailing list