2013-07-08 FLAC to MP3

Note to self: Assume you have a set of subdirectories named CD01, CD02, and so on, each containing a single FLAC file and a single CUE file, here’s how to convert them to MP3:

for d in CD*; do
    cd $d
    for f in *.cue; do
	n=`basename "$f" .cue`
	echo xld -c "$n.cue" "$n.flac"
	xld -c "$n.cue" "$n.flac" -f mp3
    cd ..

This uses XLD, also known as “X Lossless Decoder: Lossless audio decoder for Mac OS X”. Yay! :)



Please make sure you contribute only your own work, or work licensed under the GNU Free Documentation License. Note: in order to facilitate peer review and fight vandalism, we will store your IP number for a number of days. See Privacy for more information. See Info for text formatting rules. You can edit the comment page if you need to fix typos. You can subscribe to new comments by email without leaving a comment.

To save this page you must answer this question:

Please say HELLO.