PDA

View Full Version : Which AviSynth Function should be used first in MeGUI script.


uzair_rock
4th September 2009, 02:40
Hi everyone, im quite new to the Ripping of a DVD through AviSynth, though i have been ripping dvd'd through other softwares since quite a time.

Im have a couple of DVD'9's and just wanted to Rip it in my PC and also to upscale it to 1280*720 res. and to get a higher resolution Video and also better in quality, for which i am applying some filters and function and creating avisynth scripts. The one thing i dont understand is that which avisynth function should be applied first and which should be next and so on,

e.g. i wanted to apply LimitedFastenSharper.avs, CDEblend.avs, iip.avs, degrainmedian etc. what i dont understand it that which should be applied first.

should I first resize the resolution to 1280*720 and then apply filter or should I first apply filters and then resize,
and which filters should be applied first, should I be sharpening first or smoothing first or de-noising first or apply some tweaks first?

Any info regarding above shall be highly appreciated. Thanks in Advance.

Blue_MiSfit
4th September 2009, 03:08
Be aware, you're not going to get spectacular results by upscaling before you encode.

Upscaling should really be done on playback.

There are some cases where a damaged source really needs to be "remastered", but this isn't very often.

Regarding filter order, it's usually a good idea to follow this basic flow:


source
deinterlace
crop
resize
denoise
sharpen


The most important thing is that you do all your frame-rate conversion business (IVTC, deinterlacing, or deblending) before you do anything else basically.

~MiSfit

manono
4th September 2009, 03:37
And what's the point of using CDeblend at all? It's an unblender and is used in conjunction with a Bobber. If the DVD is blended, these days you usually apply a bobber followed by SRestore. CDeblend isn't often used any more, unless you have some particular reason you want to wind up with it unblended and at double the framerate (along with all the duplicate frames generated).

I also agree with Blue_MiSfit that there's not much point in upscaling a DVD source. Why are you wanting to do all this, if I may ask?

uzair_rock
4th September 2009, 05:02
i want to upscale it so that i can watch it on my Home theatre which is about 100 inch. secondly my friend i have seen a super increase in quality of an upscale rip of a dvd9. i'll sure post the screenshots shortly.

uzair_rock
4th September 2009, 05:16
HERE IS THE SCREENSHOT OF THE IMAGE TAKEN FROM DVD-9 (ORIGINAL DVD):
/5056/vlcsnap849663.pnghttp://i27.tinypic.com/iz2ko9.png


AND HERE IS THE SCREENSHOT OF THE UPSCALED RIP OF THE ABOVE DVD TO 1080p:
http://img514.imageshack.us/img514/5056/vlcsnap849663.png

uzair_rock
4th September 2009, 05:17
You can see the Difference by Yourself. I may not want to upscale to 1080p but to 720p.

uzair_rock
4th September 2009, 05:33
Another Example:

BEFORE:
http://i42.tinypic.com/a4oqdy.jpg

AFTER UPSCALING:
http://i39.tinypic.com/33wnqck.jpg

manono
4th September 2009, 07:12
You've done more there to that first upscaled pic than just a resize and sharpen.

As for the second pair of pics, haven't you gotten them from another thread here at Doom9, the IIP thread perhaps? You won't get those kinds of results from a lousy
Indian DVD source. Even in that first pair of pictures I don't see that any more detail was brought out by the sharpening. I'm not saying it didn't need the contrast
boosted, but the blacks are still crushed, and it still looks lousy. But that's OK, we often do things that others might not agree with or understand.

As for the order in which to do things, I pretty much agree with Blue_MiSfit. I didn't see any mention in your post about changing the colorimetry from DVD's Rec.601
to Hi-Def's Rec.709. Nor do I see a response to my question about the use of CDeblend. Is this really a blended DVD (like so many Indian DVDs are)?

uzair_rock
4th September 2009, 11:38
Yes few indian dvd's are unblended but they are very few in number, i wrote CDEblend there as in general to ask 'if' i had to use it then where should i. secondly i dont know much about changing the colorimetry from DVD's Rec.601 to Hi-Def's Rec.709, as I told you im quite new to this. Any help regarding changing the colormetry shall be helpfull.

Yes you are right, the second image result shown above is originally from Doom9 which i took from an indian forum, in which there was a basic guide of ripping dvd'd through MeGUI.

manono
4th September 2009, 12:32
In my opinion, any DVD that's blended, whether or not you unblend it, whether or not you upsample it, will look like garbage on a 100" screen. Have you actually done
this before? If not, you'll never know until you try, I guess. In addition, because there has never been an Indian movie on DVD produced that can be mentioned in the same breath
with a decent American studio produced DVD (with the exception of American studio produced DVDs of such Indian films as Lagaan), even upscaling 'decent' Indian movie DVDs
is liable to be disappointing.

Anyway, if you don't take the change in colorimetry into account when upscaling, the colors will change a bit. Get and read the doc included with the ColorMatrix filter:

http://avisynth.org/warpenterprises/

keeping in mind that some of the information in there is incorrect. A sample use of the filter when upscaling to Hi-Def might go:

ColorMatrix(mode="Rec.601->Rec.709",Interlaced=True,Clamp=0)

You use Interlaced=True if keeping it interlaced or if adding it before unblending it to progressive. If it's progressive or has been unblended already, leave that off. You may or may
not want to disable clamping (Clamp=0). I do.

To give you a better idea of what might happen, go to this link and scroll down to the section titled Color Errors due to Chromaticity Differences :

http://www.sigmadesigns.com/Support/chromaticity.html

Then start hitting the 'Next' buttons below the pics and take note of the color changes among the different pics.

uzair_rock
4th September 2009, 17:16
Thanks for your Help Bro, well im upscaling an Indian Movie which was Produced by Warner Bothers, so it should be Produced by a high standard studio. One more thing i wanted to ask you is that
im having a problem while using the iip.avs function.
Im using it in Avisynth for ripping dvd and also upscaling it to 720p, Avisynth is giving me the following error:
"AviSynth Script Error:
The Script's return was not a video clip"

The script im using in AviSynth is as follow:

Import("C:\Program Files\AviSynth 2.5\plugins\iip.avs")

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\UnDot.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MaskTools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\WarpSharp.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\LoadPluginEx.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DustV5.dll")

DGDecode_mpeg2source("C:\Documents and Settings\Uzair\My Documents\Video enhancement tools\PROJECT\New Folder (2)\sample2.d2v", info=3)
ColorMatrix(hints=true, interlaced=true, threads=0)
tfm(order=1).tdecimate()
crop( 2, 10, -6, -8)

Spline64Resize(720,480) # Spline64 (Sharp)

iip( dest_x= 720, dest_y= 480,
\ ss1_x = 1.414, ss1_y = 1.414,
\ duststr = 0, dustweight = 0, antiflicker1= true, antiflicker2= true,
\ detailcontr1=127, detailcontr2 = 255, contr_radius = 3, PixSharp=0.25,
\ ss2_x = 3.5, ss2_y = 3.5,
\ Xstren = 255, Xlimit = 255,
\ subpelstren= 1.0, flatweight = 64,
\ protect_floor= 4, protect_bias = 16,
\ dering = -60, dering_weight= 1.0, dering_floor = 16, dering_bias=8,
\ detail_floor= 1, EQ = 2,
\ warp_Y = false, warp_UV = false,
\ debug= "showall | compareH/V | protect | dering",
\ cropx=32, cropy=16
\ )

Can anyone please tell what am i missing and why this error is occuring?

manono
4th September 2009, 18:27
The film may have been produced by Warner Brothers, but they didn't make the DVD, did they? Because Warner Home Video DVDs don't need to be IVTC'd. Anyway, I have no idea what's wrong
with the script. But the usual procedure to diagnosing script error is to pull out everything but the very basics and start adding back the filters. Comment out (put a # in front of) everything but:

Import("C:\Program Files\AviSynth 2.5\plugins\iip.avs")

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\UnDot.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MaskTools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\WarpSharp.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\LoadPluginEx.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DustV5.dll")

DGDecode_mpeg2source("C:\Documents and Settings\Uzair\My Documents\Video enhancement tools\PROJECT\New Folder (2)\sample2.d2v", info=3)

and then start adding back the filters one by one. I don't use IIP, so maybe it's something to do with that.

uzair_rock
4th September 2009, 22:40
Thnx dude.
i resolved the above problem.
can we use seesaw and limtedsharpenfaster at the same time? and which is better to use under what conditions??

manono
5th September 2009, 01:52
can we use seesaw and limtedsharpenfaster at the same time? and which is better to use under what conditions??

I don't know as all I ever use is LSF. I understand it's better for the less pristine sources with which I work.