Am I late for a reply?
I know how to write an audio CD 'on-the-fly', without sacrificing disk space nor memory.
You just need to pipeline the 'mpg321', an mp3 decoder, and the 'cdrecord'.
Here is the code, change the dev and speed to fit your hardware.
Repeat it as many times you need.
Code:
mpg321 --cdr - music.mp3 | cdrecord -v dev=/dev/hdc speed=2 -audio -nofix -pad -
Note: change 'music.mp3' for your song; 'dev=/dev/hdc' for your cdrom device(you can also specify dev=0,0,0 which I don't like); 'speed=2' for your preferred speed.
Also, note the '-nofix' option which is VERY IMPORTANT.
When you are done, you can type the following command to close the disk:
Code:
cdrecord -v dev=/dev/hdc -fix -eject
NOTE: You will notice the message:
cdrecord: WARNING: Total disk size unknown. Data may not fit on disk.
Since the pipelined data size cannot be detected, check if there are enough space for recording all your songs properly.
Sorry, but I don't have an automated script ready.
I hope this helps.
Does anyone know some decoder for Ogg Vorbis?
Oh, sorry if I misspelled something. I am Brazilian.