Three steps for converting ape into mp3 in Ubuntu: install the software, ape-& gt; wav, wav-& gt; mp3. 1. install the software ape-& gt; wav conversion requires mac (monkey'saudiocodec). Official Website: http://supermmx.org/linux/mac /. Download the source code, compile and install it. #./Configure # make # installwav-& gt; mp3 conversion requires lam
Three steps for converting ape into mp3 in Ubuntu: install the software, ape-> wav, wav-> mp3.
1. Install software
Ape-> wav conversion requires mac (Monkey's Audio Codec). Official Website: http://supermmx.org/linux/mac /. Download the source code, compile and install it.
#./Configure
# Make
# Install
Wav-> mp3 conversion requires lame. Official Website: http://lame.sourceforge.net /. Download the source code, compile and install it.
#./Configure
# Make
# Install
2. ape-> wav
$ Cd xx $ mac xxxx. ape xxxx.wav-d 3, wav-> mp3 $ lame xxxx.wav xxxx1_lame the default bitrate is 128 kbps. If you need other bit rates,-B. For example, $ lame-B 320 xxxx.wav xxxx.mp3 another script, an ape to mp3, with the split function :#! /Bin/sh
PARAM = $ #
If [$ PARAM-eq 2]; then
Echo ""
Echo ""
Echo "***********************************"
Echo ***** Step 1 converts ape to wav *****
Echo "***********************************"
Echo ""
Echo ""
Mac "$1" "'echo $1 | sed-e's/. ape $ //'' ". wav-d
Echo ""
Echo ""
Echo "***********************************"
Echo ***** Step 2 converts wav to MP3 *****
Echo "***********************************"
Echo ""
Echo ""
Lame-h-B 320 "'echo $1 | sed-e's /. ape $ //''". wav "'echo $1 | sed-e's /. ape $ //''". MP3
Rm "'echo $1 | sed-e's/. ape $ //'' ". wav
Echo "************************************"
Echo ***** Step 3: split an MP3 file *****
Echo "************************************"
MP3splt "'echo $1 | sed-e's /. ape $ //''". mp3-c "'echo $2 | sed-e's /. cue $ //''". cue
Rm "'echo $1 | sed-e's/. ape $ //'' ". MP3
Echo ""
Echo ***** conversion completed! *****
Else
Echo-e "usage: ape2MP3 filename (ape) filename (cue )"
Fi