[FFmpeg-devel] [PATCH] decklink: support all valid numbers of audio channels

Matthias Hunstock atze at fem.tu-ilmenau.de
Sun Dec 20 12:56:42 CET 2015


Am 19.12.2015 um 23:29 schrieb Timothy Gu:
>> PS. I did not find any ressources on how to properly name new FFmpeg
>> options, e.g. to be consistent. Using the existing "ac" option did >>
not work.


> In this situation, it is always good to check what others are using :)
>
> In this case, all the input devices seem to use "channels":
>
> https://github.com/FFmpeg/FFmpeg/blob/master/libavdevice/alsa_dec.c#L146
> https://github.com/FFmpeg/FFmpeg/blob/master/libavdevice/dshow.c#L1269


Ironically, I named it "channels" in the first place, but thought it is
too ambiguous.


> Indeed, -ac is actually mapped to "channels" within the ffmpeg
> program:
> https://github.com/FFmpeg/FFmpeg/blob/master/ffmpeg_opt.c#L900


Oh.. this looks like an automatism I originally was looking for. Great!



Matthias




More information about the ffmpeg-devel mailing list