Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Create a High-Quality Rip Using Avidemux
03-06-2011, 04:42 AM, (This post was last modified: 03-06-2011, 04:42 AM by geogaddi00.)
Create a High-Quality Rip Using Avidemux
Note: Many options not necessary for a simple DVD rip and encode.

Create a Rip Using Avidemux

DISCLAIMER: This guide is general. Not every rip is the same. Not every aspect ratio is the same. Not every audio delay is the same. Common sense is strongly recommended.

Necessary Software


DVD Decrypter

1. Open up DVD Decrypter. If you want to copy the whole DVD, including extras. make sure Mode is set to File.

[Image: decrypt.png]

If you're ripping a DVD with extras but you want to encode only the movie, select IFO from the Mode menu.

[Image: ifomode1.png]

On the right side you'll see a list of PGCs, select the main feature. Click on the Stream Processing tab if there's multiple audio tracks but only want one (subtitles appear there too). Tick Enable Stream Processing and leave it on Direct Stream Copy.

[Image: 28174561.png]

Also make sure that if you have more than one DVD drive, that it's loaded up the one with your source DVD in it, and that the destination drive is one with enough space in it.

2. Click the Decrypt button.

[Image: decrypt-1.png]

It shouldn't take too long, and you'll see a message like this when it's finished:

[Image: decrypt3.jpg]

Part Two - Encode with Avidemux

1. Open up your video file. If you've ripped a DVD to your hard drive, select the first VOB file (e.g. VTS_01_1.VOB) containing the video you want to rip. Avidemux will ask if you want to append the related files - click yes.

[Image: append.jpg]

Select the kind of format you want to encode to; MPEG-4 ASP (XViD) is a good choice, and compatible with standalone players to boot, but you can have a go at encoding to X.264 if you're encoding a DVD rip and want to favour opitmum picture quality over compatibility. Now select your audio encoding. MP3 is the most common (at 128kbps), although AC3 is increasingly popular too.

[Image: avidemux2-2.png]
[Image: avidemux3-1.png]

2. Now click on Configure and select your encoding options. Your best bet is a two-pass encode, with a video size of at least 700MB, but probably no more than twice that. Remember that this is the video size only, so allow roughly 100MB (for a 90mn long movie with 128kbps MP3 track) to 200MB (for AC3 5.1) for the audio; if your target size is 1/3rd of a DVD-R (1.45GB) your video size should be between 1250-1350MB.

To improve standalone compatibility:
Motion tab: uncheck Global Motion Compensation and Quarter Pixel Motion Compensation
Frame tab: uncheck Closed GOP and Packed Bitstream

[Image: avidemux1-2.png]

3a. If your ripping from a NTSC source, you might have to IVTC the video. Simply put the movie was shot in 24fps, and to make it fit the NTSC framerate of 29.97fps some frames were duplicated. So use Decombe Telecide with 3:2 Pulldown strategy to remove the dupe frames and get a 23.976fps output. This is not foolproof, to learn more on IVTC, google it or check specialized sites.

3b. Now you need to sort out your filters. If you're encoding from an interlaced source, you'll want to use one of avidemux's deinterlace filters. How can you tell if it's deinterlaced? There's no automated way to check, so you just have to trust your eyes. Look out for interlacing artifacts by finding a frame with motion in it. If the frame looks something like this:

[Image: interlace.png]

… Then you're going to need a deinterlacing filter. But which one? They're all good, but Yadif is probably the best of the bunch. Here's what it looks like before Yadif:

[Image: interlaced.png]

And after:

[Image: deinterlaced.png]

4. You'll probably want to crop your video, particularly if you're encoding from a letterboxed source. The crop filter is pretty self-explanatory, just get rid of all the black stuff. I've only had to trim away 14 pixels on the left side and 4 on the right in this case. I don't recommend the auto crop option, it's never quite right. In case of a VHS transfer you can usually remove between 4 and 8 pixels at the bottom too, as it's only distorted gibberish.

[Image: avidemux5-1.png]

5. Resizing is optional; if you're going to go with a larger file size, you may as well keep the video at its original resolution, but if you're aiming for around 700MB you should resize it so the bpp (bits per pixel) count isn't too low (at least 0.160 bpp). Click the Round to the nearest multiple of 16 box - an avi file with a width that isn't a multiple of 16 will often have a horrible green strip down the side, or just be simply unplayable.

[Image: resize.png]

If the aspect ratio of your source file is incorrect, you can either uncheck Lock Aspect Ratio and manually change the size values, or you can change the Source and Destination settings if you know what they're supposed to be. So for instance, if you have an image like this:

[Image: 59906494.png]

You can set the Source to 16:9 and the Destination to 1:1:

[Image: 67413448.png]

And then the AR is corrected:

[Image: 68897189.png]

You can then resize it by sliding the trackbar to the desired size.

6. Other filters: Avidemux has a wide selection of filters which are well worth exploring, particularly if you're doing a VHS rip. You can increase or decrease the saturation, add a denoise filter (FluxSmooth is particularly good), blur away a TV logo, and much more. The more you experiment with avidemux's filters the better prepared you'll be to improve the quality of your rips.

[Image: avidemux6-1.png]

7. Save your file. Don't forget to type the ”.avi” at the end, as avidemux does not automatically append file types.

[Image: avidemux7-1.png]

The first pass will produce a .stat file, which avidemux then uses to accurately encode the video in its second pass. Depending on your processor, it could take a while to encode, and the more filters you've got, the longer it'll take. You can delete the .stat file after you rip is complete.

[Image: encoding.png]

Fixing Audio Sync Issues

For some reason Avidemux sometimes creates small audio delays during the encoding process, particularly when encoding from MPG-2 files (usually, I've found, rips from VHS and Digital TV). If the audio of your finished file seems delayed on playback, open the encoded file in Avidemux.

If you're lucky, the shift information might be encoded in your source file, so go to Audio, then Main Audio Track, and it'll give you a shift value in miliseconds.

[Image: shiftp.png]

Set both Audio and Video to copy, click the Shift tick-box and set the shift to the value shown in the Main Audio Track information box. If the drift seems much longer than the amount given in the information box, try a larger shift. I'd recommend starting with -300ms. For some reason, this tends to be the length of the drift on files I've encoded, especially digital TV rips.

[Image: copycopy.jpg]

Click save and save it under a slightly different filename. It should take less than a minute, as it's not doing any encoding. Play back the file, and if it's now in sync, you're good to go. If it's not, delete the output file you've just encoded and try again using a different shift value. Unless the source audio was wacky to begin with, you should be able to sort it out through trial and error.

Dual Audio Guide

If you're ripping a DVD with more than one audio track and you want to include them in the rip, it can seem tricky because Avidemux will not let you add a secondary track from the same source. So do it this way.

1. Select Audio>Main Track and then select the secondary track (the commentary track or whatever - it's usually Audio Track 1).

[Image: audiok.png]

2. Select Audio>Save and save the track as Audio2.ac3

[Image: audio2.png]

3. Audio>Main Track and now select the main track (usually Audio Track 0).

[Image: audio3.png]

4. Now go about your encoding in the normal way. You can't add the second track during encoding, so you'll have to encode first, and then add the track.

[Image: avidemux7-1.png]

5. When encoding is over, open your new video file in Avidemux. Set Audio and Video to Copy, click Audio, Secondary Track, select External AC3, and browse to your saved Audio2.ac3 file. Now save your file again under a slightly different name, remembering to set Format to AVI, Dual Audio.

[Image: audiocopy.png]

As there's no transcoding going on, this should be a very short process, at the end of which you'll have a dual audio AVI file.


Forum Jump:

Users browsing this thread: 1 Guest(s)