[FFmpeg-devel] [PATCH] support for ordered chapters/segment linking in Matroska
Anton Khirnov
wyskas
Sat Aug 9 17:29:49 CEST 2008
Hi,
these patches add support for $subj. A description of this feature can
be found here:
http://www.uppcon.se/thefluff/hurfdurf/?p=8
The first patch contains modifications to avformat.h/utils.c, in the
second are typedefs and reading necessary ids, third is file-loading
and read/seek code and fourh implements basic support to ffplay.
How it works: if the demuxer finds a EditionFlagOrdered flag it will
set avfc->matroska_ordered_chapters. If the player is interested, it
then calls matroska_load_linked_segments, which scans directory the
file is in and checks all mkv files there for segment UID match. Then
it return a list of contexts for all needed segments and functions for
reading/seeking on a virtual timeline. The player should also check
packets for PKT_FLAG_SEGMENSWITCH and reset/switch decoders
accordingly.
I realize my patch is somewhat hackish, but see no cleaner way of doing this.
Anton
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 01_ordered_chapters_lavf.diff
Type: text/x-patch
Size: 2481 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080809/f986bb8b/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 03_ordered_chapters_read_seek.diff
Type: text/x-patch
Size: 12029 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080809/f986bb8b/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 04_ordered_chapters_ffplay.diff
Type: text/x-patch
Size: 917 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080809/f986bb8b/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 02_ordered_chapters_ids.diff
Type: text/x-patch
Size: 6854 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080809/f986bb8b/attachment-0003.bin>
More information about the ffmpeg-devel
mailing list