[Ffmpeg-devel] [PATCH] Sync AVOption names to OptionDef names

Panagiotis Issaris takis.issaris
Fri Sep 15 11:21:24 CEST 2006


Hi,

Op vrijdag 15 september 2006 10:58, schreef Baptiste Coudurier:
> > The attached patch renames the AVOption's names to the
> > shorter OptionDef names. Regression test succeeds.
> > 
> 
> I personnaly perfer long names, and AVOptions ones. I recognize that 
> typing them in command line is a bit annoying, so what about having long 
>   name and short name ?
For the commandline I prefer using short names, but having long names available
as the short ones are often difficult to remember, especially if they aren't
used a lot. But then again, a manpage and "./ffmpeg 2>&1|more" also work :)

The renaming patch is just a little part of my effort to get most of the
option related code from the application (ffmpeg) into the libraries
(libav*). This should in the end give better reuse possibilities to
mplayer/mencoder and xine.

So, the reasons I suggested renaming them to the shorter names in
a previous post [1], were:
* If given the choice only once choice, long or short, I would definitely
vote for short.
* I want to keep the preserve the current behavior as much as possible,
as this will prevent annoying users and having to make lots of changes to the 
manpage.

IMHO having would be interesting, maybe something similar to most GNU apps,
where one dash means short option and two dashes are used when using the
full option name. But, I would prefer not to do such a feature enhancement
now, as it would kind of pull my focus of the option-migration itself.

With friendly regards,
Takis

[1] http://article.gmane.org/gmane.comp.video.ffmpeg.devel/36586




More information about the ffmpeg-devel mailing list