Sink render-delay not working

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Sink render-delay not working

Baby Octopus
Administrator
Hi,

I'm trying to use render-delay property of basesink to add extra delay while rendering. But this doesn't work as I expected in the following pipeline

gst-launch-1.0 videotestsrc is-live=1 ! avenc_mpeg2video ! queue max-size-bytes=2000000000 max-size-time=100000000000 max-size-buffers=4294967295 ! fakesink silent=0 render-delay=50000000000 sync=1 -v

Fakesink prints the buffer information right away and not after 50s of configured delay through render-delay. Am I missing anything?


~BO
Reply | Threaded
Open this post in threaded view
|

Re: Sink render-delay not working

Tim Müller
On Tue, 2016-07-19 at 02:47 -0700, Baby Octopus wrote:

Hi,

> I'm trying to use render-delay property of basesink to add extra
> delay while rendering. But this doesn't work as I expected in the
> following pipeline
>
> gst-launch-1.0 videotestsrc is-live=1 ! avenc_mpeg2video ! queue
> max-size-bytes=2000000000 max-size-time=100000000000
> max-size-buffers=4294967295 ! fakesink silent=0 render-
> delay=50000000000
> sync=1 -v
>
> Fakesink prints the buffer information right away and not after 50s
> of configured delay through render-delay. Am I missing anything?

render-delay does not delay rendering, it specifies a constant existing
delay that exists in the rendering path. If set, it makes the sink
render things *earlier* than it would otherwise, so that it is still
output 'on time' taking into account the rendering-delay :)

Try the "ts-offset" property.

Cheers
 -Tim

--

Tim Müller, Centricular Ltd - http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel