Burn audio cd
I have a dir with a few mp3-files that I want to burn to an audio-cd.
I tried to do something with cdrecord but I first got an error and then I tried to as the error said and use the -pad-option but then the cd just got "fsck"ed up (it's a joke, not fsck). Code:
$ cdrecord dev=/dev/cdrom -audio file1.mp3 file2.mp3 [...] fileN.mp3 Code:
$ cdrecord dev=/dev/cdrom -audio -pad file1.mp3 file2.mp3 [...] fileN.mp3 |
Do you mean you want to create an audio CD with each track containing an mp3 file?
The good news: you can burn such a CD, just the way as you did it using the -pad option. And now the bad news: no player will play those tracks, since standard audio CD tracks should contain raw PCM data, and not mp3 :-(. So, either you write those mp3s onto a data CD, or you extract them into raw PCM, and burn an audio CD. |
Yeah I thought that the type may be the problem. But then my question is: how can I convert from mp3 to whatever you told me to use (I have read about so many types so I can't remember them all, wav, cdda, etc. So many terms. :P).
How shall I burn when I have the correct type that can be played in a standard cd-player? |
You have to do four things:
1.) Decode the mp3 files to wav: lame --decode fileN.mp3 fileN.wav 2.) Resample the wav files to 44.1kHz bitrate sox fileN.wav -r 44100 fileN-new.wav resample 3.) Normalize the volume normalize -m *new.wav 4.) Burn the files onto a CD; you already know how to do it: cdrecord dev=/dev/cdrom -audio -pad file1-new.wav file2-new.wav [...] fileN-new.wav The above should work, though I never did it myself; these are all the result of some google searching I did. |
OK, here is a little script of mine that is supposed to automatize audio CD creation using lame, sox, normalize and cdrecord:
Code:
if [ -z "$1" ] ; then /path/to/script /path/to/album If you find that the script could be handy, then feel free to debug it, as I wrote it in 5 minutes and I never tested it. Also it might need some addition to handle spaces and special characters in filenames, which could cause some trouble in the present state of the script. A last note: the linuxquestions.org forum software always replaces the double "[" and "]" characters in the if constructs of my codes, so you must possibly correct the if construct syntax you find in my post. Cheers Edit: This time the linuxquestions.org forum software totally ruined my code, so I had to replace double "[" and "]" characters by single ones just to make the script readable here. So, please double those characters in the if constructs before using the code. |
All times are GMT -5. The time now is 06:19 PM. |