laodai
04-17-2010, 01:29 AM
Here I am going to try to explain how to filter and encode your DVD/Blu-Ray/BDRips to create better and sharper looking DVDRips/BDRips/BRRips. I will try my best to explain everything.
Required Softwares:
1.AnyDVD-HD(Shareware)
http://www.slysoft.com/en/anydvdhd.html
2.AviSynth
http://sourceforge.net/projects/avisynth2/
3.AvsP
http://avisynth.org/qwerpoi
4.BD Rebuilder
http://www.videohelp.com/tools/BD_Rebuilder
5.EVOdemux
http://www.videohelp.com/tools/EVOdemux
6.GraphEdit
http://www.videohelp.com/tools/GraphEdit
7.MeGUI (Use the latest version)
http://sourceforge.net/projects/megui/
8.MKVToolnix (Use the latest version)
http://www.bunkus.org/videotools/mkvtoolnix/downloads.html#windows
9.Microsoft .NET Framework 2.0
http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en
10.Nero Digital Audio Encoder
http://www.mediafire.com/file/t2xbkdz1eiy/NeroDigitalAudio.zip
11.SubRip
http://www.afterdawn.com/software/video_software/subtitle_tools/subrip.cfm
12.TsRemux
http://www.videohelp.com/tools/TsRemux
13.K-LiteMega Codec Pack (You can use your own separate Codecs if you want)
http://www.codecguide.com/
14.Plugins for Avisynth
http://www.mediafire.com/?mmnjkgljm0z
15.ChapterXtractor
http://www.videohelp.com/tools/ChapterXtractor
LIVE Links removed! Live Links are not allowed on x264-BB :)
You need to extract the Plugins for Avisynth to "C:\Program Files\AviSynth 2.5\plugins". A Readme file is included with most of the plugins. You can know more about these plugins and more on the Doom9 Forum.
If you have a PC which has Multithreading(Core i7, Core2Duo, Dual Core, etc.) look at these two threads:
http://forum.doom9.org/showthread.php?t=144852
http://forum.doom9.org/showthread.php?t=148117
Use the one which is updated to know how to use Avisynth Filters Multithreaded.
I will try to describe the usage of some of the softwares mentioned here.
At first you need Copy your Blu-Ray DVD/DVD to your Hard Disk. AnyDVD-HD removes all encryption and copy protection on the fly from your Blu-ray, HD-DVD or DVD as soon as you load a disc into your drive. This application will allow you to rip your movie onto to your Hard Drive.
Running MeGUI requires having Microsoft's .NET Framework 2.0 installed. Once that's installed the MeGUI installer is very straight forward. When MeGUI is installed you should run it right away. MeGUI will immediately check for updates to various components. Click the Yes button and the updates will be downloaded. Most files will be put in subfolders of C:\Program Files\megui\tools.
http://i26.tinypic.com/2crx8ck.jpg
Nero AAC Encoder:
http://www.mediafire.com/file/t2xbkdz1eiy/NeroDigitalAudio.zip
Nero AAC Encoder doesn't come with MeGUI and the auto-update feature won't download it. Once you downloaded it you need to copy the ‘win32’ folder from the NeroDigitalAudio.zip file and paste it into C:\Program Files\megui\tools and rename the ‘win32’ folder to ‘NeroAACenc’ and you need to select it inside MeGUI.
Open MeGUI and then go to Options>Settings>Program Paths>Audio and select neroAacEnc.exe
1.Start MeGUI and go to Tools > DG Indexer and select D2V Creator. If D2V Creator cannot open your file try the other ones from DG Indexer.
2.From the D2V Project Creator window click on the button for Video Input and select the first .m2ts file which was created when you copied the Blu-Ray to your Hard Drive or .d2v file if your source is a DVD.
3.Select the Audio Tracks you want to Include in your final video file or if you want to include all the Audio files select Demux All Tracks. This program separates the Audio file from your Source and creates a d2v file which can be opened by AVS Script Creator.
Select your d2v Project Output and tick ‘On completion load files’ and ‘and close’ . Click Queue.
4.Go to Queue tab and click on start and after Demuxing is over, the d2v/dga etc. will automatically load in Avisynth Script Creator.
Avisynth Script Creator:
http://i27.tinypic.com/2n8aszl.jpg
Options Tab:
Once you select your Source .D2V file in the AVISynth Script Creator, you will see a preview window. The preview window size can be changed by dragging the window edges. Bigger sources makes the window unwieldy so I would suggest you make it small enough so that you can see the MEGUI interface underneath. Leave the preview window open as we'll be modifying some elements on the preview screen.
1.Clever ™ Anamorphic Encoding and select Resize to Mod 16. When creating an anamorphic video, this will force any output video to be mod-16 compliant. This means that the width and height will both be equally divisible by 16. No remainder. So, if you do any cropping (usually of black bars) and your cropped output is not mod-16, MeGUI will automatically resize to mod-16 for you, fixing any funky problems.
2.Below that, you'll see the 'Auto Crop' button. This function will easily remove any letterboxing that may be present. It will also remove any wasted black or noisy edges on your video. I would suggest you use it every time, even if your video appears to fill the preview with no letterboxing.
3.Check the Resize button and resize if you want. At the moment you can see that the renowned BDRip/BRRip release groups are releasing BDRips or BRRips of either 720 x 304 or 1280 x 544. So you can select these resolutions or you can select the resolution of your own choice.
Filters Tab:
http://i29.tinypic.com/o9ojsz.jpg
From here you should analyze your source video for interlacing and field order by clicking the "Analyze" button on the top left.This is important and not something you should skip. I can't say how many times I've encoded a project that seemed to be entirely progressive only to find a scene that was mixed. Getting the field order right is also important. Note that if your source is Anime/CGI then you should Tick the option "Source is Anime (isn't detected automatically)" before analyzing your material. Once the analysis is completed you can also choose what Resizing and noise filtering options you want.
The Colour Correction option ensures the colors are calibrated properly. It is better to select it every time.
Now Click on Preview AVS Script to make sure everything looks Good. If you like how it looks you can click Save and then close MeGUI.
Filtering with Avisynth using AvsP:
Now we need to use AvsP which was mentioned at the beginning of the guide to work with Avisynth. Extract it to a Folder and you can use it right away.
Open AvsP, and open the script you created using MeGUI. Hit the F5 button to Refresh and show the video. To hide the video press Shift+F5. Sometimes when you try out different filters you will see a error window appear. Sometimes they are temporary problems and you can just close the error window and continue working. But if the error window keeps on appearing, then you should try to change the filters or you can try saving the script and re-open it using AvsP.
Remember I am using Iron.Man.720p.BluRay.x264-SEPTiC and that is why it says .dga at the end. My script looks something like this at the moment:
AVCSource("D:\Movies\Ironman\Ironman_Track1.dga")
global MeGUI_darx = 73
global MeGUI_dary = 30
Crop(0,0,-0,-2)
Spline36Resize(1280,544)
#Spline36Resize(720,304)
This is just a basic script. When you add a #(Hash) in front of a line it becomes disabled. Here I am going to mention some Sharpening and Denoising Filters which will help you make your video look Sharp & Clean.
I personally Prefer these filters and all these filters and more are included in Plugins for Avisynth:
http://www.mediafire.com/?mmnjkgljm0z
LSFmod: A LimitedSharpenFaster MOD with new features.
SeeSaw: More of a detail enhancer than a regular sharpener. Also lets you really turn up the denoising without the typical ringing and haloing.
GradFun2DBmod: Gradfun2dbMod is a banding removal filter.
FFT3DFilter: 3D Frequency Domain filter-denoiser.( You MUST put FFTW3.DLL file from this package to some directory in path (for example, C:\WINDOWS). It may be downloaded from
ftp://ftp.fftw.org/pub/fftw/fftw3win32mingw.zip Filter will NOT work without it!)
fft3dGPU: FFT3dGPU is a GPU version of Fizick's FFT3DFilter. To use this filter you need directx 9.0c or better and a graphics card supporting directx 9 in hardware. That is at least an ATI Radeon 95xx or Nvidia Geforce fx 5xxx. Geforce 6xxx or better is recommended.
DeGrainMedian: DeGrainMedian plugin is mainly for film grain removal, but may be used for general denoising.
MCTemporalDenoise: Another great Denoiser.
Convolution3D: Another Denoiser.
Undot: A light Denoiser.
FluxSmooth: Another Denoiser
Grainfactory3: Noise generator that tries to simulate the behavior of silver grain on film.
By using a Denoiser you can do this:
SOURCE:
http://i26.tinypic.com/5b1uop.jpg
FILTERED:
http://i29.tinypic.com/50lbt5.jpg
This was done using the MCTemporalDenoise Filter and using it like this:
MCTemporalDenoise(settings="high")
Now I am going to show you how I denoised and sharpened the Iron Man Source using the above mentioned filters.
Open the Script created using MeGUI’s Avisynth Script Creator using AVsP. Mine looks like this:
AVCSource("D:\Movies\Ironman\Ironman_Track1.dga")
global MeGUI_darx = 73
global MeGUI_dary = 30
Crop(0,0,-0,-2)
Spline36Resize(1280,544)
This is how the Source looks like:
http://i31.tinypic.com/1i11.jpg
But after I add this line the Noises in the video become less:
fft3dGPU(mode=1,precision=2, sigma=1.25, bt=4, bw=32, bh=32, ow=16, oh=16)
Now the video looks like this:
http://i27.tinypic.com/w9ic1c.jpg
You can increase the sigma value to remove heavy noise.
Alternatively you can also use this filter:
Convolution3D(preset="moviehq")
fluxsmoothT(3)
Now the video looks like this:
http://i30.tinypic.com/2yjx8ck.jpg
As you can see both denoising filters does a great job and the difference is minor. That is why you should try different filters to see which one works best for your source.
Now that we were able to remove the Grain/Noise, let us sharpen it. Always Sharpen after denoising.
LSFMod(Strength=80, Smode=5)
You can increase or decrease the strength. Read the LSFmod.v1.8.avsi to know more about the parameters.
Alternatively you can use the SeeSaw Filter to sharpen your source.
a= last
b=a.degrainmedian(limitY=3, limitUV=5,mode=0).VagueDenoiser(threshold=1.2, method=1, nsteps=6, chromaT=0.8)
SeeSaw(a,b, NRlimit=3, NRlimit2=4, Sstr=1.5, Slimit=5, Spower=5, Sdamplo=6, Szp=16, sootheS=20)
Here I am using DegrainMedian & VagueDenoiser to denoise and using SeeSaw to sharpen at the same time. Basically you can add any denoiser in the second line after “b=a.” You can use fft3dgpu(sigma=1.25)/fft3dfilter(sigma=1.25) or Convolution3D(preset="moviehq"). fluxsmoothT(3) or MCTemporalDenoise (settings="low/medium/high")
Now the video looks like this:
http://i32.tinypic.com/ekkv2a.jpg
If there is banding in the video source you can use GradFunkMirror
Required Softwares:
1.AnyDVD-HD(Shareware)
http://www.slysoft.com/en/anydvdhd.html
2.AviSynth
http://sourceforge.net/projects/avisynth2/
3.AvsP
http://avisynth.org/qwerpoi
4.BD Rebuilder
http://www.videohelp.com/tools/BD_Rebuilder
5.EVOdemux
http://www.videohelp.com/tools/EVOdemux
6.GraphEdit
http://www.videohelp.com/tools/GraphEdit
7.MeGUI (Use the latest version)
http://sourceforge.net/projects/megui/
8.MKVToolnix (Use the latest version)
http://www.bunkus.org/videotools/mkvtoolnix/downloads.html#windows
9.Microsoft .NET Framework 2.0
http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en
10.Nero Digital Audio Encoder
http://www.mediafire.com/file/t2xbkdz1eiy/NeroDigitalAudio.zip
11.SubRip
http://www.afterdawn.com/software/video_software/subtitle_tools/subrip.cfm
12.TsRemux
http://www.videohelp.com/tools/TsRemux
13.K-LiteMega Codec Pack (You can use your own separate Codecs if you want)
http://www.codecguide.com/
14.Plugins for Avisynth
http://www.mediafire.com/?mmnjkgljm0z
15.ChapterXtractor
http://www.videohelp.com/tools/ChapterXtractor
LIVE Links removed! Live Links are not allowed on x264-BB :)
You need to extract the Plugins for Avisynth to "C:\Program Files\AviSynth 2.5\plugins". A Readme file is included with most of the plugins. You can know more about these plugins and more on the Doom9 Forum.
If you have a PC which has Multithreading(Core i7, Core2Duo, Dual Core, etc.) look at these two threads:
http://forum.doom9.org/showthread.php?t=144852
http://forum.doom9.org/showthread.php?t=148117
Use the one which is updated to know how to use Avisynth Filters Multithreaded.
I will try to describe the usage of some of the softwares mentioned here.
At first you need Copy your Blu-Ray DVD/DVD to your Hard Disk. AnyDVD-HD removes all encryption and copy protection on the fly from your Blu-ray, HD-DVD or DVD as soon as you load a disc into your drive. This application will allow you to rip your movie onto to your Hard Drive.
Running MeGUI requires having Microsoft's .NET Framework 2.0 installed. Once that's installed the MeGUI installer is very straight forward. When MeGUI is installed you should run it right away. MeGUI will immediately check for updates to various components. Click the Yes button and the updates will be downloaded. Most files will be put in subfolders of C:\Program Files\megui\tools.
http://i26.tinypic.com/2crx8ck.jpg
Nero AAC Encoder:
http://www.mediafire.com/file/t2xbkdz1eiy/NeroDigitalAudio.zip
Nero AAC Encoder doesn't come with MeGUI and the auto-update feature won't download it. Once you downloaded it you need to copy the ‘win32’ folder from the NeroDigitalAudio.zip file and paste it into C:\Program Files\megui\tools and rename the ‘win32’ folder to ‘NeroAACenc’ and you need to select it inside MeGUI.
Open MeGUI and then go to Options>Settings>Program Paths>Audio and select neroAacEnc.exe
1.Start MeGUI and go to Tools > DG Indexer and select D2V Creator. If D2V Creator cannot open your file try the other ones from DG Indexer.
2.From the D2V Project Creator window click on the button for Video Input and select the first .m2ts file which was created when you copied the Blu-Ray to your Hard Drive or .d2v file if your source is a DVD.
3.Select the Audio Tracks you want to Include in your final video file or if you want to include all the Audio files select Demux All Tracks. This program separates the Audio file from your Source and creates a d2v file which can be opened by AVS Script Creator.
Select your d2v Project Output and tick ‘On completion load files’ and ‘and close’ . Click Queue.
4.Go to Queue tab and click on start and after Demuxing is over, the d2v/dga etc. will automatically load in Avisynth Script Creator.
Avisynth Script Creator:
http://i27.tinypic.com/2n8aszl.jpg
Options Tab:
Once you select your Source .D2V file in the AVISynth Script Creator, you will see a preview window. The preview window size can be changed by dragging the window edges. Bigger sources makes the window unwieldy so I would suggest you make it small enough so that you can see the MEGUI interface underneath. Leave the preview window open as we'll be modifying some elements on the preview screen.
1.Clever ™ Anamorphic Encoding and select Resize to Mod 16. When creating an anamorphic video, this will force any output video to be mod-16 compliant. This means that the width and height will both be equally divisible by 16. No remainder. So, if you do any cropping (usually of black bars) and your cropped output is not mod-16, MeGUI will automatically resize to mod-16 for you, fixing any funky problems.
2.Below that, you'll see the 'Auto Crop' button. This function will easily remove any letterboxing that may be present. It will also remove any wasted black or noisy edges on your video. I would suggest you use it every time, even if your video appears to fill the preview with no letterboxing.
3.Check the Resize button and resize if you want. At the moment you can see that the renowned BDRip/BRRip release groups are releasing BDRips or BRRips of either 720 x 304 or 1280 x 544. So you can select these resolutions or you can select the resolution of your own choice.
Filters Tab:
http://i29.tinypic.com/o9ojsz.jpg
From here you should analyze your source video for interlacing and field order by clicking the "Analyze" button on the top left.This is important and not something you should skip. I can't say how many times I've encoded a project that seemed to be entirely progressive only to find a scene that was mixed. Getting the field order right is also important. Note that if your source is Anime/CGI then you should Tick the option "Source is Anime (isn't detected automatically)" before analyzing your material. Once the analysis is completed you can also choose what Resizing and noise filtering options you want.
The Colour Correction option ensures the colors are calibrated properly. It is better to select it every time.
Now Click on Preview AVS Script to make sure everything looks Good. If you like how it looks you can click Save and then close MeGUI.
Filtering with Avisynth using AvsP:
Now we need to use AvsP which was mentioned at the beginning of the guide to work with Avisynth. Extract it to a Folder and you can use it right away.
Open AvsP, and open the script you created using MeGUI. Hit the F5 button to Refresh and show the video. To hide the video press Shift+F5. Sometimes when you try out different filters you will see a error window appear. Sometimes they are temporary problems and you can just close the error window and continue working. But if the error window keeps on appearing, then you should try to change the filters or you can try saving the script and re-open it using AvsP.
Remember I am using Iron.Man.720p.BluRay.x264-SEPTiC and that is why it says .dga at the end. My script looks something like this at the moment:
AVCSource("D:\Movies\Ironman\Ironman_Track1.dga")
global MeGUI_darx = 73
global MeGUI_dary = 30
Crop(0,0,-0,-2)
Spline36Resize(1280,544)
#Spline36Resize(720,304)
This is just a basic script. When you add a #(Hash) in front of a line it becomes disabled. Here I am going to mention some Sharpening and Denoising Filters which will help you make your video look Sharp & Clean.
I personally Prefer these filters and all these filters and more are included in Plugins for Avisynth:
http://www.mediafire.com/?mmnjkgljm0z
LSFmod: A LimitedSharpenFaster MOD with new features.
SeeSaw: More of a detail enhancer than a regular sharpener. Also lets you really turn up the denoising without the typical ringing and haloing.
GradFun2DBmod: Gradfun2dbMod is a banding removal filter.
FFT3DFilter: 3D Frequency Domain filter-denoiser.( You MUST put FFTW3.DLL file from this package to some directory in path (for example, C:\WINDOWS). It may be downloaded from
ftp://ftp.fftw.org/pub/fftw/fftw3win32mingw.zip Filter will NOT work without it!)
fft3dGPU: FFT3dGPU is a GPU version of Fizick's FFT3DFilter. To use this filter you need directx 9.0c or better and a graphics card supporting directx 9 in hardware. That is at least an ATI Radeon 95xx or Nvidia Geforce fx 5xxx. Geforce 6xxx or better is recommended.
DeGrainMedian: DeGrainMedian plugin is mainly for film grain removal, but may be used for general denoising.
MCTemporalDenoise: Another great Denoiser.
Convolution3D: Another Denoiser.
Undot: A light Denoiser.
FluxSmooth: Another Denoiser
Grainfactory3: Noise generator that tries to simulate the behavior of silver grain on film.
By using a Denoiser you can do this:
SOURCE:
http://i26.tinypic.com/5b1uop.jpg
FILTERED:
http://i29.tinypic.com/50lbt5.jpg
This was done using the MCTemporalDenoise Filter and using it like this:
MCTemporalDenoise(settings="high")
Now I am going to show you how I denoised and sharpened the Iron Man Source using the above mentioned filters.
Open the Script created using MeGUI’s Avisynth Script Creator using AVsP. Mine looks like this:
AVCSource("D:\Movies\Ironman\Ironman_Track1.dga")
global MeGUI_darx = 73
global MeGUI_dary = 30
Crop(0,0,-0,-2)
Spline36Resize(1280,544)
This is how the Source looks like:
http://i31.tinypic.com/1i11.jpg
But after I add this line the Noises in the video become less:
fft3dGPU(mode=1,precision=2, sigma=1.25, bt=4, bw=32, bh=32, ow=16, oh=16)
Now the video looks like this:
http://i27.tinypic.com/w9ic1c.jpg
You can increase the sigma value to remove heavy noise.
Alternatively you can also use this filter:
Convolution3D(preset="moviehq")
fluxsmoothT(3)
Now the video looks like this:
http://i30.tinypic.com/2yjx8ck.jpg
As you can see both denoising filters does a great job and the difference is minor. That is why you should try different filters to see which one works best for your source.
Now that we were able to remove the Grain/Noise, let us sharpen it. Always Sharpen after denoising.
LSFMod(Strength=80, Smode=5)
You can increase or decrease the strength. Read the LSFmod.v1.8.avsi to know more about the parameters.
Alternatively you can use the SeeSaw Filter to sharpen your source.
a= last
b=a.degrainmedian(limitY=3, limitUV=5,mode=0).VagueDenoiser(threshold=1.2, method=1, nsteps=6, chromaT=0.8)
SeeSaw(a,b, NRlimit=3, NRlimit2=4, Sstr=1.5, Slimit=5, Spower=5, Sdamplo=6, Szp=16, sootheS=20)
Here I am using DegrainMedian & VagueDenoiser to denoise and using SeeSaw to sharpen at the same time. Basically you can add any denoiser in the second line after “b=a.” You can use fft3dgpu(sigma=1.25)/fft3dfilter(sigma=1.25) or Convolution3D(preset="moviehq"). fluxsmoothT(3) or MCTemporalDenoise (settings="low/medium/high")
Now the video looks like this:
http://i32.tinypic.com/ekkv2a.jpg
If there is banding in the video source you can use GradFunkMirror