GNOME Bugzilla – Bug 644808
[matroskademux] Add support for chained segments
Last modified: 2013-06-10 11:58:28 UTC
Created attachment 183415 [details] [review] 0001-matroskademux-fragmented-patch.patch We should support chained segments in the demuxer. Attached is a first approach that would be valid from live streams where seeks are not involved.
For a new segment you should reset the complete demuxer state, including index and tracks and everything. You also should remove all existing pads from the demuxers and then add the new pads as if you started a new file. Implementing this in pull mode and in general with seeking support will be a lot of work probably.
Would it make sense to have it at least in push mode for live streams? The flv demuxer, for example, has a way to check if it's a live stream to avoid generating an index. Can we use this approach for the matroska demuxer as well to at least support chained segments for live?
Yes, you can use the SEEKING query to check if upstream is able to handle seek requests. If it isn't you can implement support for chained segments by resetting the demuxer state when you see a new segment (including removal of pads) and then continue as if a new file was opened.
Marking as duplicate of #334082 . Any progress on this Andoni? *** This bug has been marked as a duplicate of bug 334082 ***