How Do I Burn MP3 onto an audio CD from Linux shell command prompt?

Recently I decided to burn selected MP3 files on an audio CD from command prompt.

First, you need to convert your mp3 (myfile.mp3) into .wav (myfile.wav) file:
$ mpg123 -w myfile.wav myfile.mp3
Use above command to convert all files to mp3

Then burn all .wav file on to the CD
# cdrecord -dev=ATA:1,0,0 -eject speed=4 -pad -audio *.wav

For more information see:

Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!

{ 2 comments… read them below or add one }

1 Rob 12.07.05 at 10:58 am

You can use lame to encode the WAVs to MP3s. Once wav file created using cdparanoia you can use lame to encode the file wav to an MP3:

lame myfile.wav myfile.mp3

lame also supports bitrate option for example to use 256 kilobytes bitrate you can use:

lame -b 256 myfile.wav myfile.mp3

Read man page of lame for all supported options.

2 Kan 06.15.07 at 11:30 pm

to convert all mp3 files at once, do:
for i in *.mp3; do mpg123 -v -w "${i%mp3}wav" "$i"; done

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Tagged as: , , , , , , , , , ,

Previous post: Linux powered gaming gadget Gamepark Holdings GP2X-F100 by end of Oct-05

Next post: How do I synchronise my single Debian Linux desktop clock to network?