Ripping a library to FLAC and MP3
Reply #7 – 2006-04-16 21:16:49
Long time no write have had a dead computer. Done a bit more tweaking and this is what I am up to now. Would anyone mind if I put this on the wiki? Maybe under EAC->Exact Audio Copy Guides->Compression Guides ( http://wiki.hydrogenaudio.org/index.php?ti...pression_Guides ) EAC and React Any additions or clarifications for people? What this does * Makes a flac image and cuesheet for backup with album gain * Makes flac tracks with album and track gain for listening * Makes mp3 tracks with track gain for protable player * Get album art for a folder.jpg What it doesn't do * Albumgain on the mp3s * Embed the album art in the tag on the mp3s (For use on iPod for instance) * Get lyrics and/or embed them in lyrics tag (again for use on iPod for instance) This is how I am doing it so far: ***Downloads Software EAC 0.95b3 with CDRDAO ZIP version 2005-08-30 ( http://www.exactaudiocopy.de/eac6.html ) FLAC 1.1.2 for Windows tools only ( http://flac.sourceforge.net/download.html ) LAME 3.97b2 ( http://wiki.hydrogenaudio.org/index.php?title=Lame_Compiles ) REACT 0.996 2005-11-19 ( http://www.hydrogenaudio.org/forums/index....showtopic=36261 , http://www.hydrogenaudio.org/forums/index....pe=post&id=1810 ) ACDIR 0.12 2005-07-03 ( http://nyaochi.sakura.ne.jp/xoops/modules/...php?cid=1&lid=2 ) iTunes Cover Downloader 0.2.0.4 2006-04-12 ( http://www.hydrogenaudio.org/forums/index....showtopic=40067 , http://www.hydrogenaudio.org/forums/index....pe=post&id=2155 ) Glob Not sure where to get this from other than it coming inculded with React AccurateRip 2005-05-16 ( http://www.accuraterip.com/dMC-AccurateRip.exe ) ***Install Extract EAC to c:\ripping\eac\ Extract FLAC to c:\ripping\flac\ Extract LAME to c:\ripping\lame\ Extract ACDIR to c:\ripping\acdir\ Extract iTunes Cover Downloader to c:\ripping\iTunesCoverDownloader\ Extract REACT to c:\temp\ Double click c:\temp\REACT_0996.exe For destination folder put in c:\ripping\eac\ ***Setup Install AccurateRip Copy C:\Program Files\Illustrate\dBpowerAMP\AccurateRip.dll To c:\ripping\eac\AccurateRip.dll Run c:\ripping\eac\eac.exe Follow the isntructions to have you drive offsets set up Follow the setings in here http://www.hydrogenaudio.org/forums/index....showtopic=30959 Leave the external compression tab as this will be different as using REACT as external compressorhttp://www.hydrogenaudio.org/forums/index....showtopic=30959 EAC Options: Extraction Tab [ ]Fill up missing offset samples with silence [ ]No use of null samples for CRC calculations *Doesnt change audio* [X]Synchronize between tracks [ ]Delete leading and trailing silent blocks [X]Skip track extraction on read or sync errors (wont affect rip, but I check yes for next 3) [X]Skip track extraction after duration longer than X times realtime [X]After each 30 minutes of extraction, cool down the drive for 5 mins [X]Lock drive tray during extraction Extraction and compression priority: Normal Error recovery quality: High (some feel that medium is sufficient, as there will often be a read sync error if high recovery is required, however at times the high setting can recover a track) General Tab doesnt matter for ripping. Tools Tab [X]Retrieve UPC/ISRC codes in CUE sheet generation [X] Use CD-Text information in CUE sheet generation [ ]Create '.m3u' playlist on extraction - **user option [X]Automatically write status report on extraction [X]On extraction, start external compressors queued in the background [1] - **user option. [X]Do not open external compressor window - **user option [X]Submit drive features after detection [ ]Activate beginner mode, disable all advanced features Normalization Tab NOT CHECKED!!! Filename Tab Naming Scheme: %A - %C - %N - %T Various Artists: %C - %N - %A - %T Catalog Tab No idea what this tab is for and I havent changed anything but the numbers are 45, 0, 5, 5 Directories Tab **user option. Write Tab Nothing to do with extraction here Interface Tab Im using and installed ASPI Drive Options Extraction Method Tab Secure Mode (after detect read features option is used, with appropriate settings) Drive Tab autodetect for drive read command disable the C2 after autiodetect check the "drive caches" option, which clears the drive cache Big endian and swap channels are off Spin up before extraction is on Offset / Speed Tab Offset locked by AccurateRip [X] Overread into lead-in and lead-out data (You will need to test this one on a disc, if you get a read sync error on the first or last track of a new CD your drive cant overread and the option should be unchecked - this will mean that you loose the number of samples equal to your drive offeset on either the first or last song, the only solution is a different drive) [X]Allow speed reduction during extraction [X]Check CD-Text Read capable drive Gap Detection Tab Gap/Index retreval method: per drive setting (start with method A or B) Detection Accuracy: Secure ( some prefer to use accurate) Compression Options External Compression Tab React will set this up for itself Offset Tab [ ]Use offset detection for encoding and decoding Do NOT check this as it will add gaps to gapless music Close EAC Run c:\ripping\eac\REACT.exe Click yes for do you want to configure EAC for use with REACT Close EAC Edit c:\ripping\eac\REACT.ini This is what mine looks like:[Settings] ;Which config to use Config=FLAC ;Where EAC is located EAC=c:\ripping\eac\EAC.exe ;The Music root directory musicdir=c:\music\ ;Where the enconder are ;Think I am not suing it ;encdir=C:\ripping\eac\Encoders ;Where to put the log file LogFile=c:\music\log.txt CodePage=1252 ;Minimise the compression window. 0 = false MinimizeCompressionWindow=0 ;The priotrity to run the process at. 1=Below normal ProcessPriority=1 ;The button to press in EAC to start the image process ImageHotkey={F10} ;How to names the image files ImageNaming=$artist$ - $album$ KeyRemap1={F4}|+{F5} KeyRemap2=| KeyRemap3=| Sla_Bks_Col_Qst_Bar_Quo_Ast_Lt_Gt=-|-|-||!|'|#|[|] Version=0.996 Debug=0 ; -- flac -- [FLAC-image] Description=FLAC image, FLAC tracks and MP3 tracks Dave 2006-01-26 & 2006-04-16 ;This will be the extension of the flac image ImageExt=flac ;This will be the extension of the cuesheet for the image CuesheetExt=flac.cue ;dest1 Where the FLAC images end up dest1=c:\music\flac_images\$cdartist$\ ;dest 2 and 3 don't need trailing \ as is added in the acdir call ;dest2 Where the FLAC tracks end up dest2=c:\music\flac\$cdartist$\$album$ ;dest3 Where the MP3 tracks end up dest3=c:\music\mp3\$cdartist$\$album$ ;Turn the Image from a WAVE to FLAC 1=>c:\ripping\flac\bin\flac.exe -V -8 --replay-gain --tag=artist="@artist@" --tag=album="@album@" --tag=date="@year@" --cuesheet=@sourcecuesheet@ "@source@" -o "@image@" ;Move the FLAC image and cue sheet to the destination directory 2=>move "@destbase@.*" "@dest1@" ;This will set the output filename format of the tracks 3=>set out2=$~a - $~T - $n - $~t ;This will make the FLAC tracks 4=>c:\ripping\acdir\acdir.exe --output "@dest2@\%out2%.flac" --pipe "c:\ripping\flac\bin\flac.exe -V -8 --tag=artist=$#a --tag=album=$#T --tag=tracknumber=$#n --tag=title=$#t --tag=date=$#r{DATE} - -o $#o" "@sourcecuesheet@" ;This will make the MP3 tracks 5=>c:\ripping\acdir\acdir.exe --output "@dest3@\%out2%.mp3" --pipe "c:\ripping\lame\lame.exe --preset insane -t --id3v2-only --pad-id3v2 --replaygain-accurate --ta $#a --tl $#T --tt $#t --tn $#n --ty $#r{DATE} - $#o" "@sourcecuesheet@" ;This will delete the source wave file and EAC log file from your rip/temp directory 6=>del "@source@" "@eaclog@" ;Move to the flac tracks dir 7=>cd /d "@dest2@" ;metaflac won't let you just say *.flac so need to use glob ;Do replay gain (album and track) on the flac tracks 8=>c:\ripping\eac\Encoders\Glob.exe -v -c c:\ripping\flac\bin\metaflac.exe --add-replay-gain *.flac ;Get some album art 9=>c:\ripping\iTunesCoverDownloader\iTunesCoverDownloader.exe "$cdartist$" "$album$" " " "@dest2@" "folder.jpg" ;The cover art downloader takes awhile and runs in the background so just wait a little bit 10=>echo "The cover art downloader takes awhile and runs in the background so just wait a little bit" 11=>pause ;Copy the album art from The flac track dir to the mpe track dir 12=>copy "@dest2@\folder.jpg" "@dest3@" ;Copy the album art to the flac image dir and change teh name from folder to artist - album 13=>copy "@dest2@\folder.jpg" "@dest1@\$cdartist$-$album$.jpg" ;This will pause it once finished so I can see what happened along the way 14=>echo "Finished $cdartist$ - $album$" 15=>pause ***Now for the ripping part Put CD in Double click c:\ripping\eac\REACT.exe Use alt+g to get the freeDB info and/or type it in yourself (Maybe check the information matches what is on Musicbrainz.org) Press F10 Click save this is the temp wave file and cue sheet location Wait for the black command prompt to disapear CLick ok in EAC Your files should be where it is specified in the REACT ini file