DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Linux Shell And Music Files

05.14.2007
| 6277 views |
  • submit to reddit
        Install software:

sudo apt-get install id3v2 lame cdparanoia abcde normalize-audio vorbis-tools ffmpeg

Rip CD into .wav:

cdda2wav -B -H -D /dev/cdrom -s -x

Rip CD directly into .mp3:

abcde -d /dev/hdc -N -x -o mp3

Rip CD directly into .ogg:

abcde -d /dev/hdc -N -x -o ogg

Convert .wav to .mp3:

lame -h -m j *.wav

Convert .wav to .ogg (quality 7/10 and 128kbps).

oggenc -b 128 -q 7 onefile.wav

Normalize:

normalize-mp3 *.mp3
normalize-ogg *.ogg

From .ogg to .mp3:

ffmpeg -i onefile.ogg onefile.mp3

From .mp3 to .ogg:

ffmpeg -i onefile.mp3 onefile.ogg

Listen mp3 :-)

play onefile.mp3

<a href="http://barrapunto.com/~bakara/journal/26041?from=rss">Seen there</a>