[FFmpeg-devel] [PATCH 4/4] cmdutils: add -channel_layouts option.

Stefano Sabatini stefasab at gmail.com
Mon Jul 30 11:52:13 CEST 2012

On date Monday 2012-07-30 11:37:30 +0200, Nicolas George encoded:
> Le tridi 13 thermidor, an CCXX, Stefano Sabatini a écrit :
> > I'm not sure if we should rather support two distinct functions, for
> > simplifying parsing operations (-channels and -channel_layouts).
> These options are supposed to be for users as well as programs, and it would
> not be very user-friendly to require two options: I am rather against it.

I mean in case you only need to show the channels *or* the standard
layouts, having to parse a single list with a consistent structure is
simpler than having to skip initial or ending lines based on a
possibly changing pattern.

So it seems more natural to me to keep two distinct options for two
different lists (that's similar to what we did with -formats ->
-formats | -codecs | -protocols).

> And parsing is really no more complex; in fact, for the script I prefer
> calling ffmpeg only once if possible.
FFmpeg = Fierce & Faithless Mean Portable Elfic Game

More information about the ffmpeg-devel mailing list