I've used AVISynth for quite some time now but I've never really delved deep into it and understood everything it does, rather finding other peoples scripts and modifying them for my needs.
I know what most of the fuctions I use do (Mainly MPEG2 conversions of some sort) but what I don't know is the correct order items should be in? Is there a correct way, will it affect things greatly in the wrong order? For example, I butchered this script together:
Now I know what it's doing there, basically de-interlacing, resizing, applying a color mode change and a slight degrain before re-interlacing and converting to YV12 but is that in the right order? Should the degrain and colormatrix come after the re-interlacing? I don't know. I've seen people say to test your avs file in VirtualDubMod but how? I can open the file but then what? A bit of help understanding the logic of ordering AVISynth files would be great.mpeg2source("E:\Foo.track_4113.d2v")
Load_Stdcall_Plugin("E:\Random\MeGUI\tools\yadif\yadif.dll")
Yadif(mode=1)
Spline64Resize(720,576) # Spline64 (Sharp)
ColorMatrix(mode="Rec.709->Rec.601")
DeGrainMedian(limitY=5,limitUV=5,mode=3)
SeparateFields()
SelectEvery(4,0,3)
Weave()
ConvertToYV12(Interlaced=True)
+ Reply to Thread
Results 1 to 7 of 7
-
-
Resize and sharpen will both make noise worse and harder to filter.
So as a general rule, you should do de-noising (eg, DeGrainMedian) before resizing (Spline64Resize), and definitely before sharpening (Spline64Resize again). And also before any colour changes : basically, clean first then enhance.
I think better:
Code:mpeg2source("E:\Foo.track_4113.d2v") DeGrainMedian(limitY=5,limitUV=5,mode=3) Yadif(mode=1) Spline64Resize(720,576) # Spline64 (Sharp) ColorMatrix(mode="Rec.709->Rec.601") SeparateFields() SelectEvery(4,0,3) Weave() ConvertToYV12(Interlaced=True)
Just being able to open a file in VirtualDub tells you that it the script is valid.
I do like VirtualDubMod, which has a simple AVS script editor built in.
You can do F5 or F7 to reload and play.
But much more powerful is AvsPmod. You can click to duplicate a script to a different tab and them modify and compare. And it creates sliders for most parameters. Only can't "play" (though it can launch a player).
Also if you put your plugins in the Avisynth plugins folder, they will be automatically loaded and you don't need to do that in the script, so I omitted that.Last edited by AlanHK; 21st May 2011 at 23:36.
-
-
I've never used DegrainMedian()
mpeg2source("E:\Foo.track_4113.d2v")
DeGrainMedian(limitY=5,limitUV=5,mode=3)
Yadif(mode=1)
... -
Just checked back on the release page and yep I missed that, thanks for pointing it out. I've never used it before either, my reason for it was the source video looking like this - http://www.mediafire.com/?54upty666x6f8y7 at times. Is that the right filter choice to try and tone that down a bit or is there a better alternative?
-
I think using DegrainMedian() after Yadif() would work better (though more time consuming). In which case you don't need the interlaced=true flag.
-
Ok thanks.
Are there any other general script rules regarding ordering?
Similar Threads
-
AviSynth "ConvertToYV12()" command - correct placement in script?
By spicediver10191 in forum Video ConversionReplies: 2Last Post: 11th Dec 2010, 19:15 -
This correct avs script for analysis pass?
By alcOre in forum Newbie / General discussionsReplies: 3Last Post: 3rd Jun 2009, 13:22 -
This correct avs script for this source?
By alcOre in forum Newbie / General discussionsReplies: 2Last Post: 13th Feb 2009, 01:24 -
AviSynth: script command, order of execution, and 'coding efficiency'
By hollowman in forum Newbie / General discussionsReplies: 6Last Post: 27th Aug 2008, 23:44 -
Determining field order
By dadrab in forum Video ConversionReplies: 2Last Post: 4th Oct 2007, 15:09