Can/How to burn a .flac to an audio cd
Rant:
I would suggest you convert FLAC files to MP3 instead making AudioCD. Why?
- You can't possibly notice difference between
lame -V 5
(or even lower) and original source listening in a car - You'll save yourself time in the process and save $ on plastic, as space needed would be ~10 times reduced this way, plus you wont need to browse for CDs to find single album ;)
Procedure:
-
Convert FLACs to MP3 with lame (lame recommends -V2, but in your case I'd go with -V5):
flac -d -c track.flac | lame -V 5 - track.mp3
example for processing all FLAC files in current folder:
for f in *.flac ; do flac -d -c "$f" | lame -V 5 - "${f%.*}.mp3" ; done
-
Convert MP3 folder structure to Joliet folder structure ISO image
After you have converted FLAC files to MP3 arange MP3s in folder structure (i.e. /artist/album/track) than make ISO image like this:mkisofs -J -o /tmp/MP3-CD.iso /path to root of MP3 folder structure/
Note: you can't go above 700MB, check for space first
-
Burn ISO image
wodim dev=/dev/sg1 -dao speed=8 -eject /tmp/MP3-CD.iso
Note: Use
wodim --devices
to check for your device.dev=/dev/sg1
is valid for my system
Voila
In a directory that contains the .flac files you want to burn and nothing else:
for x in *.flac ; do flac -d "$x" ; done
wodim dev=/dev/cdrw -v -sao -useinfo -text -audio -pad driveropts=audiomaster *.wav
/bin/rm *.wav
(Assuming the location of your optical drive is /dev/cdrw
.)