[FFmpeg-devel] [PATCH] doc/encoders: Add libtwolame doc

Timothy Gu timothygu99 at gmail.com
Sat Jun 1 19:40:51 CEST 2013


On Thu, May 30, 2013 at 1:07 AM, Stefano Sabatini <stefasab at gmail.com> wrote:
> On date Tuesday 2013-05-28 15:53:25 -0700, Timothy Gu encoded:
>> ---
>>  doc/encoders.texi | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
>>  1 file changed, 63 insertions(+)
>>
>> diff --git a/doc/encoders.texi b/doc/encoders.texi
>> index a2c5eb0..20ec849 100644
>> --- a/doc/encoders.texi
>> +++ b/doc/encoders.texi
>> @@ -441,6 +441,69 @@ Enables the the encoder to use (on a frame by frame basis) either L/R
>>  stereo or mid/side stereo.
>>  @end multitable
>>
>> + at section libtwolame
>> +
>> +TwoLAME MP2 encoder wrapper
>> +
>> +Requires the presence of the libtwolame headers and library during
>> +configuration. You need to explicitly configure the build with
>> + at code{--enable-libtwolame}.
>> +
>> + at subsection Options Mapping
>> +
>> +The following options are supported by the libtwolame wrapper. The
>> +FFmpeg options are in quotation marks, while the TwoLAME options are
>> +in parentheses.
>> +
>
>> + at table @option
>> + at item b
>> +(b) Set bitrate in bits/s. Note that FFmpeg @code{b} option is
>
> I'd still prefer the form used in libmp3lame:
> @item b                 @tab b

I like @table @option better because using @item @tab will make the
meaning of the options and the options mixed together, which confuses
people. I will use the following format next time I write docs:

@item FFmpeg     @tab LAME
@item b           @tab @code{b}
Bitrate...

to make the options stand out from the description. But for this time,
I'll just stick with @table @option.

>
>> +expressed in bits/s, twolame @code{b} in kilobits/s. (The default
>> +value is 128k.)
>> +
>> + at item q
>> +(V) Set quality for experimental VBR support. Maximum value range is
>> +from -50 to 50, useful range is from -10 to 10.
>> +
>> + at item mode
>> +(mode) Set MPEG mode. Available values:
>> +
>> + at table @samp
>> + at item auto
>> +Choose mode automatically based on the input. (This is the default.)
>> + at item stereo
>
>> +Stereo.
>> + at item joint_stereo
>> +Joint stereo.
>> + at item dual_channel
>> +Dual channel.
>> + at item mono
>> +Mono.
>> + at end table
>
> Nit: for non complete sentences the trailing dot can be skipped

Fixed

>
>> +
>> + at item psymodel
>> +(psyc-mode) Set psychoacoustic model to use in encoding. The argument
>> +must be an integer between -1 and 4, inclusive. The higher the value,
>> +the better the quality. The default value is 3.
>> +
>
>> + at item energy_levels
>> +(energy) Set argument to 1 to enable energy levels extensions, and 0
>> +to disable it. The default value is 0 (disabled).
>
> Set argument to 1 to enable energy levels extensions...
>
> => This form is providing instructions for using the option, rather
> than describing what the option does. While it is not incorrect, it is
> not consistent with the other descriptions.
>
> A shorter variant:
> Enable energy levels extensions when set to 1. The default value is 0
> (disabled).
>
> Same below.

Fixed

[...]

Timothy


More information about the ffmpeg-devel mailing list