How to get encoder to complete file when moving to next item in playlist before playback has completed
Nicolas Dufresne
nicolas at ndufresne.ca
Wed Apr 8 20:52:12 UTC 2020
Le mercredi 08 avril 2020 à 15:33 -0400, Thomas Bond a écrit :
> Hi,
>
>
>
> I'm using the tee element to display and encode which writes to a file. This works fine if I let the video play to completion.
>
> When I want to move to the next item in my playlist before playback has completed the encoded file doesn't get completed
>
> which means the header is not updated with the meta data and is useless without the meta data. How can get that done before moving to the next clip in the playlist?
You'd have to send an EOS to the branch of the tee. As a side effect,
no more data will be allowed to go through that pad, so you'll have to
discard that pad and request a new one.
This is a bit complicated, so many users tend to use appsink/appsrc,
splitting the playback and the recording in two different pipelines.
>
> Thanks.
>
>
>
> Tom
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list