rick and morty s04e04 supergirl madam secretary S06E10 ettv the rookie terminator dark fate 2019 Ray Donovan watchmen angel has fallen 2019 0 frozen 2 shameless s10e05 ad astra 2019 vikings etmovies the blacklist s07e09 gemini man 2019 Mr Robot arrow His Dark Materials s01e06 queen slim 2019 The Flash star wars the walking dead doctor sleep 2019 see Supergirl s05e09 mr robot s04e10 see s01e08 Hustlers 2019 Ncis 21 bridges 2019 ethd ad astra ford v ferrari 2019 evo shameless ncis los angeles s11e11 rq.mp4 joker jumanji the next level 2019 the morning show etrg watchmen s01e08 xxx joker 2019 hindi rambo last blood 2019 ddr yts the mandalorian s01e05 His Dark Materials the mandalorian mandalorian silicon valley S06E07 christmas fast furious presents hobbs shaw 2019 frozen ii 2019 batwoman s01e09 once upon a time in hollywood 2019 madam secretary knives out 2019 midway 2019 rick morty ray donovan s07e04 zombieland double tap 2019 the rookie s02e10 the irishman 2019 doctor sleep Silicon Valley rick and morty batwoman 
Warning! Use a V.P.N When Downloading Torrents!
Your IP Address is Location is United States
Your Internet Provider is tracking your torrent activity! Hide your IP ADDRESS with a V.P.N!
We strongly recommend using ExpressV.P.N to anonymize your torrenting. 30 Day Money Back Guarantee!
Try it Now!
Tutorials > The Art of Encoding Movies in XVID/AVI Part 1

You are in:  Forums / Tutorials / The Art of Encoding Movies in XVID/AVI Part 1
NeOPost has 2 Like and 0 Dislike | Posted at 2017-11-07 17:50:01(109 wks ago)

Posts: 162

This guide assumes you are running a Windows based PC. All tools mentioned are freeware. This guide is quite complex and not intended for absolute beginners. The purpose of this guide is to create a fully customizable rip and achieve the most you can at a specific filesize. In this case a standard 700Mb Rip.

Tools Needed:

VobSub Download it HERE
XviD Bitrate Calculator Download it HERE
DVDShrink Download it HERE
Audacity 1.3 Beta Download it HERE
XviD Codec Download it HERE
Megui Download it HERE
Avisynth Download it HERE
VirtualDub Download it HERE
VirtualDubMod Download it HERE
.NET Framework 2 Download it HERE



We need to rip the DVD. To do this, insert the DVD into your pc's DVD-ROM and open up DVD Shrink. Click on the "Open Disc" blue button to your top left, then a window will pop up, click ok.

DVDShrink wil begin analysing the DVD. Once it finishes, click on the "Re-Author" button to your top right. Here, you will see everything the DVD has. Menus, Movie, Extras etc. Scroll down if needed and look for "Main Movie" window, here you will see the main movie. Click on it and hold the button, and drag it to your left, the left window that says "DVD Structure".

Once you do that, click on the "Compression Settings" button to the left of "DVD Browser". Now you will see "Video", "Audio" and "Subpicture" (Subtitle) Sub menus. Under "Video", set it to "No Compression". Default should say "Automatic", so just switch it to "No compression". Under the "Audio" sub Menu, select the Audio tracks you want to include into your DVD. In my case, Im only including the main audio track, no commentaries or anything special. Under the "Subpicture" Sub menu, leave the subs you want checked. In this case, this DVD didn't bring any subtitles so everything is blank.

Once you have all of this set, click oh the "Backup!" button. A warning might come up saying your DVD is too Big to fit on a single layer DVD, just ignore it and click yes. This window will pop up afterwards:

Now, go to the "DVD Region" tab, once there, check the box that says "Region Free". Now go to the "Target Device" tab, under "Select backup Target" set it to "Hard Disk Folder". Underneath that, you will see "Select Target Folder For Output Files". Creat a new Folder on your Desktop and name it "Example-DVD-R" or something similar. Mine will be "DEAD-RIOT-DVD-R". Now click the browse button on the "Select Target Folder For Output Files" and set it to the folder on your desktop. Now uncheck the box that says create Video Ts and Audio Ts subfolders. Afer that Click OK and Shrink will begin to rip the DVD into your selected output folder. Once it finishes it will let you know, click ok and close out DVDShrink.


Before anything, create a folder on your desktop with the name of the release. I do this to keep the project more organized. Mine will be "DEAD-RIOT-RIP". So once you do that, there will be two working folders on your desktop, "EXAMPLE-DVD-R" and "EXAMPLE-RIP". In my case the two folders are "DEAD-RIOT-DVD-R" AMD "DEAD-RIOT-RIP". Once you do that, open up megui.

NOTE: If its your first time using megui, it will prompt you to install avisynth. install it if you havent already. It will also ask you to update everything in it, do it. While updating it will ask you if you'd like to import profiles, click cancel on all the profiles. Once done updating, it will ask you to restart megui, do it and once opened again, it will be fully up to date

Once open, click on "Tools/DgiIndexer/D2vCreator" It will take you here:

Click the button next to "Input File" and locate your "EXAMPLE-DVD-R" Folder. Select only the first vob file and click "Open".

Now you will see that megui has loaded the audio streams. Under "Audio", check the bubble "Demux All Tracks". Under output, click the button and select your output folder which will be "EXAMPLE-RIP". Name the output something unique, in my case it will be named "DR", Then click "Save". Now, Underneath that, uncheck the box that says " Demux Video Stream" and check the two boxes that say "On Completion Load Files" and "Close". Once you do that click the "Queue" button.

Now go back to the megui main window and look for the "Queue" button in the middle. You will see your job waiting. Clcik on "Start" to your bottom left hand side. It will begin the process


Now, once done processing, megui will auto-load the d2v file into its script creator. It will look like this:

now, click the "Filters" tab then select the "Analyze" button. Megui will begin analysing what kind of source your DVD is. This can be done manually with DGMPGDec but we'll stick to Megui. Detecting a source can be quite difficult for beginners. First you must lean about Interlaced material and progressive material. Some may even be Hybrids. For examples on all this just google interlaced pictures. Anyway, back on track, once it finishes analyzing, it will input the necessary filters depending on your source.

Now select your resize filter. I like the "Spline 36" Neutral. Click on the options button, you will see options "Crop" and "Resize". Crop accordingly making sure to only remove the black borders. Once you do that, Check the "resize" box and check the "Suggested resolution" box to maintain aspect ratio. Try not to pass 640 width as some standalone divx players cannot handle higher than 640.

Now before you do anything else or save anything, open up the XviD bitrate calculator. This step is vital as you will get an idea of how the movie will more or less turn out at your selected resolution and filesize you plan on ripping it to. Open it and input all the required information. Once you do that it will let you know how the quality will turn out. Its not100 percent accurate but at least you have an idea of what you're accomplishing, whether it be a good output or over compressing.

Notice the bits/pixels frames. Thats the frame quality. Ignore it if it says not a good idea. Anything above 0.170 is good. Below 0.170 is not so good.
Once you've got it all calculated and decided what resolution to input in megui, click on save. Megui will open another window but just colse out everything including megui.

Now you open your working folder, and verify that everything is there. The AviSynth Script, the ac3 audio, and the d2v file.


NOTE: This part is for those using Audacity for their first time. You will need to install two plug-ins. You need to install the lame and ffmpeg filter.

TO DOWNLOAD Lame and FFmpeg for Windows, click links BELOW:


Once you get those plugins, install them to this directory. C: Program FilesAudacity 1.3 Beta (Unicode)Plug-Ins
Make sure you install them to this directory! C: Program FilesAudacity 1.3 Beta (Unicode)Plug-Ins
Your drive letter could be different but the Audacity directory does not change!

Once you do that, open up Audacity. Click "Edit/preferences". Once there click on "Libraries".

Click the "locate" button on both plug ins and locate them. They will be will you put them before:
C: Program FilesAudacity 1.3 Beta (Unicode)Plug-Ins

Once you do that, you're ready to work on the audio.

Ok so open up Audacity, you will see this:

Click on "File/Import/Audio" Browse to your "EXAMPLE-RIP" folder on your desktop and select the .AC3 Audio track. Audacity will begin to import it and when it finishes, you will see a graph on Audacity.

Now go to "Edit/Select/All". The whole graph will be highlighted. Once you do that, go to "Effect/Amplify". Amplify as much as you can and click ok. If you amplify too much, the ok button will become unclickable. This means that the peaks went off the chart. So amplify to the max allowed and click ok. Audacity will then start amplifying the audio.

Once it finishes amplifying, go to "Edit/Select/All" again. Then go to "File/ExportSelection". A new window will pop up, leave everything blank and select ok.

Afterwards a new window will pop up.

Select "EXAMPLE-RIP" as your output folder, next to "save as type" set it as MP3, Then click options. A config window will pop up, set it as average and select desired bitrate. 128Kbps in my case. Once you configure all that, click "Ok" then click "save". Audacity will begin to encode the Audio.

Listen to your Mp3 results and see if you like it, if not, you can always set it at a higher bitrate.


This is the last part. I will show you how to encode the movie using VDUB. I will be using XviD for this tutorial. I will also show you how to add filters to your movie to get a better result. Filters are optional and not always needed, but I will illustrate how to do it for the sake of this tutorial.

Using VDUB

Open up VDUB. Go to "File/OpenVideoFile". Select your AviSynth Script which should be in the "EXAMPLE-RIP" Folder. VDUB will then load the script.

Go to "Audio/SelectAudioFromOtherFile". Locate your mp3 file which will be in the "EXAMPLE-RIP" Folder. A new window will open up, select CBR if audio is CBR and VBR if audio is VBR.

Now we're back at the main window. go to "Video/Compression" A window will pop up showing the list of all codecs you have installed in your pc. So we're at the window, select Xvid and click "Configure".

The Xvid Codec Configuration window will appear as illustrated above.

The first thing you want to do is set the "Profile Level" at "Unrestricted" Once you do that, click "More" next to "Profile Level"

Once you click "More" a new window will pop up.

Now its time to configure. If your movie will have 1000Kbps bitrate or more, set the "Quantization type" to MPEG. If it will be under 1000Kps set it to H.263. Check the "Adaptive Quantization" box and leave the three below unchecked. Check the B-VOP box. Set the max consecutive B-VOP's to 4. Leave the "Quantizer Ratio" at 1.50 and "Quantizer Offset" at 1.00. Check the "Packed Bitstream" box. Disregard the "Level" and "Aspect Ratio" options and click ok.

Your settings should look like this except the H.263. You can use MPEG or H.263, really up to you.

Now you're back at the main XviD config window. Next to "Encoding Type", set it to "Two Pass First Pass"

Next to "Quality Preset", set it to "user defined"

Click "More" next to "Quality Preset" and a new window will open up.

Set "Motion Search Precision" to "6-Ultrahigh". Set "VHQ Mode" to 4-Wide Search". Check all three boxes : "Use VHQ for b-frames too" "Use Chroma Motion" "Turbo ". Leave Frame Drop ratio at 0. Set "Maximum I-Frame Interval" to the correct number. If your movie is PAL (25.000 FPS), Set it at 250. If your movie is NTSC INTERLACED ( 29.970 FPS) Set it at 300. If your movie is NTSC PROGRESSIVE (23.976 FPS) set it at 240. In my case, its is NTSC PROGRESSIVE so I'm setting it at 240. Your settings should look like this:

Now click on the "Quantization Tab". Check the "Trellis Quantization" box and leave other settings at default. They should look like this:

Now click "OK" and you will be brought back to the main XviD config window. Go to "Encoding Type" and set it at "twopass-2nd pass"

Click on "Target Bitrate KBPS" and set it to "Target Size kbytes" if not already done.

Click on "Calculate" button next to "Target Size kbytes" and a new window will open.

Next to "Target size", type in 714752

714752 = 698MB. 1024kbytes multiplied by 698Mb = 714752 kbytes. The reason I made it 2 mb smaller is to get exactly 700mb output file. With XviD, You gotta always take off 2 mb or you'll end up with a 702-703MB file.

Next to "Format" leave it in "Avi-Open-DML"

Under "Video", input the length of your movie in Hours, minutes, and seconds. Next to that input the FPS. If your source is pal it will be 25Fps, if your source is NTSC and is progressive, set it at 23.976Fps, if your source is NTSC and is not progressive, meaning that it is interlaced, set it at 29.970Fps.

Now under "Audio", check the bubble that says "Sizekbytes". If your audio is CBR set it to CBR and VBR set it to VBR. Look for the box to the bottom right hand side and click it. Locate your mp3 audio and select it and click ok, It should be in the "EXAMPLE-RIP" folder if you have followed this guide step by step. Once loaded, you will see that the xvid calculator has changed its numbers around and gave you a calculation for your movie.

Once you do this, click ok and you will be back to the main XviD window. Next to "Encoding type", set it back to "Twopass-1st pass", now click the "more button". You will see this:

Check the "Discard First pass" box. Now click on the button next to "stats filename" and save the stats file in the "EXAMPLE-RIP" folder.

Assuming you have the Codec set up, stats file saved, and codec set at "Two Pass-1st pass", Click on "Video" and make sure it is set to "full processing mode". Once thats set, go to "File/QueBatchOperation/SaveAsAvi"

Save it in your "EXAMPLE-RIP" folder. NAme it he same as the d2vfile, in my case, "DR". Once saved, go back to compression, set the codec to "Two Pass-2nd pass" and repeat the saving steps. Once you got both passes saved, go to "File/JobControl" you will see your two passes waiting to be processed. Start them and VDUB will begin to encode.

The next post containing part 5 which is the last part and it will be explaining how to encode the movie using VDUBMOD

you can view it by clicking the thread link below:


Last edited by NeO on 2017-11-08 19:04:45

Report This Post Go to the top of the page

<< Prev  1   Next >>

You are not permitted to post in this forum.