Convert ape to mp3 in Ubuntu

Source: Internet
Author: User
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

Related Article

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.