Conversion method "Turn" between common audio formats under Linux
The following is a brief introduction to the conversion method between common audio formats for Linux environments:
MP3 Related tools: lame
OGG Related tools: Vorbis-tools
APE Related tools: Mac
FLAC related tools: FLAC
WAV Related tools: Shntool
Bin/cue Image segmentation: Bchunk
1.mp3 and WAV convert each other
MP3-wav
Lame--decode < input _mp3 file > < output _wav file >
WAV-MP3
Lame-b < bit rate > < input _wav file > < output _ogg file >
Shntool conv-o "Cust Ext=mp3 lame-b < bit rate >-%f" < input _wav file >
2.OGG and WAV convert each other
WAV, OGG
Oggdec < output _ogg file >-o < enter _wav file >
OGG, WAV
Oggenc-b < bit rate > < input _wav file >-o < output _ogg file >
3.APE and WAV convert each other
Ape-and WAV
Mac < input _ape file > < output _wav file >-D
Ape, WAV
Mac < input _wav file > < output _ape file >-c < compression ratio, default = 2000>
4.FLAC and WAV convert each other
FLAC-wav
flac-d < input _flac file >-o < output _wav file >
WAV-FLAC
FLAC < input _wav file > < output _flac file >-< compression ratio 1-8, default is 5>
5. Split Ape/cue image
i) decode into WAV format first
Mac Cdimage.ape cdimage.wav-d
To cut again.
Bchunk-w cdimage.wav cdimage.cue Output
Or
Shnsplit-f Cdimage.cue Cdimage.wav
II) can also be directly cut
Shnsplit-f Cdimage.cue-i Ape
III) cutting and converting to other formats (Flac/mp3)
Shnsplit-f cdimage.cue-i ape-o FLAC cdimage.ape
Shnsplit-f Cdimage.cue-i ape \
-O "Cust Ext=mp3 lame-b-%f" Cdimage.ape
6.APE <-> FLAC Convert to each other
Shnconv-i Ape-o FLAC Cdimage.ape
Shnconv-i Flac-o Ape Cdimage.flac
How to convert common audio formats under Linux