[Ffmpeg-devel] Re: AVOptions

Michael Niedermayer michaelni
Tue Sep 13 23:38:40 CEST 2005


On Tue, Sep 13, 2005 at 04:33:51PM +0000, Burkhard Plaum wrote:
> Michael Niedermayer <michaelni <at> gmx.at> writes:
> > 
> > Hi
> > 
> > as everyone certainly already knows ffmpeg/libav* has a nice&new AVOption
> > API, comments & suggestions for improvements are welcome
> I would suggest to introduce a short_name and a long_name for each option.
> The short_name is unique, locale independent, and will be used inside lavc.
> To make internal processing easier, the short name can be required to be
> plain ASCII.
> The long_name is more human readable (e.g. for GUI labels). It can be 
> translated to any language/charset without affecting any internal stuff.

this is currently not interresting, a long name or description can be added
later (you can send a patch which adds one to every AVOption if you like)

> Another issue might be, that there are lots of options defined in utils.h,
> but there is no way to find out, which option applies for which codec.
> If I create e.g. a mjpeg codec, av_next_option() should never return any
> options, which are only for h263+. 
> A possible approach to implement this follows:

the problem with something like this is not the API design side but
the maintainance side, who is going to keep track of which option works
with which codec? as long as noone volunteers its not worth discussing any
furthermore max/min values also differ between codecs and so on


More information about the ffmpeg-devel mailing list