$ 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
您是否知道独立的“lame”,您可以选择要下载的版本:
https://sourceforge.net/projects/lame/files/lame/3.95/
...但是你需要编译它;-p
...现在您需要将“mp3”文件设置为 WAV,因为您将要运行它;我猜想
sox
或者ffmpeg
可以创建一个,一次一个文件......现在,访问www.tldp.org并阅读 Bash 指南,其中有一本是为初学者准备的,然后是另一本名为“Advanced”的。