Voder-Vocoder

The Log of Hal Canary

Navigation: Home | THE LOG | Log Archives | Resume | Contact Info | Public Key | SSL | Math Applets | Site Map | WP Backend | RSS2 | Atom

« libertarians and statists and terrorists interact with each other in a way that might be quite stable | NN »

icky shiz …or… burning audio in linux

I’ve used itunes at my parents house to burn audio CDs. It works nicely. At home, I use Rhythmbox, which has no such ability. Here’s how I do it.

Create a nice 80-minute playlist. SAve it to /home/hal/tmp/x.

Run this script:

#!/bin/sh
# $HOME/bin/make-audio-cd-from-playlist.sh
grep  '=file://' $1 | awk -F '//' '{print $2}' > tmp-file
i=1
for LINE in $(cat tmp-file) ; do
    if [ "$i" -lt 10 ] ; then
	FILENAME="track_0${i}.wav"
    else
	FILENAME="track_${i}.wav"
    fi
    lame --decode "$LINE" $FILENAME
    i=$(($i+1))
done
cdrecord dev=/dev/cdwriter -pad -v -audio track_??.wav

And then:

$ cd  /home/hal/tmp/
$ make-audio-cd-from-playlist.sh x

UPDATE: Recent versions of Rhythmbox have the ability to burn audio CDs.

Hal Canary | Computers & Code | 2005-02-10 14:27:10 EST
Permanent Link | No Comments

Comments are closed.

Copyright 1997-2007 by Hal Canary.
mailto: h3 at halcanary dot org
xmpp:halcanary@jabber.org
aim:halwcanary
http://halcanary.org