Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-16-2005, 04:58 AM   #1
LQ Newbie
Registered: Mar 2004
Posts: 9

Rep: Reputation: 0
Script to copy AND encode Audio CD

I am trying to write a script that will copy a cd then encode it (eith Ogg or Lame) into fully tagged indivudual track files.
I have so far after some research written a script that uses cdrao to query cddb and rip a .bin and .toc file then burn said file back to a blank cdr - great exact audio copying achieved.
I now want to extend the script to (preferably without re-ripping) split the bin file using the toc into individual tracks and encode and tag them (either with oggenc or Lame I don't mind). But am struggling. Has anyone got any suggestions. (I am happy to try and write the script myself but don't know where to start).
Old 09-16-2005, 05:30 AM   #2
Andrew Benton
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
I usually rip cd's with cdparanoia then encode it with oggenc. I've not found a way to automate filling in the track names. This one is for the Simple Minds CD `Sparkle In The Rain. For a different CD fill in the appropriate track names.
rm -rf simple-minds-ogg &&
mkdir simple-minds-ogg &&
cd simple-minds-ogg &&
	let "TRACK_NUMBER += 1" &&
	cdparanoia $TRACK_NUMBER &&
	oggenc cdda.wav -b 256 -o "Simple Minds - $1.ogg" &&
	rm -f cdda.wav
rip "Up On The Catwalk" &&
rip "Book Of Brilliant Things" &&
rip "Speed Your Love To Me" &&
rip "Waterfront" &&
rip "East At Easter" &&
rip "Street Hassle" &&
rip "White Hot Day" &&
rip "C Moon Cry Like A Baby" &&
rip "The Kick Inside Of Me" &&
rip "Shake Off The Ghosts" &&
echo "done"

Last edited by Andrew Benton; 09-18-2005 at 04:26 AM.
Old 09-16-2005, 05:44 AM   #3
LQ Newbie
Registered: Mar 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the suggestion. But what I really want to do is use the info that cdrdao has pulled down from cddb into the toc file to do the naming/tagging. Does anyone know a way to script this ?
Old 09-20-2005, 03:33 AM   #4
LQ Newbie
Registered: Mar 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Any ideas please ?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
audio cd copy gadhiraju Linux - Software 2 09-12-2004 03:00 PM
k3b audio cd copy rlculver Linux - Software 0 07-11-2004 03:46 AM
Easiest way to copy audio cd? ivanatora Linux - General 1 07-06-2004 03:50 PM
Audio CD copy NeptunEz Linux - Software 2 03-17-2004 07:04 PM
Cannot copy audio CD! cboyd Linux - Newbie 2 02-16-2002 03:04 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration