====== Audio-Only DVD Ripping Guide ======
How to Convert DVD Video to MP3 or Audio CD Format
Brendan Kidwell\\
[[http://www.riphelp.net/downloads/smart-ripper.html|Smart Ripper]] (dead as of Dec 2007)\\
[[http://www.videohelp.com/tools/SmartRipper|Smart Ripper at videohelp.com]]
This DVD ripping program will conveniently rip a single video program to your computer, ignoring the menus, advertisements, movie trailers, and everything else you're not concerned with. And it can be told to extract only the AC3 audio stream, so you save even more space. You can use probably another DVD ripper to do that, but I prefer Smart Ripper because it writes an INFO file that tells you where the chapter stops (the starting points for each song) are supposed to go.
==== 2.2 HeadaAC3he ====
[[http://mitglied.lycos.de/darkav/svcdguide/svcd.html|HeadAC3he]] (dead as of Dec 2007)\\
[[http://www.digital-digest.com/dvd/downloads/showsoftware_headac3he_166.html|HeadAC3he at digital-digest.com]] (2008-04-24: also dead... The page lists links to three components you need to download and the third one is MIA. I'll update here by next week if I can find a copy of the files somewhere.)
This program decodes an AC3 audio stream and downmixes it a two-channel WAV file with Dolby Pro Logic surround sound. You will only need these components, which available at the above URL: HeadAC3he, Libmmd DLL, Azid DLL, SSRC DLL (download the version appropriate for your CPU.) I simply extracted all those components to the same folder, but you might prefer to put the DLLs in your System folder.
//[Dec 2007] Since the original site seems to be down, try downloading all three RAR files from the digital-digest.com URL above and extracting them all to the same folder. Hopefully you'll have everything you need then.//
==== 2.3 Chapter Stop Calculator Spreadsheet ====
[[http://www.glump.net/content/audio_dvd_rip/chapter_stop_calculator.xls|chapter_stop_calculator.xls]]
This is optional, but if you want to get the breaks between tracks/songs exactly where they are in the original DVD, you will need to use this Microsoft Excel spreadsheet I made to do some calculations on the numbers Smart Ripper gives you. If you don't have access to Microsoft Excel, [[http://www.openoffice.org/|OpenOffice.org]] is good free alternative, but the download is //quite// large.
> (8 January 2003) A reader was kind enough to do some work to enhance this spreadsheet. [[http://www.glump.net/content/audio_dvd_rip/new_spreadsheet/email.htm|See his email here]].
==== 2.4 CD Wave Editor ====
[[http://www.cdwave.com/|CD Wave Editor]]
This is the best program I could find for splitting a large WAV file into individual tracks/songs. It is the only non-freeware program you probably don't already have that is used in this guide. It is fully functional when unregistered, but please pay the author's $15 registration fee if you like it and continue to use it.
==== 2.5 RazorLame ====
[[http://www.dors.de/razorlame/|RazorLame GUI]]\\
[[http://mitiok.cjb.net/|LAME engine]] (dead as of 23 April 2008)\\
[[http://jthz.com/~lame/|LAME engine]]
If you want to make MP3 files, you will need an MP3 encoder. I will show you how to do it using RazorLame. If you'd prefer to use your own encoder instead, go ahead.
Download and install RazorLame from the first URL above. Then go to the second URL and get a Zip file of containing the Windows executable for the LAME engine and extract lame.exe from this file into the folder where you installed RazorLame. Start RazorLame and go to the Options command in the Edit menu and set the path to lame.exe.
==== 2.6 MP3/Tag Studio ====
[[http://www.magnusbrading.com/mp3ts/|MP3/Tag Studio]]
This is optional, and of course you can substitute your own favorite MP3 tag editor. MP3 Tag Studio creates ID3 and ID3v2 tags in your output MP3 files so that your MP3 player knows the title, album, artist, etc., of each track.
==== 2.7 Exact Audio Copy ====
[[http://www.exactaudiocopy.de/|Exact Audio Copy]]
If you want to make Audio CDs, this free program will take the single WAV file generated by HeadAC3he plus the CUE sheet generated by CD Wave Editor and burn a CD with no gaps between the tracks, so it sounds just like the original DVD. Other programs may be able to do the same thing.
===== 3. Ripping the Audio =====
Put the disc you want to rip into your DVD drive and start Smart Ripper.
Select Movie as your ripping method and go to the Input tab. Under the list of Program Chains, select the one you want to rip; it will probably be the one with the longest running time. At this point, if you want to skip any of the tracks/songs, deselect the appropriate Chapters in the list.
Go to the Stream Processing tab. Check the Enable Stream Processing checkbox and deselect all the streams except for the AC3 audio stream. Set that stream to "Demux to extra file" instead of "Direct stream copy." Note: If you don't see an AC3 stream listed there, you're out of luck. As I stated above, the instructions in this guide are for AC3 audio.
{{ http://www.glump.net/content/audio_dvd_rip/smartripper_1.gif |screen shot: Stream Processing tab.}}
You might notice that the Settings dialog box has a selection to split the output at every chapter stop. This won't work for two reasons---no matter what, you will only get one AC3 file per program using Stream Ripper, plus later we will want to normalize the entire program as a unit so that all the chapters are the correct volume level with respect to each other.
Click the button with the folder icon under Target and select an output folder. Now click the Start button and sit back and wait. This should take somewhere between ten and forty-five minutes, depending on the speed of your DVD drive.
In the end you should get a bunch of files in your output folder. Two of them are important: One is named something like
''%%vts_01_([0x80]_Audio_English_AC3(6Ch)_48kHz___)_Delay_0ms.ac3%%''
and it contains the AC3 stream, and the other is named something like "''%%vts_01_INFO.txt%%''" and it contains the time indices of the chapter stops. I will call these the AC3 stream file and the INFO file, respectively.
===== 4. Decoding and Downsampling the AC3 Audio =====
Start HeadAC3he. Hint: I discovered that if you use a Windows skinning program like WindowBlinds, you might have to resize HeadAC3he's window to make its Start Button appear.
Click the Source File button and select the AC3 stream file you created in the last step. It automatically assumes that you want to write the output to a WAV file of the same name, in the same folder. You may leave this as it is. The default output format is "WAV; 16 bit int." Leave this too. Be sure 2-Pass Mode is checked and select the "float" method. Set it to normalize to 100%.
{{ http://www.glump.net/content/audio_dvd_rip/headac3he_1.gif |screen shot: HeadAC3he main window.}}
Set it to Resample to 44.1kHz. This is required if you are planning to make an Audio CD. If you're making MP3 files, I recommend it, but you can certainly make 48kHz MP3 files if you prefer it. (Be aware that some hardware MP3 players and even some software MP3 players do not support 48kHz sampling.)
Click the Options button and the Channel Configuration window appears. In that window, click the button labeled "2ch." This will set everything in the window to properly output a two-channel WAV file with Dolby Pro Logic surround sound. Note: you will get Dolby Pro Logic output only if the source from the DVD is more than two channels or if the source is two channels with Dolby Pro Logic. If the AC3 stream on your DVD was just plain monaural or stereo, you will get just that in your WAV file.
{{ http://www.glump.net/content/audio_dvd_rip/headac3he_2.gif |screen shot: HeadAC3he options window.}}
After set up "2ch" mode, I recommend that you set Left and Right under Output Channels to "no" DRC instead of "normal." DRC means dynamic compression; it makes the quiet parts of the music louder. I think dynamic compression is bad, and it should only be used if you will always be listening to the output files in a noisy environment, such as jogging on the street with a CD player. This is just another matter of personal taste, though.
Click the Start button and sit back and let HeadAC3he do its thing. I have a Pentium 733 with an ATA-100 hard drive, and it took me about 20 minutes to process Blue Man Group's //Audio// album, which is just about an hour long.
Now you should have a two-channel WAV file.
===== 5. Cutting the WAV File Into Tracks =====
There are two ways you can set up the markers in CD Wave Editor for the beginnings of tracks. You can set the markers exactly where they were on the DVD or you can simply set them where you feel they belong. If you choose the latter method, skip ahead a few paragraphs.
If you're like me, you want to set the markers exactly where the technician mastering the DVD put his chapter stops. This is possible. Make a copy of my [[http://www.glump.net/content/audio_dvd_rip/chapter_stop_calculator.xls|Chapter Stop Calculator]] (the Excel spreadsheet I mentioned in [[#2. Requirements|Section 2]]) and open it. Use any text editor to open the INFO file that Stream Ripper made.
In the spreadsheet, set cell A4 to the video frame rate your DVD disc uses. There are many ways to determine this number, but a good rule of thumb is that it will be 29.97 (or maybe 30) if the disc was made for the U.S. market and it will probably be 25 otherwise. Other numbers to try are 23.976 or 24 for film sources. If you're not sure, get a program that lets you peek inside a DVD's structure. Now enter the chapter stops: Look in the INFO file for a line containing "Chap#=Frame#". The lines after that are the video frame numbers where each chapter starts, so copy them to the B column in the spreadsheet. For reference, you might want to fill in the F column with the chapter titles from the DVD's case or from its menus. Now the D and E columns will display the time indices in the format CD Wave Editor expects: //hour//://minute//://second//://frame//, where there are 75 //audio frames// in a second. (This time format is a result of the way Audio CDs are formatted.)
{{ http://www.glump.net/content/audio_dvd_rip/spreadsheet_1.gif |screen shot: calculation spreadsheet.}}
You might notice another series of chapter stops in the INFO file that are already written in //hour//://minute//://second//.//decimal// notation. These numbers may be wrong because of the way Smart Ripper derived them, so ignore them.
Now you either have exact chapter stop positions or you are planning to eyeball it. Start CD Wave Editor and open the WAV file that came from HeadAC3he. CD Wave Editor is divided into three sections: a graphical overview of the entire sound file, a zoomed-in view of the immediate vicinity of the currently selected time point, and a list of the cuts that are to be made on the sound file.
{{ http://www.glump.net/content/audio_dvd_rip/cdwav_1.gif |screen shot: CD Wave Editor.}}
Your first chapter stop will probably be at 0 seconds, so it's already in there. Read the time index of the second chapter stop from the calculation spreadsheet; if you skipped that step you can simply guess where it would be. Click and hold in the overview graph and move the cursor around until you are near the correct point; the Position box will tell you where the cursor is pointing. Still observing the Position box, click and hold in the zoomed-in graph and move around until you are pointing exactly at the time index for the chapter stop. Don't forget to use the Play button to //hear// where you are. When you've got the cursor at the correct point for the chapter stop, click the Split button. Input the rest of the chapter stops in the same manner.
For reference, enter the track titles: Select each region in the list of cuts on the bottom of the window, one at a time, hit