Register
It is currently Wed Sep 17, 2014 3:33 am

cd2mp3 shell script


All times are UTC - 6 hours


Post new topic Reply to topic  [ 1 post ] 
Author Message
 PostPosted: Mon Nov 12, 2007 3:36 am   

Joined: Wed Jul 25, 2007 11:45 am
Posts: 11
http://www.rockhounding.net/docs/cd-burning/
http://www.holland-consulting.net/tech/obsdmp3.html

I've made really small modifications to the original script.

Code:
#!/bin/bash

FILE=cddbinfo.txt
# Add -v to line below if you want to see what cdparanoia does
cdparanoia -B

# This is a bogugtrack which is sometimes created
# Delete it if present
bogus_track=track00.cdda.wav
[ -f "$bogus_track" ] && rm $bogus_track

for i in *.wav; do
  mp3file=$(basename $i .wav)
  lame -cbr -b 192 -q 2 -k -t -p $i $mp3file.mp3
  [ $? -eq 0 ] && rm $i
done

# I don't have this
#mp3cddb *.mp3
#[ -f $FILE ] && mp3cddbtag $FILE


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP