Are you aware of the standalone "lame", which you can choose version to download:
https://sourceforge.net/projects/lame/files/lame/3.95/
... but then you need to compile it ;-p
$ uname -a
... 20.04.1-Ubuntu ... x86_64 GNU/Linux
$ tar -xvf lame-3.95.tar.gz
$ cd lame-3.95/
$ ./configure 2>&1 > log.txt
$ make all 2>&1 >> log.txt
$ grep -E 'fail|erro' log.txt | wc -l
1
$ grep -E 'fail|erro' log.txt
checking for library containing strerror... none required
$ ./frontend/lame --help
LAME version 3.95 (http://www.mp3dev.org/)
usage: ./frontend/lame [options] <infile> [outfile]
<infile> and/or <outfile> can be "-", which means stdin/stdout.
RECOMMENDED:
lame -h input.wav output.mp3
OPTIONS:
-b bitrate set the bitrate, default 128 kbps
-f fast mode (lower quality)
-h higher quality, but a little slower. Recommended.
-m mode (s)tereo, (j)oint, (m)ono
default is (j) or (s) depending on bitrate
-V n quality setting for VBR. default n=4
--preset type type must be "medium", "standard", "extreme", "insane",
or a value for an average desired bitrate and depending
on the value specified, appropriate quality settings will
be used.
"--preset help" gives more info on these
--longhelp full list of options
... now you need to have your "mp3"-file as WAV as you're about to run this; I'd guess sox
or ffmpeg
can create that, one file at a time...
I would like to make it scriptable to encode a lot of files recursively.
Now, go to www.tldp.org and read the Bash guides, there is one for beginners, then another one named "Advanced".
FLAC
instead ofmp3
?AAC
format and it worked! I'm gonna tryFLAC
tomorrow. Thanks!