[MPlayer-dev-eng] [PATCH] mkv chapters and linked segments

Michael Niedermayer michaelni at gmx.at
Thu May 29 01:36:47 CEST 2008


On Wed, May 28, 2008 at 11:27:29AM +0200, Fredrik Nilsson wrote:
> Hi.
> This is a patch that loads mkv chapters from external files.
> It does this by loading the extra files into separate tracks and switches to
> them when the chapter changes. Changes in mplayer.c and demuxer.c makes
> mplayer switch chapters automatically at end of chapter.
> 
> To switch tracks I use a function in mplayer.c to reset decoders,
> an ugly hack but I see no simple solution to this.
> 

> I have looked into using libavformat but I see no way of implementing chapters
> or decoder change without changing the libavformat interface.

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.

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080529/ad622193/attachment.pgp>


More information about the MPlayer-dev-eng mailing list