Conversion between common audio formats in Linux

Source: Internet
Author: User
The conversion method between common audio formats in Linux-Linux general technology-Linux programming and kernel information. For details, refer to the following section. 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. Mutual conversion between MP3 and WAV
Mp3> wav
Lame -- decode <输入_mp3文件> <输出_wav文件>
Wav-> mp3
Lame-B <比特率> <输入_wav文件> <输出_ogg文件>
Shntool conv-o "cust ext = mp3 lame-B <比特率> -% F" <输入_wav文件>

2. Conversion between OGG and WAV
Ogg-> wav
Oggdec <输出_ogg文件> -O <输入_wav文件>
Wav-> ogg
Oggenc-B <比特率> <输入_wav文件> -O <输出_ogg文件>

3. Mutual conversion between APE and WAV
Ape-> wav
Mac <输入_ape文件> <输出_wav文件> -D
Wav-> ape
Mac <输入_wav文件> <输出_ape文件> -C <压缩比率, 默认为 2000>

4. Conversion between FLAC and WAV
Flac-> wav
Flac-d <输入_flac文件> -O <输出_wav文件>
Wav-> flac
Flac <输入_wav文件> <输出_flac文件> - <压缩比率 1-8 , 默认为 5>

5. Split APE/CUE Images
I) first decoded to WAV format
Mac CDImage. ape CDImage.wav-d
Further cutting
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) cut and convert 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 320-% f" CDImage. ape

6. APE <-> FLAC mutual conversion
Shnconv-I ape-o flac CDImage. ape
Shnconv-I flac-o ape CDImage.flac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.