Codec Settings
Wednesday, 27. September 2006, 19:56:07
Command lines from Windows batch files.
The LAME "decode" setting from lamedec.bat:
lame.exe -k --decode %1
The "-k" parameter disables bandpassing (of any kind) by the LAME engine. As of LAME 3.93 MMX, the codec cut off all frequencies above 18 KHz even when decoding. This has been filed as a bug.
The LAME "encode" setting from lameenc.bat:
lame.exe -k --noath -q 0 --notemp --cwlimit 48000 -Z --abr 512 -m s --verbose %1 %2 %3 %4 %5 %6
Where "-k" disables all frequency cuts (low-/band-/high-passing), "--noath" disables ATH ("absolute threshold of hearing", an imaginary "lower limit of human hearing"), "-q 0" switches to the highest quality possible (also slowest possible, which is still several times the playback rate on a modern CPU), "--cwlimit 48000" computes tonality for up to 48000 Hz (up from default 8.8717), "-Z" is an experimental feature toggling the scalefac and subblock gain on (which, ahem, tends to make percussion sound a bit better), "--abr ###" sets the average bitrate (like VBR, except the codec attempts to target the bitrate instead of operating in a range between min. rate and max. rate), "-m s" sets the mode to stereo (as opposed to "joint stereo" which enables mid/side channel storage), and "--verbose" does exactly what it says.
The OGG encoder setting from oggcode.bat:
oggenc -q 10 --advanced-encode-option lowpass_frequency=96000 %1
All that this does is enable an undocumented "lowpass frequency" parameter (at 96 KHz in the example). Unjustly undocumented, as this is what has prevented OGG from having been taken seriously by audio folks.
