On Fri, Feb 02, 2018 at 05:29:40PM -0500, Robert P. J. Day wrote:
one of my new year's resolutions was to digitize several hundred
music CDs in preparation for figuring out what system to use in the
domicile to play them, but regardless of how i decide to eventually
play these CDs, i'm looking for recommendations for how to rip them to
hard drive before i decide how i will end up using them.
given the cheapness of hard drives (and that i have a QNAP NAS
anyway), i don't really care about disk usage, so i figured on ripping
all of those CDs using (lossless) FLAC format, and i can decide down
the road whether to convert them to a different format to save on
space.
in short, any recommendations on simply ripping all these CDs to
hard drive, while having no idea what i will eventually use to play
them?
rday
Well, you aren't really digitizing them, they are already digital.
but, anyhow, here's a horrid little shellscript I use for ripping
audio off CDs. You may find some inspiration in it (or maybe some
feeling that you don't want to follow this), either way I hope
it's helpful. Note that this whole operation assumes it can find your
CD in the cddb database. If not, all bets are off.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#!/bin/sh
#set -x
if [ -z $1 ]
then
echo usage: $0 \<Album_Name \(without spaces or punctuation\)\>
exit
fi
album_name=$1
# read all the files from the CD and download album info from cddb.
# I note that on my system, cdda2wav is a link to icedax.
cdda2wav dev=/dev/sr0 -B -L 1
# now that we've read all the files,...
# use the audio_*.inf files to assign proper track filenames.
for i in audio_*.inf
do
# get the track number from the .inf file's name
track=`echo $i | sed -e "s:.*_::" | sed -e "s:.inf$::"`
#echo $track
# get the track title from the .inf file's contents
title="`grep Tracktitle $i | sed -e "s:^Tracktitle= *::"`"
#echo "$title"
# next, clean up spaces in the title
# (whoever the genius was who thought spaces in filenames was a good idea,
# should be taken out and shot.)
title=`echo "$title" | tr ' ' '_'`
#echo "$title"
# add numeric suffix and file extension
full_title="${album_name}_${track}_${title}".wav
#echo full_title=$full_title
# clean off the unneeded single quote marks, apostrophes, etc.
full_title=`echo ${full_title} | tr -d "\'\"()[]{};:\t"`
#echo full_title=$full_title
# now, at last, do the rename
wavname=`basename $i .inf`.wav
mv ${wavname} ${full_title}
done
--
-------------------------------------------------------------------------------
Under no circumstances will I ever purchase anything offered to me as
the result of an unsolicited e-mail message. Nor will I forward chain
letters, petitions, mass mailings, or virus warnings to large numbers
of others. This is my contribution to the survival of the online
community.
--Roger Ebert, December, 1996
----------------------------- The Boulder Pledge -----------------------------