Pause and resume live video with latest frames without affecting the sink

Nicolas Dufresne nicolas at ndufresne.ca
Fri Aug 10 12:43:02 UTC 2018


Le ven. 10 août 2018 08:11, vk_gst <venkateshkuppan26 at gmail.com> a écrit :

> Hi,
>
> I am using the following pipeline :
>
> v4l2src -> queue -> h264parse -> avdec_h264 -> glupload -> glcolorconvert
> ->
> gltransformation -> glimagesink
>
> The above pipeline works perfectly fine, with gltransformation being
> applied
> continuously over the incoming video.
>
> Now I want to simulate the following :
>
> 1. Start the video at time t0.
> 2. Pause the video at time t1, and resume at time t2.
> 3. Be able to apply the 'gltransformation' on the frame displayed on
> render-window,  during the time between t1 & t2.
> 4. Video resumed at time t2, must have the current frames, and not the old
> frames captured between t1-t2.
>
> I have read notes/articles, that explain 'pause' and 'resume' are performed
> at the sink, with buffering of the old frames, to allow smooth playing. But
> doing this at the sink side, will not allow me to apply 'gltransformation'
> for the time the video is paused.  I also tried using the 'valve' element,
> but did not prove useful for the case.
>
> Can anyone provide me some hints for tackling this problem?
>

What works, but is a bit slow, it to issue a flushing seek at t1 after
changing the filter (gltransformation) properties. It's a bit like a commit
operation.

>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180810/a27c4ca5/attachment-0001.html>


More information about the gstreamer-devel mailing list