PDA

View Full Version : How to create an XviD BRrip from a 720p mkv



dreamer
18.03.10, 20:59
Hello
In this guide I will explain how to make a BRRips like you see in a lot of torrent trackers.
I'll explain here how to take a 720p BluRay mkv file and transform it to a XviD HQ BRRip.
These rips are very high quality and can be played on your Standalone DVD, PS3 and XBOX360.
You can choose your rip size and resolution (up to 480p for standalone DVD and 720p for PS3 and X360)
There are softwares that can make it automatic but you can't control the outcome too much.

You will need a few softwares:
1) MKVextractGUI which can be found in MKVtoolnix MKVtoolnix - Video software and downloads - VideoHelp.com (http://www.videohelp.com/tools/mkvtoolnix)
2) eac3to (to decode DTS and AC3 audio and encode) eac3to - Video software and downloads - VideoHelp.com (http://www.videohelp.com/tools/eac3to)
3) AviSynth Avisynth - Video software and downloads - VideoHelp.com (http://www.videohelp.com/tools/AviSynth)
4) VirtualDub and VirtualDubMod Virtualdub - Video software and downloads - VideoHelp.com (http://www.videohelp.com/tools/Virtualdub), VirtualdubMOD - Video software and downloads - VideoHelp.com (http://www.videohelp.com/tools/virtualdubmod)
also make sure that matroska splitter is installed and that you can view MKV files correctly, and AC3Filter.

Here are the steps:

1) You will need to extract the audio out of your MKV file.
Open MKVextractGUI and input your MKV file.
Select only the audio file which can a DTS or AC3 file.

http://i42.tinypic.com/ohkbrd.jpg

Press extract and wait for it to finish.
You will have another file in your folder now. a DTS or AC3 audio (According to your mkv file)

http://i42.tinypic.com/2lrlmv.jpg

You can now choose if to keep the quality of the audio as it is or to downgrade to a lower quality.
In this guide I will explain how to downgrade DTS audio to 384 kbps AC3 audio.
You can choose different audio bitrates of an ac3 file from 640 to 448, 384 etc.
Or you can keep the DTS audio but that is not recommended because it takes up to 1 GB of file size which is a lot.

2) This might look tricky but it's EASY.Encoding the audio.
If your audio is already in the quality you want (for example AC3 and 640kbps just move on to step 3)
If you can't stand writing one small command in command prompt you can also download eac3to gui here Eac3to and More GUI - Doom9's Forum
Otherwise Open command prompt (Run --> cmd) and type in the path for your eac3to exe file followed by the parameters. (tip - you can just drag the exe file to the window and it will show the path)
Now this is the command you will need to type.


eac3to.exe -input.dts -output.ac3 -resampleTo48000 -down16 -384

http://i40.tinypic.com/24gofgx.png

Instead of input.dts type the full path to your dts or ac3 file you wish to encode.
Instead of output.ac3 type the full path of the output ac3 file.

The -384 is your choice.. it can be 640 for maximum quality, 448, 384 and so on..

Example of a command:
"C:\eac3to\eac3to.exe" "E:\Track2.dts" "E:\output.ac3" -resampleTo48000 -down16 -384
Let it finish.

http://i39.tinypic.com/2v2fr41.png

3) Once finished you have the encoded audio and need to encode the video and combine the two.
Create a new text document which will be our avisynth script in the mkv directory.
It will say:

DirectShowSource("Source.mkv", fps=SourceFPS, convertfps=true)
Lanczos4Resize(NEW,RES)

"Source.mkv" = full path to your MKV file.
SourceFPS = the FPS of the original MKV file (can be found with Media Player Classic, G Spot, or MediaInfo)
(NEW,RES) = specify here the resolution of your choice.. and make sure it is in the same ratio as before. let me explain.
if you have a video and the ratio is 16:9 you need to keep that ratio.
if your resolution is 1280:720 and you want an 480p video (maximum resolution for a standalone dvd), in order to keep the ratio you go for the maximum width which is 720 and by that you calculate the heigth.
you need to calculate your ratio (1280/720) and then divide your maximum width with that ratio: 720/(16/9) or... just google this "720/(1280/720) and you will get your hieght.

example: you have a video with 1280:556 if you want 480p you will write (720/312) as your resolution.. why? 720 for maximum width and to know the height that goes with it according to the ratio:
the calculation is 720/(1280/556) = 312.

An example of a script:

DirectShowSource("amityville.horror.2005.720p.hdtv.x264-thor.mkv", fps=23.976, convertfps=true)
Lanczos4Resize(720,404)

4) Now the video configuration part.
Open your avisynth with virtualdubmod.

http://i39.tinypic.com/5kgjyo.png

Press Stream --> Stream list.
Now press add and choose the audio you created or the audio you extracted and didn't encode. (AC3)
Choose the first stream and click Disable.
You will reach this screen:

http://i43.tinypic.com/r7sjt4.png

Press okay and click Video --> Compression.
Choose XviD MPEG 4 and click Configure.

http://i43.tinypic.com/154u0sj.png

At Encoding Type select 2 Pass - first pass, click "more.. " and write stats filename "1pass.stats"

http://i39.tinypic.com/2je1ki8.png

At the Profile @ Level click More.. and follow the picture

http://i40.tinypic.com/iepgjr.png

At Quality Preset click more.. and follow the picture.

http://i43.tinypic.com/nv4coi.png
http://i43.tinypic.com/15wxaas.png

Click File --> Save As and type 1stpass, select (tick) "Don't run this job now..."

Go again to Video --> Compression.
Choose XviD MPEG 4 and click Configure.
At Encoding Type select 2 Pass - second pass.
The other configuration should be the same but just in case:
At the Profile @ Level click More.. and follow the picture

http://i40.tinypic.com/iepgjr.png

At the Target Bitrate click Calc.. and type in the data according to your movie.. (not available in first pass)
The length, the target of size desired (let's say for 2.2 GB file write 2300000), the FPS, and the bitrate of the audio.

http://i39.tinypic.com/1603rme.png

At Quality Preset click more.. and follow the picture.

http://i43.tinypic.com/nv4coi.png
http://i43.tinypic.com/15wxaas.png

Click File --> Save As and type 2ndpass, select (Tick) "Don't run this job now..."

Now go to File --> Job Control.
You will see the 2 passes you just set to create and the 1st pass is before the 2nd.
Press start and let VDubMod do it's thing..
When finished you will have 2 files.. 1stpass.avi and 2ndpass.avi
The 2ndpass.avi is the final file with everything we want - AC3 sound with HQ video.


I tried to write this guide so even not encoding professionals could create their own high quality rips..
if you have any questions you are welcomed to ask!

saebrtooth
19.03.10, 01:34
This is a very detailed tut and thanks

I have a question. Wont re-encoding reduce the quality even further from the original?

However, its a good work around if u wanna play ur movies directly on ps3 and xbox ;)

dreamer
19.03.10, 08:02
This is a very detailed tut and thanks

I have a question. Wont re-encoding reduce the quality even further from the original?

However, its a good work around if u wanna play ur movies directly on ps3 and xbox ;)

of course it will reduce the quality..
an MKV file contains (usually) the x264 codec which is superior to the XviD in terms of quality and compression.. you get better quality and for less size with mkv.
so when encoding MKV-x264 to AVI-XviD you will reduce the quality.
BUT the MKV is already in the highest quality and with BRRips with big file size = high bitrate (3000-5000) the quality will be so good that you will notice slight change in quality.. :top:

it's THE answer to playing the highest possible quality on your X360 and PS3 since they both can't play the MKVs we usually get..

saebrtooth
19.03.10, 09:11
it's THE answer to playing the highest possible quality on your X360 and PS3 since they both can't play the MKVs we usually get..

I agree and thats why I mentioned it :wink:

shawshankraj
19.03.10, 11:06
Thanks...It's very useful Guide...But I think it's going to take a more time to do encode..

What's average encoding time as a noob i am asking this question?

saebrtooth
19.03.10, 13:35
If ura noob and still want good quality or varying selectable quality but still want automation then try DivX Author.

dreamer
19.03.10, 13:51
Thanks...It's very useful Guide...But I think it's going to take a more time to do encode..

What's average encoding time as a noob i am asking this question?

let's see.. assuming you don't have the above apps - downloading - 2 minutes.
extracting audio - 2 minutes.
encoding the audio - 35 minutes but you're free to do other stuff while it works.
writing avi script - 20 seconds?
working with vdubmod and encoding the video + adding audio = 2 minutes of configuration, 20 minutes for 1st pass, 90 minutes for second pass.

a total of 151 minutes = 2 hours and a half. :top:

if you're a total noob and want everything to be automatic you can use this great app: mkv2avi - Video software and downloads - VideoHelp.com (http://www.videohelp.com/tools/mkv2avi)
like I said it won't let you configure everything you want and you can't control the outcome in 100% (an example - I tried to make 4 GB size avi and I got 1.8 GB instead, while by my guide I could make 3.6 GB)

dreamer
05.04.10, 01:30
seems I can't edit my post but I did find a GUI for eac3to which I believe make a lot of things simpler for some of you guys.. I've attached it :smile:

anon
05.04.10, 01:31
You can't edit your post after 48 hours have passed. I can move the attachment to the first post if you want.

guerreiro2
29.06.10, 14:51
Hello,

Just to say that this guide is a very useful for a noob like me. Thank You.

Now, I've a little annoyance: How can I achieve the target Size of 2,18GB.

I've tried with the calculator of "Xvid-1.2.2-07062009 _Final Release_" but the 2nd pass always gives me 1,6GB in 720p MKV with 640Kbps AC3, a file with a 2hours of lenght and the 1stpass gives me 1,8GB.

I'd like the very best quality possible, with the very best bitrate and the target more or less 2,10 or 2,15 or 2,18.

What I'm doing wrong following this tutorial?

Thx.

yoco
29.06.10, 15:50
I'm guessing this takes a lot of time, right? It's very useful tutorial, since you can't find every BRrip you want.

kazuya
29.06.10, 16:04
Hello,

Just to say that this guide is a very useful for a noob like me. Thank You.

Now, I've a little annoyance: How can I achieve the target Size of 2,18GB.

I've tried with the calculator of "Xvid-1.2.2-07062009 _Final Release_" but the 2nd pass always gives me 1,6GB in 720p MKV with 640Kbps AC3, a file with a 2hours of lenght and the 1stpass gives me 1,8GB.

I'd like the very best quality possible, with the very best bitrate and the target more or less 2,10 or 2,15 or 2,18.

What I'm doing wrong following this tutorial?

Thx.

2nd pass for size 1st pass for quality. 2nd pass you choose target size,just put the desired size you want(2,18 = 2018000 kbytes) and in calc you can also put information about movie and see what bitrate you will have with that size...brrip should be around 3500 Kbps,if you are not satisfied with that bitrate put higher size. if you just want best quality and exact bitrate you choose only 1st pass,but you can't determinate what file size the movie will be in the end...


I'm guessing this takes a lot of time, right? It's very useful tutorial, since you can't find every BRrip you want.

better just to download brrips(they are encoded with best filters and so),if you do it yourself it can take a lot,with such filters 1-2-3 days even if you have good PC

guerreiro2
29.06.10, 17:13
Thank you very much for your explanations.

Last doubt: When I encode it seems in comparison with the original that my brrip is slightly blurred.

Probably is because of the quantization. But, just for curiosity, is possible to slight sharp a bit the encode?

Maybe put the Virtualdub default filter "Sharp" in conjuction with the encode to balance little a bit the encode?

Thx again.

kazuya
29.06.10, 18:01
Thank you very much for your explanations.

Last doubt: When I encode it seems in comparison with the original that my brrip is slightly blurred.

Probably is because of the quantization. But, just for curiosity, is possible to slight sharp a bit the encode?

Maybe put the Virtualdub default filter "Sharp" in conjuction with the encode to balance little a bit the encode?

Thx again.

it's normal that to the original it will get blured,the higher the compression the more quality will fall off.

yes you can sharp it,try one of this filters VirtualDub MSU Smart Sharpen Filter (http://compression.ru/video/smart_sharpen/index_en.html)

WorldWarII
26.01.13, 20:53
I'm stuck here when i try to open virtualdub mod with avisynth. I recieve the follow error:

http://img255.imageshack.us/img255/5237/71893211.png Any suggestion is welcome.Thank you

Phoenisex88
24.04.15, 19:29
Very useful tutorial for a noob like me but i`m stuck here..please help me !
http://i.imgur.com/9kw0POO.jpg

Sazzy
24.04.15, 19:52
do you have haali media splitter + ffdshow installed?

Phoenisex88
24.04.15, 21:00
just instaled that 2 (haali+ffdshow) and now work fine. Thanks a lot :)

Kh@lDr@go
24.07.16, 06:19
What a great tutorial. I think this should make it easier in case someone wanted to create lower size videos with little bit lower quality.

Codec
07.08.16, 11:38
You should use x264 or x265. x264 is vastly superior to xvid and produces transparent encodes at similar bitrates. I use Hybrid GUI for x264. You can find the different GUI's for x264/x265 here MPEG-4 Encoder GUIs - Doom9's Forum (http://forum.doom9.org/forumdisplay.php?f=78). x265 kills x264 when it comes to low and average bitrate. It is a completely new, enhanced compression standard. And there is no reason why HEVC/H.265 shouldn't perform better (or at least equivalent) than AVC/H.264 at any bitrate. But it's clear that HEVC/H.265 will shine most at the very low bitrates, where AVC/H.264 starts looking bad. At the higher bitrates, where AVC/H.264 already looks great, there's just not much room for improvement

anon
08.08.16, 16:22
You need a supercomputer to encode either of them at an acceptable speed, though. Xvid is more accessible on that regard.

Codec
08.08.16, 16:28
Yeah x265 is slow but x264 is much faster. I have an i5 2nd gen cpu and i get around 2-3 fps at the placebo preset.

anon
08.08.16, 16:40
On a modest Celeron N2806, I get 9 FPS on x264, while Xvid goes at over 400. I wouldn't even want to test x265... of course, if you encode regularly, you'll have a much better computer than that in the first place.