Linux下常見音頻格式之間的轉換方法

來源:互聯網
上載者:User

標籤:

Linux下常見音頻格式之間的轉換方法【轉】

下面簡單介紹下Linux環境常見音頻格式之間的轉換方法:

MP3 相關工具: lame
OGG 相關工具: vorbis-tools
APE 相關工具: mac
FLAC 相關工具: flac
WAV 相關工具: shntool
BIN/CUE鏡像分割: bchunk

1.MP3 和 WAV 之間相互轉換
mp3 -> wav 
lame --decode <輸入_mp3檔案> <輸出_wav檔案>
wav -> mp3 
lame -b <位元速率> <輸入_wav檔案> <輸出_ogg檔案> 
shntool conv -o "cust ext=mp3 lame -b <位元速率> - %f" <輸入_wav檔案>

2.OGG 和 WAV 之間相互轉換
ogg -> wav
oggdec <輸出_ogg檔案> -o <輸入_wav檔案>
wav -> ogg 
oggenc -b <位元速率> <輸入_wav檔案> -o <輸出_ogg檔案>

3.APE 和 WAV 之間相互轉換
ape -> wav 
mac <輸入_ape檔案> <輸出_wav檔案> -d
wav -> ape
mac <輸入_wav檔案> <輸出_ape檔案> -c <壓縮比率, 預設為 2000>

4.FLAC 和 WAV 之間相互轉換
flac -> wav 
flac -d <輸入_flac檔案> -o <輸出_wav檔案>
wav -> flac 
flac <輸入_wav檔案> <輸出_flac檔案> -<壓縮比率 1-8 , 預設為 5>

5.分割APE/CUE鏡像 
i) 先解碼成WAV格式 
mac CDImage.ape CDImage.wav -d 
再進行切割
bchunk -w CDImage.wav CDImage.cue output 
或 
shnsplit -f CDImage.cue CDImage.wav
ii) 也可以直接切割 
shnsplit -f CDImage.cue -i ape 
iii) 切割並轉換到其他格式(FLAC/mp3) 
shnsplit -f CDImage.cue -i ape -o flac CDImage.ape 
shnsplit -f CDImage.cue -i ape \
-o "cust ext=mp3 lame -b 320 - %f" CDImage.ape

6.APE <-> FLAC 互相轉換 
shnconv -i ape -o flac CDImage.ape 
shnconv -i flac -o ape CDImage.flac 

Linux下常見音頻格式之間的轉換方法

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.