[FFmpeg-devel] [PATCH 2/2] lavf: Add function for accessing Matroska Codec <-> CodecID table

Reimar Döffinger Reimar.Doeffinger at gmx.de
Wed May 30 23:03:00 CEST 2012


On Wed, May 30, 2012 at 04:15:43PM -0400, Derek Buitenhuis wrote:
> On 30/05/2012 4:10 PM, Reimar Döffinger wrote:
> > MPlayer used the AVI fields a long time before those functions existed,
> > and it used them the way I described. I admit I don't know how they
> > came to be or what whoever involved thought (and just assumed it was
> > related to what I needed it for), but if it was the way
> > you say I think it was a really silly idea already then, basically
> > the same thing as instead of having a av_find_input_format function
> > we had av_get_avi_format and a av_get_asf_format and a.... function.
> 
> The fact is unless you maintain these mappings by hand (unreasonable),
> or use lavf (we're not), or your demuxer returns a lavc-friendly ID,
> you simply cannot use libavcodec.

Or everyone maintains a single mapping table to a common specifier,
like fourcc. I think a lot of projects do that already anyway.

> I think the best idea would be to have a more generic API for getting
> various codec mapping tables, rather than a per-demuxer function. I
> think you suggested this earlier.
> 
> Would you be against this?

No, I think it would/might be useful regardless of whether it's
necessary for that use-case.


More information about the ffmpeg-devel mailing list