[FFmpeg-devel] [PATCH] attachments support in matroska demuxer
Fri Jan 4 23:01:47 CET 2008
On Thursday 03 January 2008 04:23:09 Michael Niedermayer wrote:
> > It seems to me that attachment would fit pretty well, each one
> > in its own AVStream. Does this sound reasonable ?
> > - Here is how remuxing to other formats (avi, mov...) could work:
> > * supported codec (jpeg poster) could be muxed as a normal
> > JPEG stream with only one picture
> > * ttf streams should be written in a separate file (that's
> > the way various players expect to find ttf fonts when
> > demuxing AVI, IIRC)
> > - I think the only required API modifications to support this
> > would be:
> > * adding AVStream.filename and maybe AVStream.id_of_link_stream.
> > * adding CODEC_ID_TTF ? (ugly, but shouldn't cause much trouble)
> > * adding a way to mux ttf font in a separate file (maybe use
> > a separate muxer for this, ie. call 2 different muxers from
> > ffmpeg. seems ugly, but I've no better idea right now).
> Well, there are a few more things i think
> We need name / (mime) type to remux attachments
> (CD Cover / ? / tiff)
> (Fan art / image/x-photoshop / psd)
> There also could be other things like Author, ...
And what about stream count limit ? 20 is probably too low, I've definitely
seen mkvs with more than 10 or even 15 attachments. Increasing it will break
ABI and could still be not enough for some files.
More information about the ffmpeg-devel