From 934764e98cfc772984cad2527b4bcba69a41bb09 Mon Sep 17 00:00:00 2001 From: lion187 Date: Tue, 16 Apr 2019 13:40:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E6=96=87=E4=BB=B6=20Software?= =?UTF-8?q?/Application/Lame/Lame=5FMP3=5F=E4=B8=8E=5FWav=5F=E4=BA=92?= =?UTF-8?q?=E8=BD=AC.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Application/Lame/Lame_MP3_与_Wav_互转.md | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Software/Application/Lame/Lame_MP3_与_Wav_互转.md diff --git a/Software/Application/Lame/Lame_MP3_与_Wav_互转.md b/Software/Application/Lame/Lame_MP3_与_Wav_互转.md new file mode 100644 index 0000000..c344b38 --- /dev/null +++ b/Software/Application/Lame/Lame_MP3_与_Wav_互转.md @@ -0,0 +1,35 @@ +# Lame MP3 与 Wav 互转 + +## 安装 + + sudo apt-get install lame + +## 使用 + +Fixed bit rate 128kbps encoding: + + lame sample.wav sample.mp3 + +Fixed bit rate jstereo 128kbps encoding, high quality (recommended): + + lame -h sample.wav sample.mp3 + +Average bit rate 112kbps encoding: + + lame --abr 112 sample.wav sample.mp3 + +Fast encode, low quality (no psycho-acoustics): + + lame -f sample.wav sample.mp3 + +Variable bitrate (use -V n to adjust quality/filesize): + + lame -h -V 6 sample.wav sample.mp3 + +Streaming mono 22.05 kHz raw pcm, 24 kbps output: + + cat inputfile | lame -r -m m -b 24 -s 22.05 -- > output + +Streaming mono 44.1 kHz raw pcm, with downsampling to 22.05 kHz: + + cat inputfile | lame -r -m m -b 24 --resample 22.05 -- > output