[MPlayer-dev-eng] [PATCH] mkv chapters and linked segments
Fredrik Nilsson
esserex at gmail.com
Thu May 29 11:35:19 CEST 2008
>
> chapters are already supported in libavformat, see AVChapter
> the mov demuxer in libavformat also already supports loading external tracks
> and about API additions, if they are reasonable and clean there cerainly
> is no problem with them in libav*. After all you want interface extensions
> in the various parts of mplayer as well.
>
I missed that, that makes using avformat more doable.
The interface changes in demuxer.h should be pretty straightforward,
but the interface to change decoder is different.
Some solutions to this:
Call function directly across layers (in the patch).
Change how seek works, to have it fail on chapter change,
mplayer picks up on this, and resets decoder then retries the seek.
Setting a function pointer in the demuxer to replace the direct call.
Starting all decoders at once, storing them in the demuxer streams
and switching when chapters changes. Probably a big change.
Is any of the above preferable?
Also, would it help if I split the patch up into pieces even if
they would depend on each other?
Fredrik
More information about the MPlayer-dev-eng
mailing list