MP3ENC(1)MP3ENC(1)NAMEmp3enc - create mp3 audio files
games/mp3enc [ -hprv ] [ -b bitrate ] [ -B bitrate ] [ -m mode ] [ -q q
] [ -s sfreq ] [ -V q ] [ long or silly options ]
Mp3enc compresses audio on standard input, normally PCM-encoded, and
produces MP3-encoded audio on standard output. By default, the MP3
file will use `constant bit-rate' (CBR) encoding, but that can be
changed via --abr (average bitrate desired, ABR) or -v (variable
-b set minimum allowed bitrate in Kb/s for VBR, default 32Kb/s.
For CBR, set the exact bitrate in Kb/s, which defaults to
-B set maximum allowed bitrate in Kb/s for VBR, default 256Kb/s.
-h same as
-m mode may be (s)tereo, (j)oint, (f)orce or (m)ono (default j).
force forces mid/side stereo on all frames.
-p add CRC error protection (adds an additional 16 bits per frame
to the stream). This seems to break playback.
-q sets output quality to q (see -V).
-r input is raw pcm
-s set sampling frequency of input file (in KHz) to sfreq, default
-v use variable bitrate (VBR) encoding
-V set quality setting for VBR to q. Default q is 4; 0 produces
highest-quality and largest files, and 9 produces lowest-quality
and smallest files.
sets average bitrate desired in Kb/s, instead of setting qual‐
ity, and generates ABR encoding.
set sampling frequency of output file (in KHz) to sfreq, default
is input sfreq.
input is an MP3 file
-f same as Such a deal.
-o mark as non-original (i.e. do not set the original bit)
-c mark as copyright
-k disable sfb=21 cutoff
-e emp de-emphasis n/5/c (default n)
-d allow channels to have different blocktypes
-t disable Xing VBR informational tag
-a autoconvert from stereo to mono file for mono encoding
-x force byte-swapping of input (see dd(1) instead)
-S don't print progress report, VBR histograms
only use the ATH for masking
disable VBR histogram display
experimental voice mode
Encode a file as highest-quality MP3.
games/mp3enc -q 0 -b 320
Create a fixed 128Kb/s MP3 file from a file.
games/mp3enc -h <foo.wav >foo.mp3
Streaming from stereo 44.1KHz raw PCM data, encoding mono at 16KHz (you
may not need dd):
dd -conv swab | games/mp3enc -a -r -m m --resample 16 -b 24
SEE ALSOdd(1), mp3dec(1), audio(3), cdfs(4), audio(7), juke(7), playlistfs(7)
Quality is much better than encoders based on the ISO routines, but
still not as good as the FhG encoder.
It's a GNU behemoth, lightly rehabilitated. There are zillions of