Why not register?
Author |
Message |
BadBugs
|
Posted: Tue Feb 26, 2008 8:42 pm Post subject: |
|
The Ancient One Joined: Fri Jan 19, 2007 2:49 am Posts: 2624 Location: Chernobyl
|
ahhh, avisynth 2.57 implements a different way of resizing called spline36resize.
Instead of LanzosResize (704,384) or whatever you want your final resolution to be, you would replace that with Spline36resize (704,384)
undot removes grain but if youre using a different filter for removing grain then you dont need it. 
_________________
|
|
Top |
|
 |
elchupacabra
|
Posted: Tue Feb 26, 2008 9:31 pm Post subject: |
|
The Ancient One Joined: Sat Oct 20, 2007 10:31 am Posts: 3663
|
Slayer wrote: | I use jawors 1CD matrix. |
You could try EQM V3ULR matrix by Sharktooth: http://forum.doom9.org/showthread.php?p ... post551562
It gave me a much better picture quality (better colors and brightness) than Jawor's 1 CD matrix when encoding "Masque Of The Red Death". 
|
|
Top |
|
 |
Slayer
|
Posted: Tue Feb 26, 2008 9:48 pm Post subject: |
|
The Ancient One Joined: Mon Jan 22, 2007 9:13 pm Posts: 7976
|
BadBugs wrote: | ahhh, avisynth 2.57 implements a different way of resizing called spline36resize. |
How? I installed avs 2.57 into my old avs folder, but when I open GK I still don't get that option for resizing.
_________________
 THIRD SEAL MEANS FAMINE
|
|
Top |
|
 |
BadBugs
|
Posted: Tue Feb 26, 2008 9:55 pm Post subject: |
|
The Ancient One Joined: Fri Jan 19, 2007 2:49 am Posts: 2624 Location: Chernobyl
|
It doesnt show in the window, you have to manually edit your script to spline36. running a preview will tell you if you have a scripting error & on which line your error occurs.
For example (from a script I used):
# RESIZING #LanczosResize(704,384)
# DENOISING: choose one combination (or none) spline36resize(704,384)
|
so you # Lanczos & add spline36.
_________________
|
|
Top |
|
 |
RedVeil
|
Posted: Tue Feb 26, 2008 10:05 pm Post subject: |
|
The Devil, Probably Joined: Fri Oct 26, 2007 3:40 pm Posts: 2250 Location: Inside my body.
|
|
Top |
|
 |
BadBugs
|
Posted: Tue Feb 26, 2008 10:16 pm Post subject: |
|
The Ancient One Joined: Fri Jan 19, 2007 2:49 am Posts: 2624 Location: Chernobyl
|
Maybe I shouldnt have left that line in the nfo as its caused confusion. There is a huge amount of scripting below it that I never posted & spline36 was added there as it was scripting added to my original one by elguaxo. It has nothing to do with Denoising as I'm aware of.
The denoising is applied by undot or any other filters like in the script above I was using DeGrainMedian & MVDegrain2.
_________________
|
|
Top |
|
 |
Slayer
|
Posted: Tue Feb 26, 2008 11:57 pm Post subject: |
|
The Ancient One Joined: Mon Jan 22, 2007 9:13 pm Posts: 7976
|
OK, I edited my avs with that new resizer. But now my AR is fucked. When I select (NTSC non-anamorphic 4:3) I get 68% compressibility, but the AR goes to 1.671 instead of 1.333. It also changed (Input Resolution) from (NTSC) to (Other 704 384).
When I start editing the AR the way it is described in the guide, my percentage drops to 53% compressibility.
So do I just have to go with an AR of 1.671?
_________________
 THIRD SEAL MEANS FAMINE
|
|
Top |
|
 |
BadBugs
|
Posted: Wed Feb 27, 2008 12:16 am Post subject: |
|
The Ancient One Joined: Fri Jan 19, 2007 2:49 am Posts: 2624 Location: Chernobyl
|
Slayer wrote: | OK, I edited my avs with that new resizer. But now my AR is fucked. When I select (NTSC non-anamorphic 4:3) I get 68% compressibility, but the AR goes to 1.671 instead of 1.333. It also changed (Input Resolution) from (NTSC) to (Other 704 384).
When I start editing the AR the way it is described in the guide, my percentage drops to 53% compressibility.
So do I just have to go with an AR of 1.671? |
No! (704,384) was my example.
When you go to edit your script, copy the values from your Lanczose into your spline36resize... This is also what you decided should be your final resolution.
If using the anamorphic button screws you up, untick that selection & do it by eye... find a nice round object & use that to resize. Go back to where I resized my TCM that had a bad AR in the guide & change the value by .01 at a time until you get the right result. 
_________________
|
|
Top |
|
 |
Slayer
|
Posted: Wed Feb 27, 2008 2:01 am Post subject: |
|
The Ancient One Joined: Mon Jan 22, 2007 9:13 pm Posts: 7976
|
When I enter that spline36 line into my avs the preview fucks up. It opens the d2v afterwards with a huge width (like 5 times my screen or something) and a ridiculous height, like 32.
When I insert for example 640x480, it turns that into this:

_________________
 THIRD SEAL MEANS FAMINE
|
|
Top |
|
 |
BadBugs
|
Posted: Wed Feb 27, 2008 2:35 am Post subject: |
|
The Ancient One Joined: Fri Jan 19, 2007 2:49 am Posts: 2624 Location: Chernobyl
|
Youre editing in the wrong place as you now have an input source of 24fps
Reload your d2v & set up as you would normally. When you click save & you get this screen:
Click the big edit button at the bottom & in there change your script or if youre using comp test tick use 5% & then click small edit button as it will be clickable.
Always use preview after you've modified your script as it will stop if you have any scripting errors.
_________________
|
|
Top |
|
 |
Slayer
|
Posted: Wed Feb 27, 2008 3:49 am Post subject: |
|
The Ancient One Joined: Mon Jan 22, 2007 9:13 pm Posts: 7976
|
I don't know where the 24 fps came from, but I edited the avs the way you describe, and I added the line as follows:
Code: | # RESIZING spline36resize(640,480) |
In a greater context it looks like this: Code: | # CROPPING crop(6,0,10184,32)
# SUBTITLES #VobSub("FileName")
# RESIZING spline36resize(640,480)
# DENOISING: choose one combination (or none)
# 1) little noise #Temporalsoften(2,3,3,mode=2,scenechange=6) #mergechroma(blur(1.3)) #FluxSmoothST(5,7)
# 2) medium noise #Temporalsoften(3,5,5,mode=2,scenechange=10) #Convolution3d("moviehq") #FluxSmoothST(7,7)
# 3) heavy noise #Temporalsoften(4,8,8,mode=2,scenechange=10) Convolution3d("movielq") #FluxSmoothST(10,15) |
Another thing: where can I see the aspect ratio of the DVD if it's not stated on the cover? I suspect I'm doing something wrong there.
_________________
 THIRD SEAL MEANS FAMINE
|
|
Top |
|
 |
BadBugs
|
Posted: Wed Feb 27, 2008 9:58 am Post subject: |
|
The Ancient One Joined: Fri Jan 19, 2007 2:49 am Posts: 2624 Location: Chernobyl
|
I think theres an error in your cropping as this looks wrong:
# CROPPING crop(6,0,10184,32)
|
My 4:3 Rip of KFVK looked like this:
crop(10,4,700,564) Spline36resize(672,496)
|
Try starting over & making a new d2v.
Another thing puzzling me is how you are able to store your script so it affects what you see in the GK window? Whenever I change the script & run a comp test it resets itself back to default if I go back to GK to edit the main windows again thus having to re-edit the script everytime until I come to click save & encode where it is finally stored.
Just in case you need to run a comptest you will need this in your script too assuming you didnt already know:
# COMPRESSIBILITY CHECK # !!!!Snip Size now has to be 14 for use in GKnot! SelectRangeEvery(280,14)
|
_________________
|
|
Top |
|
 |
elchupacabra
|
Posted: Wed Feb 27, 2008 10:22 am Post subject: |
|
The Ancient One Joined: Sat Oct 20, 2007 10:31 am Posts: 3663
|
RedVeil wrote: | Just a note that when encoding the Pumpkinhead (1988) rip I avoided to use any noise filters. The image was too blury after applying any of the available noise filters. I even had to add some sharpening. Therefore I would also check if noise filters are really necessary, because they might not really be needed and would only reduce the sharpness of the image. |
Noise filters can improve the quality a lot.
I encoded my VHS rips solely with VirtualDub and not using Gordian Knot (because I used a lossless codec to capture the tape and GKnot has difficulties working with AVI files). There is a third party VirtualDub filter called "Dynamic Noise Reduction". It seems to beat all noise filters I have seen so far used in AVS scripts.
Noise filters blur the image. They therefore increase the compressibility of your video. It's like when saving a JPEG image. The more you blur the image before saving the smaller the filesize will be. This is because compressing sharp edges is more difficult than compressing a fading pattern.
|
|
Top |
|
 |
BadBugs
|
Posted: Wed Feb 27, 2008 10:44 am Post subject: |
|
The Ancient One Joined: Fri Jan 19, 2007 2:49 am Posts: 2624 Location: Chernobyl
|
elchupacabra wrote: | It seems to beat all noise filters I have seen so far used in AVS scripts. |
Try this one then:
# Created with Gordian Knot # # http://gknot.doom9.org
# PLUGINS LoadPlugin("C:\PROGRA~2\GORDIA~1\DGMPGDec\DGDecode.dll") LoadPlugin("C:\PROGRA~2\GORDIA~1\AviSynthPlugins\decomb.dll") LoadPlugin("C:\PROGRA~2\GORDIA~1\masktools\mt_masktools.dll") LoadPlugin("C:\PROGRA~2\GORDIA~1\AviSynthPlugins\MaskTools.dll") LoadPlugin("C:\PROGRA~2\GORDIA~1\AviSynthPlugins\degrainmedian.dll") LoadPlugin("C:\PROGRA~2\GORDIA~1\AviSynthPlugins\Repair.dll") LoadPlugin("C:\PROGRA~2\GORDIA~1\AviSynthPlugins\RemoveGrain.dll") LoadPlugin("C:\PROGRA~2\GORDIA~1\AviSynthPlugins\mvtools.dll") Import("C:\PROGRA~2\GORDIA~1\AviSynthPlugins\LimitedSharpenFaster.avs") Import("C:\PROGRA~2\GORDIA~1\AviSynthPlugins\Soothe.avs")
# SOURCE mpeg2source("D:\TCMUE\VIDEO_TS\VTS_01_1.d2v")
# IVTC AssumeTFF() Telecide(guide=1) Decimate() # or use #IVTC(44,11,95) #GreedyHMA(1,0,4,0,0,0,0,0)
# CROPPING crop(2,2,716,476)
# RESIZING #LanczosResize(704,384)
# DENOISING: choose one combination (or none) spline36resize(704,384) source=last denoised=DegrainMedian(mode=4) backward_vec2 = MVAnalyse(denoised,isb = true, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1) backward_vec1 = MVAnalyse(denoised,isb = true, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1) forward_vec1 = MVAnalyse(denoised,isb = false, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1) forward_vec2 = MVAnalyse(denoised,isb = false, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1) MVDegrain2(source,backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=200,idx=2)
dull=last sharp=LimitedSharpenFaster(Smode=3, Strength=40) Soothe(sharp,dull,30)
|
This was what I used on Chainsaw UE to remove a shitload of grain & keep it sharp. Note: the source was a 98% Force film NTSC source so you may need to change IVTC bits.
_________________
|
|
Top |
|
 |
elchupacabra
|
Posted: Wed Feb 27, 2008 10:55 am Post subject: |
|
The Ancient One Joined: Sat Oct 20, 2007 10:31 am Posts: 3663
|
Thanks. I'll try it on another rip.
Can you provide some comments on what this does?
|
|
Top |
|
 |
BadBugs
|
Posted: Wed Feb 27, 2008 11:31 am Post subject: |
|
The Ancient One Joined: Fri Jan 19, 2007 2:49 am Posts: 2624 Location: Chernobyl
|
Ok, Heres some screen examples:
Unfiltered:
Using no soothe, LSF or Degrain median & the following MVdegrain2 code:
# DENOISING: choose one combination (or none) vbw1=MVAnalyse(isb=true,truemotion=true,delta=1,pel=2,chroma=false,blksize=16,idx=1,sharp=1) vfw1=MVAnalyse(isb=false,truemotion=true,delta=1,pel=2,chroma=false,blksize=16,idx=1,sharp=1) vbw2=MVAnalyse(isb=true,truemotion=true,delta=2,pel=2,chroma=false,blksize=16,idx=1,sharp=1) vfw2=MVAnalyse(isb=false,truemotion=true,delta=2,pel=2,chroma=false,blksize=16,idx=1,sharp=1) MVDegrain2(last,vbw1,vfw1,vbw2,vfw2,thSAD=200,idx=2)
|
Using the full script:
From what I understand, using both DegrainMedian & MVDegrain2 together dramatically increases the denoising.
Code: | denoised=DegrainMedian(mode=4) |
mode 5 is least denoising & mode 1 is the heaviest.
_________________
|
|
Top |
|
 |
RedVeil
|
Posted: Wed Feb 27, 2008 12:19 pm Post subject: |
|
The Devil, Probably Joined: Fri Oct 26, 2007 3:40 pm Posts: 2250 Location: Inside my body.
|
|
Top |
|
 |
BadBugs
|
Posted: Wed Feb 27, 2008 1:59 pm Post subject: |
|
The Ancient One Joined: Fri Jan 19, 2007 2:49 am Posts: 2624 Location: Chernobyl
|
Edited the guide to include changing audio from AC3 to MP3.
Modified or replaced various screenshots & changed the wording in a few parts to simplify things even further etc.
More to come when I have more time. 
_________________
|
|
Top |
|
 |
Slayer
|
Posted: Wed Feb 27, 2008 2:26 pm Post subject: |
|
The Ancient One Joined: Mon Jan 22, 2007 9:13 pm Posts: 7976
|
BadBugs wrote: |
# RESIZING #LanczosResize(704,384)
# DENOISING: choose one combination (or none) spline36resize(704,384) source=last denoised=DegrainMedian(mode=4) backward_vec2 = MVAnalyse(denoised,isb = true, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1) backward_vec1 = MVAnalyse(denoised,isb = true, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1) forward_vec1 = MVAnalyse(denoised,isb = false, delta = 1, pel = 2, overlap=4, sharp=1, idx = 1) forward_vec2 = MVAnalyse(denoised,isb = false, delta = 2, pel = 2, overlap=4, sharp=1, idx = 1) MVDegrain2(source,backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=200,idx=2)
dull=last sharp=LimitedSharpenFaster(Smode=3, Strength=40) Soothe(sharp,dull,30)
|
|
I see something else in this nfo which I didn't know. I REPLACED LanczosResize with spline36resize, whereas you just ADDED spline36resize under the DENOISING line. IS this what I did wrong?
And again: how can I fihure out the correct AR of a DVD when it's not stated on the cover?
_________________
 THIRD SEAL MEANS FAMINE
|
|
Top |
|
 |
BadBugs
|
Posted: Wed Feb 27, 2008 2:33 pm Post subject: |
|
The Ancient One Joined: Fri Jan 19, 2007 2:49 am Posts: 2624 Location: Chernobyl
|
|
Top |
|
 |
Who is online |
Users browsing this forum: No registered users and 6 guests |
Moderator: Help Mods
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|