[Ffmpeg-devel] [PATCH] use new way to handle "ab" option
Benoit Fouet
benoit.fouet
Sun Mar 4 18:45:59 CET 2007
Hi,
Quoting Benoit Fouet <benoit.fouet at purplelabs.com>:
> Quoting Michael Niedermayer <michaelni at gmx.at>:
>
>> Hi
>>
>> On Sat, Mar 03, 2007 at 10:51:54PM +0100, Benoit Fouet wrote:
>> [...]
>>
>>> { "vframes", OPT_INT | HAS_ARG | OPT_VIDEO,
>>> {(void*)&max_frames[CODEC_TYPE_VIDEO]}, "set the number of video
>>> frames to record", "number" },
>>> + { "vb", OPT_FUNC2 | HAS_ARG | OPT_VIDEO,
>>> {(void*)opt_default}, "set video bitrate (in bits/s)",
>>> "bitrate", },
>>> { "dframes", OPT_INT | HAS_ARG,
>>> {(void*)&max_frames[CODEC_TYPE_DATA]}, "set the number of data
>>> frames to record", "number" },
>>> { "r", HAS_ARG | OPT_VIDEO, {(void*)opt_frame_rate}, "set
>>> frame rate (Hz value, fraction or abbreviation)", "rate" },
>>> { "s", HAS_ARG | OPT_VIDEO, {(void*)opt_frame_size}, "set
>>> frame size (WxH or abbreviation)", "size" },
>>> @@ -3634,7 +3628,7 @@
>>>
>>> /* audio options */
>>> { "aframes", OPT_INT | HAS_ARG | OPT_AUDIO,
>>> {(void*)&max_frames[CODEC_TYPE_AUDIO]}, "set the number of audio
>>> frames to record", "number" },
>>> - { "ab", HAS_ARG | OPT_AUDIO, {(void*)opt_audio_bitrate}, "set
>>> audio bitrate (in kbit/s)", "bitrate", },
>>> + { "ab", OPT_FUNC2 | HAS_ARG | OPT_AUDIO,
>>> {(void*)opt_default}, "set audio bitrate (in bits/s)",
>>> "bitrate", },
>>> { "aq", OPT_FLOAT | HAS_ARG | OPT_AUDIO,
>>> {(void*)&audio_qscale}, "set audio quality (codec-specific)",
>>> "quality", },
>>
>> why are the "vb" and "ab" needed here?
>> doesnt it work without them too?
>>
>>
>> [...]
>>
it does work, but i added them to have the "help menu" for both.
of course, i can get rid of both...
Ben
PS: sorry for the empty mail to the list, and the reply to Mickael
only, i think i hate my mailer here :)
More information about the ffmpeg-devel
mailing list