issues: Although source element is paused or source video data is blocked, sink element keeps rendering and writing data to a file

Nicolas Dufresne nicolas at ndufresne.ca
Fri Aug 4 16:44:48 UTC 2023


Le jeudi 03 août 2023 à 08:50 +0900, 永井知明 via gstreamer-devel a écrit :
> Hi
> 
> I wonder why the autovideosink element keeps displaying and the filesink
> element keeps writing the last input frame even though the source element is
> paused and the video data is not flowing.
> When the source element is paused, I think that the sink element displaying or
> writing a blank frame is correct behavior.

If you want this behaviour, you have to feed the "blank" frame to your display
sink. Display sink do not make up blank frames. Also, since you only pause the
src, buffers that has been produced before the pause will keep rendering.

> I tried to insert a valve element which drops the frame buffer between the
> source element and sink element, but the result was the same.
> An example source code which keeps displaying the last input frame even though
> the video source element is paused attached to this mail.
> For some additional context, this is running in a Windows 11 and Gstreamer
> version 1.22.4.
> 
> Kind regards,
> Nagai
> -- 
> *******************
>  永井 知明
> フォトロン M&E ソリューションズ株式会社
> 〒101-0051
> 東京都千代田区神田神保町1-105
> 神保町三井ビルディング 21F
> TEL:03-3518-6282
> FAX:03-3518-6279
> E-Mail:nagait at photron.co.jp
> *******************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230804/bf4b177b/attachment-0001.htm>


More information about the gstreamer-devel mailing list