[FFmpeg-devel] [PATCH] support for ordered chapters/segment linking in Matroska

Michael Niedermayer michaelni
Sat Aug 9 19:00:13 CEST 2008


On Sat, Aug 09, 2008 at 05:29:49PM +0200, Anton Khirnov wrote:
> 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.

the changes to avformat.h and utils.c are rejected. also all alternative
implementations that would allow switching the codec within a AVStream are
rejected.

If you want a different codec just put the packets in a different AVStream!
Or even different AVFormatContext (with seperate and independant demuxer)

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

Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- 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/ffmpeg-devel/attachments/20080809/6940fef7/attachment.pgp>



More information about the ffmpeg-devel mailing list