Linux音訊轉檔(一)
再這裡把幾個常用的有損及無損音樂壓縮整理一下,以及他們在Linux底下如何轉檔所作的整理,基本上無損壓縮壓縮的話不外乎看到的就是tta(TrueAudio) ape(Monkey's Audio) flac(Free Lossless Audio Codec) wv(Wavpack) tak((T)om's lossless (A)udio (K)ompressor),有損的話Mp3(MPEG-1 Audio Layer 3) Ogg(Ogg Vorbis) AAC(Advanced Audio Coding),基本上比較流行的格式不外乎上面幾種
無損壓縮:
tta(TrueAudio):
- Downlads: 官方網站:TrueAudio 原始碼下載:Downloads debPackage:Downloads(UnOffical)
- Encode:
1
ttaenc -e file.wav [-o outputfile]
[-o ...]內為可加可不加,不加為為輸出原始檔名的tta file
- Decode:
[-o ...]內為同Encode,更多請詳閱ttaenc -h
1
ttaenc -d file(s).tta [-o outputfile]
ape(Monkey's Audio):
- Downlads: 官方網站:Monkey's Audio Codec(.APE) non-win32 Port 原始碼下載:Downloads debPackage:Downloads(UnOffical)
- Encode:
1
mac file.wav outputfile.ape -c[1000~5000]
- Decode:
更多請直接詳閱mac
1
mac file(s).wav outputfile.ape -d
flac(Free Lossless Audio Codec):
- 安裝:
1
$ sudo apt-get install flac
- Encode:
[-o ...]內為可加可不加,不加為為輸出原始檔名的flac file
1
flac -[0~8] file.wav [-o outputfile]
- Decode:
[-o ...]內為同Encode,更多請直接詳閱man flac
1
flac -d file(s).flac [-o outputfile]
wv(Wavpack):
- 安裝:
1
$ sudo apt-get install wavpack
- Encode:
[-o ...]內為可加可不加,不加為為輸出原始檔名的wv file,更多請直接詳閱man wavpack
1
wavepack file.wav [-o outputfile]
- Decode:
[-o ...]內為同Encode,更多請直接詳閱man wavunpack
1
wavunpack file(s).wv [-o outputfile]
tak((T)om's lossless (A)udio (K)ompressor):(這是在Linux底下最麻煩的格式了)
- Downlads: 官方網站:(T)om's lossless (A)udio (K)ompressor 下載:Download
- 安裝:
1 2 3 4
$ sudo apt-get install wine $ wget http://www.thbeck.de/Download/TAK_1.1.1.zip $ unzip -j TAK_1.1.1.zip Applications/Tak.exe Applications/Takc.exe $ mv Takc.exe Tak.exe -t ~/.wine/drive_c/windows/system32
- Encode:
[outfile]內為可加可不加,不加為為輸出原始檔名的tak file,更多請直接詳閱wine takc
1 2
wine tak.exe(GUI mode) wine takc -e file.wav [outfile]
- Decode:
[outfile]內為同Encode
1
wine takc -d file.tak [outfile]
待續...