libtwolame
TwoLAME MP2 encoder wrapper.
Requires the presence of the libtwolame headers and library during configuration. You need to explicitly configure the build with --enable-libtwolame
.
Options
The following options are supported by the libtwolame wrapper. The twolame
-equivalent options follow the FFmpeg ones and are in parentheses.
- 'b (-b)'
-
Set bitrate expressed in bits/s for CBR.
twolame
'b' option is expressed in kilobits/s. Default value is 128k. - 'q (-V)'
-
Set quality for experimental VBR support. Maximum value range is from -50 to 50, useful range is from -10 to 10. The higher the value, the better the quality. This option is valid only using the
ffmpeg
command-line tool. For library interface users, use 'global_quality'. - 'mode (--mode)'
-
Set the mode of the resulting audio. Possible values:
- 'auto'
-
Choose mode automatically based on the input. This is the default.
- 'stereo'
-
Stereo
- 'joint_stereo'
-
Joint stereo
- 'dual_channel'
-
Dual channel
- 'mono'
-
Mono
- '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.
- 'energy_levels (--energy)'
-
Enable energy levels extensions when set to 1. The default value is 0 (disabled).
- 'error_protection (--protect)'
-
Enable CRC error protection when set to 1. The default value is 0 (disabled).
- 'copyright (--copyright)'
-
Set MPEG audio copyright flag when set to 1. The default value is 0 (disabled).
- 'original (--original)'
-
Set MPEG audio original flag when set to 1. The default value is 0 (disabled).