如何在命令行上使用 lame 将 WAV 文件夹转码为 MP3
在我们之前的文章我如何使用 lame 将音乐编码为 mp3中,我们展示了如何使用 lame 将单个 WAV 文件转码为 MP3,详细说明
这是我用来将当前文件夹中所有 WAV 文件转码为 MP3 的 bash 脚本:
transcode_wav_to_mp3.sh
for i in *.wav ; do lame -h -V 3 "$i" ; done如果你的文件命名为 .WAV 而不是 .wav,请使用以下版本:
transcode_WAV_to_mp3.sh
for i in *.WAV ; do lame -h -V 3 "$i" ; doneCheck out similar posts by category:
Audio/Video
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow