filesink - reset file size to 0 on active stream

Nicolas Dufresne nicolas at ndufresne.ca
Thu Jun 20 12:14:46 UTC 2019


Le jeu. 20 juin 2019 04 h 55, arc <armondcapp at gmail.com> a écrit :

> I have a pipeline that implements an output selector to switch between a
> filesink and a fakesink. When switching to back to the filesink I'd like to
> start from a file size of zero instead of appending to the file. Is there
> any way to do this? Currently I'm using the brute force method of file i/o
> to open the file with the "wb" flag and then closing before switching back
> to the filesink.
>

Did you try to cycle the sink element through null state while switching ?


>
>
> --
> 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/20190620/4018e7cd/attachment.html>


More information about the gstreamer-devel mailing list