How to get encoder to complete file when moving to next item in playlist before playback has completed

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

How to get encoder to complete file when moving to next item in playlist before playback has completed

Thomas Bond

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?

Thanks.


   Tom



  


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

Re: How to get encoder to complete file when moving to next item in playlist before playback has completed

Nicolas Dufresne-5
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
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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