Pause filesink and restart

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

Pause filesink and restart

ravi.modha
Hello All,

Can I pause the file sink and restart it? Actually I am recording the video
and i am pausing the pipeline but when I restart the pipeline and at the end
when I see the recorded video, it stuck on the last frame after which I
paused the video and after some seconds video starts with the new frame.




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Pause filesink and restart

Luca Bacci
Post here your pipeline!

I'm not an expert so I can't say for sure why it happens, but I think it's because the frames are timestamped. Say, for example, that you record for 10 seconds, then pause for 5 seconds and then restart recording again. In the resulting file, a frame will have timestamp of 10 secs and the next frame will have timestamp of 15 secs. So the player has to show that frame for 5 seconds, then will continue with next frames.

Il giorno gio 21 nov 2019 alle ore 12:37 ravi.modha <[hidden email]> ha scritto:
Hello All,

Can I pause the file sink and restart it? Actually I am recording the video
and i am pausing the pipeline but when I restart the pipeline and at the end
when I see the recorded video, it stuck on the last frame after which I
paused the video and after some seconds video starts with the new frame.




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel