SysAdmin's Journey

Create CD's From FLAC Files With Mp3cd

So, you store all your CD’s as FLAC, and encode FLAC to MP3 on the fly. Now, you’ve gone and lost that CD, or in my case, your 3 year old daughter loses it for you. How do you regenerate a CD from your FLAC’s? mp3cd does just that. I was all set to code something up myself, but mp3cd is currently maintained, and even available in the Ubuntu repositories! It has a man page, and it even works – why reinvent the wheel? Note that if you do use Ubuntu, and you’re getting this error:

sox soxio: Failed reading `01.wav': unknown file type `auto'

Then you just need to install some packages:

sudo apt-get install libsox-fmt-all