| Encoding an audio file to mp3Purpose. Encodes one or more
PCM audio files, writes the results as mp3 files. Usage.
java Mp3Encoder [
-q quality
] [
-b bitrate
] [
-V
] [
-v
] [
-s
] [
-e
] [
-t
]
pcmfile
...
Parameters. -
-q quality
Quality of output mp3 file. In VBR mode, this affects
the size of the mp3 file. (Default middle)
One of: lowest, low, middle, high, highest. -
-b bitrate
Bitrate in KBit/s. Useless in VBR mode. (Default 128)
One of: 32 40 48 56 64 80 96 112 128 160 192 224 256 320 (MPEG1)
Or: 8 16 24 32 40 48 56 64 80 96 112 128 144 160 (MPEG2 and MPEG2.5). -
-V
VBR (variable bit rate) mode.
Slower, but potentially better
quality. (Default off) -
-v
Be verbose. -
-s
Be silent. -
-e
Debugging: Dump stack trace of exceptions. -
-t
Debugging: trace execution of converters. -
pcmfile
the name(s) of PCM input file(s).
The output file(s) will be named after the input file(s)
with the extension changed to
.mp3.
Bugs, limitations.
To work cleanly, this program requires JDK 1.5.0 or the latest version of Tritonus.
You have to download and install the
LAME
mp3 encoder and the
Tritonus
mp3enc plug-in. Source code.
Mp3Encoder.java,
LAME,
Tritonus
|