April 18, 2008
(c) ADigitalMan, all rights reserved
Reprinting allowed so long as author and copyright info remain intact
Link back to OriginalTrilogy.com for updates
This guide assumes you are working in a Microsoft Windows environment. Be sure you have plenty of RAM and a large hard drive with a good 40 MB free. An external Firewire drive has proven to be much faster than an internal IDE drive in my experience.
Recommended software (info on obtaining these is available through VideoHelp.com):
* DVD Decrypter
* Gordian Knot
* TMPGEnc Encoder
* Womble MPEG Video Wizard
* Hypercube Transcoder
* DVD-Lab Pro
30-day demos are available for most of the products above. Gordian Knot, Hypercube and Px3Convert are freeware.
Step 1: Get the Elements
* Open DVD Decrypter
* Under Tools/Settings/IFO Mode, set the "File Splitting" option to "none." OK the settings menu to save the change.
* Under the "Mode" menu, switch to "IFO"
* Determine the video you want to extract. This sometimes takes trial and error to find all of the supplements, but you can ususally open the disc in Power DVD, note the running time of each segment, and then find the corresponding segment in DVD Decrypter. I recommend renaming the folder after each extraction so that you don't overwrite what you've extracted with a subsequent extraction.
* Under the "Input" tab, click on the PGC for the element you want.
* Then, under the "stream processing" tab, check "Enable Stream Processing"
* Uncheck the streams you DONT want. Usually this is all but the video stream and a particular audio stream. The audio streams correspond in order to the number of streams you can select with the "audio" button on your DVD player. Note: Womble currently doesn't support DTS editing, so you may wish to ignore any DTS files for now, even though they are superior to AC3 files
* Click on the video element you DO want, then click on the "demux" radio button below. Repeat for the audio element(s) you DO want.
* Set the destination folder to the fastest drive with the most space
* Click on the decrypt button and go ride a bike while it rips.
Step 2: Correct the MPV Video stream
For reasons I haven't bothered to research, the video stream is always riddled with timecode errors. Fortunately Womble includes a tool to fix these.
* Open Womble MPEG Video Wizard
* Under the "tools" menu (indicated by a button with a wrench on it) select MPEG GOP Fixer
* point the "input" file to the first video file in your collection. You may need to change your file types to "all files" to see the MPV files.
* Point the "output" file to the designated directory. By default, Womble will name this file the same as your original stream, and add prepend "fix_" to it.
* Select the radio button for "Fix GOP Time Code Errors and PTS Errors (Read + Write)"
* Click the Start button and let it create the corrected file.
* Repeat all these steps for every video stream you ripped.
At this point, it is important to note whether or not all of your video sources are the same type. Specifically, if the video is 16x9 vs 4x3, and whether or not they are all progressive or interlaced. If they are all the same, then skip to step 4. If, for example, you're using deleted scenes that don't match, we will need to convert them to the same format in Step 3.
Step 3 (if needed): Converting 4x3 interlaced video to 16x9 anamorphic video.
Gordian Knot installs several utilities with AVISynth that help you perform some basic video conversion functions. Essentially we will take the M2V/MPV files you have fixed, create a script based on their basic info for AVISynth, modify that script, generate and uncompressed AVI of the manipulation, then re-encode back to M2V. It's a tedious process, but one well worth it.
* Under the Gordian Knot suite of additional apps, launch DGIndex.
* Open the M2V file. Open only one at a time if you're doing multiple videos.
* Save this D2V project with a unique name.
* Launch Gordian Knot and open the .D2V file you just created
* This will launch a second window, with the video actually in it.
* Click "Save & Encode." This will open another window.
* Just click "Save" in this window. No need to encode yet. This will create an AVS file (just a text script). Give it a unique name. I usually choose the same name as the D2V file and the M2V file to keep them grouped together.
* Open the AVS file in notepad or other text editor of choice.
* Note that the "#" character is used to comment (i.e. render inactive) a particular line.
* If the video is telecined (if it shows scan lines for 2 out of every 5 frames) we need to do an inverse telecine. Uncomment the line: LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\decomb.dll") and uncomment the line Telecide(order=1,guide=1).Decimate() by removing the # character at the start of each of those lines.
* Assuming you're editing NTSC and not PAL:
* Change the cropping command to read: crop(0,60,720,360). This will remove 60 pixels from the top and from the bottom. (PAL should be (0,38,720,404)
* Change the resizing command to read: LanczosResize(720,480). This will stretch the image to anamorphic proportions.
* Uncomment the line: Undot()
* Save the file
* Under the Gordian Knot suite of additional apps, launch VirtualDubMod and preview the video to make sure it looks right.
* Launch TMPGEnc
* Start a project with the setting DVD NTSC 16:9 (or PAL if appropriate).
* In the next window drag your AVS Script into the video source.
* Click next until you get to the Bitrate setting window.
* Make sure the bitrate setting has the average video bitrate setting at 8000. This is the maximum number allowed and will ensure the best possible video quality.
* Click Next and name the output file. The default name may conflict with the original source. Be certain that it doesn't so you don't have to rip from scratch if something goes wrong. I suggest renaming the source file, since most of your work is based off the "fix" file.
* You can check to run the job in batch if you have multiple files.
* Set the conversion to run, go run a marathon and read War and Peace. Take a vacation. Solve world hunger. After all of that, your new M2V files should be ready.
Step 4: Edit your sources.
Womble allows you to edit video with up to two audio tracks. Usually you only want one, but you may occasionally want to offer a second track. Music only, or 2-channel stereo, or commentary, or whatever. Womble makes this pretty easy if you know how to work it.
* Open a new project in Womble
* Drag your fixed video file onto the video timeline.
* Drag your first audio track onto one of the audio timelines. Push it so it is flush-left to guarantee that it lines up with the video track. If a second audio track is desired, do the same in the second audio timeline.
* You can zoom into frame-accuracy on the timeline by hitting the + on the interface, and zoom back out by hitting the - button. You may advance frame-by-frame with the left and right keys on your keyboard, and may drop your cursor anywhere in the timeline.
* TO MAKE AN EDIT: Drop the cursor on the frame where you want to make the cut. Highlight ALL tracks by CTRL-clicking each one. Then hit the scissors button, which will cut all three tracks in the same spot. It is recommended that you do this zoomed-in as far as you can go. I've seen cuts shift a frame sometimes if you are zoomed out. You can always undo if necessary.
* If you're adding a scene in: Drag the fixed video of this new scene onto the video timeline into the split point you created, above. Do the same for the audio file(s). VERY IMPORTANT: Check the end of the split point on the new file. Often the video will be a few frames shorter or longer than the audio file. It is important to trim them to the same length, then re-align your "main" video and audio, or they will go out of sync.
* If you're removing a section: Find the last frame of the video you wish to cut. Then move one frame to the right. Cut all tracks. Delete the parts you wish to remove. Then slide everything to the right of this split as far left as it will go, so it abutts the previous section cleanly.
* SAVE YOUR PROJECT. Remember to save often. Womble tends to crash if you're working with large files but don't have a lot of RAM. It also sucks up a lot of virtual memory, so be patient with it.
* Once all your edits are done, preview each one of them, looking for issues like extra frames flashing at edit points (usually caused by not trimming accurately).
Step 5: Export and check:
Womble exports the streams modifying the GOP structure and not re-compressing unless video or audio was manipulated. If you added no FX to the video, then you will export a video file that is exactly the same quality as the source. If you did add FX, then the areas where FX were applied will be recompressed. With regards to Audio, Womble will actually export AC3 files *IF* all sources contain the same number of channels and bitrate. Otherwise it will recompress the audio to a stereo MPA or WAV file, depending on what you choose.
* If you used more than one audio track, mute one of them now.
* Click on the "export" button (it looks like a cassette).
* Under the "audio" tab, choose AC3 if possible. If not, I recommend WAV, as it will not re-compress the signal and will make it useful for VEGAS, which we'll talk about later.
* Under the "Video" tab, hit the "expert" button and change the algorithm to "Maximum quality." This will ensure that if any segments are reencoded, they will look as good as possible.
* Under the "General" tab, ensure that the video and audio streams are separated and not multiplexed. This will export separate streams. Set the range to "all" by selecting "work area" and then "all."
* Under the "Monitor" tab, click start. The new streams will be generated. This seldom takes more than a half hour if you're using a firewire drive.
* Save your project file when it's done to retain all your export settings.
* Verify the results by loading them into a new project. Many times Womble will drop a frame or add a frame. This sometimes causes the audio to drift out of sync. Re-check your original project, remove any frames if necessary, and re-export. If the end result is still out of sync, note the number of frames off, and we'll correct through some trickiness in Vegas.
Step 6 (if needed): Make surround-sound audio.
If you were unable to make an AC3 file in Womble, or if you didn't like the AC3 file it made due to lack of crossfades, synch issues, or whatever, we can recreate it in Vegas. This is painstakingly time consuming and is not for the faint of heart. But the results are exquisite.
To extract 6-channel AC3 files to WAV:
* Open Hypercube Transcoder
* Change Output Engine to WAV Engine (6 mono files)
* Change processing type to Native Processing
* Ensure your source file is tucked into a subdirectory of its own to prevent accidental overwriting.
* Choose your input file. Output path will be set by default.
* Click Transcode.
* Go watch the complete collection of Gunsmoke ... all 20 seasons. (But seriously, a 2-hour file takes about one hour to process on my system using a firewire drive.)
* Repeat for each file you need to transcode.
The result is six wave files ... one for each channel. C=center, L=left, R=right, LS=left surround (rear) RS=right surround (rear), LFE=subwoofer (low frequency somethingoranother). Hypercube labels these for you. Woo hoo!
* If the AC3 is 2-channel, you can convert it simply to a stereo WAV using Px3Convert.
* If you need to upmix a 2-channel source to include in your 5.1 mix, check out Doom9's Guide: 2- to 5-channel upmix using Dolby Pro Logic II
* The latest versions of Womble will also upmix 2.0 to 5.1. Be sure to set your audio export options to 5.1 AC3. You can re-create each 2.0 source as 5.1 individually, which you can then rip down along with the main 5.1 audio in the manner described below.
* In Vegas, create a "5.1 Surround DVD" project.
* Load the stereo wav you exported in Womble. This will be your reference file and will be muted out of the final mix.
* Drag in each of your six mono files into individual tracks. Label them, so you know which is which. Check the alignment (I usually slam them all as far left as they will go) then GROUP them together so they will be edited and moved together. This is VERY important.
* Set up the correct sound panning for each of these tracks so that they go to the correct channel in the final mix.
* If your export had audio drift issues, here is where you would squeeze your stereo reference file the required number of frames. This method has been quite effective at "re-synching" a file for me. Squeeze the source, then align the "unsqueezed" files at each edit point.
* Using your ears and eyes, align the audio to the reference file.
* Add in new tracks with the deleted audio as necessary. Split the main movie according to the splits your ears tell you, line up a new scene, realign everything afterward. Keep going through this process until all your edits are re-created. Vegas has lots of fading options that can make for smoother transitions than straight cutting. Experiment.
* SAVE OFTEN!!!
* When you're satisfied, mute out the reference channel, then select "Render as" from the file menu. Be sure you're exporting to a 5.1 DVD.
* Volunteer at a soup kitchen and use the downtime to help out somebody in your community. When you get back the file should be done.
* Load the final video file with your new Audio file into a new (temporary) Womble project to preview how well they synch up. Pay special attention to the places you edited. If necessary, make changes and re-render the AC3 file or, even the Womble project if you notice issues in the video. It takes a lot of finessing.
Step 7: Muxing and Authoring the DVD.
If you have only one audio and no subtitles, you may use either DVD lab or TMPGEnc DVD Author. I recommend the latter if you're muxing a WAV file instead of an AC3 file. I tend only to use WAV if its a concert video where the audio is much more important than the video quality.
Otherwise, load your final streams into DVD Lab (I prefer DVD Lab Pro). Experiment with menu options. Author the final DVD and plant a forest while waiting. Preview it in PowerDVD. If changes are needed, save your project file and you'll only be tweaking and re-rendering.
Recompress to single-layer if necessary. I recommend Nero 6 as the results have been gorgeous.
Preview again and if all is well, burn it. You may wish to burn to DVD+/-RW first to watch it on TV as a last quality control measure. Watch it with a pad and paper in hand and note any trouble spots.
It may take a few weeks to get a good edit at first, but as you get familiar with the tools, you'll get faster and faster and will make fewer mistakes as you learn.
Though much of my understanding comes from trial and error, special thanks go to VideoHelp.com and a user there by the name of "Manono," who taught me the IVTC and resizing tricks in Gordian Knot. Plus MeBeJedi and Laserman from this site for being great sounding boards as I was learning.