Burning Gapless CDs from mp3 in Linux

   

Adapted from the archlinux wiki page.

This is a guide for burning gapless audio CDs from mp3s using Linux.

First, make sure you have lame and cdrdao installed. Both packages should be included in your distro’s repositories. In Ubuntu, you can install them with:

sudo apt-get install lame cdrdao

Now, copy and paste the following script into a text editor, and give it a meaningful name, such as “burngapless”:

#!/bin/bash
if [ -d wav ]
then
echo "wav folder already exists; using existing wavs."
else
echo "Decoding mp3s..."
mkdir wav
for file in *.mp3 ; do
lame --decode -S "$file" "wav/$file.wav"
done
echo "Done."
fi
echo "Creating table of contents..."
cd wav
{
echo "CD_DA"
for... ... read more >>> actualreality.wordpress.com

None