Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 Doom9's Forum Avisynth Script to determine filter results Vs Original Source
 Register FAQ Calendar Search Today's Posts Mark Forums Read

18th August 2005, 16:59   #2  |  Link
Prodater64
Registered User

Join Date: Mar 2004
Posts: 266
Here another by Dialhot from kvcd.net:

Quote:
 source=Mpeg2Source(...) left=source.script1() right=source.script2() width=left.width()/2 height=left.height() left=crop(left,0,0,width,height) right=crop(right,width,0,width,height) StackHorizontal(left.subtitle("Script1"),right.subtitle("Script2")) function script1(clip c) { c #----- ENTER CODE OF SCRIPT ONE HERE ----- #----- END OF CODE OF SCRIPT ONE----- } function script2(clip c) { c #----- ENTER CODE OF SCRIPT TWO HERE ----- Greyscale() #----- END OF CODE OF SCRIPT TWO----- }
__________________
Prodater64

18th August 2005, 19:08   #3  |  Link
tedkunich
Potentate

Join Date: Mar 2003
Posts: 219
Quote:
 Originally Posted by techmule Hi, I always wanted a way with avisynth, so as to determine what my video results would be without going through the long encoding process and vola!!!! after hours of reading heres how to go about it. I have used avisynth 2.5.

For my money, interleaving the original and filtered videos is the most accurate way to compare. You can single step through the frames and see the differences quite readily. Stacking (horizontal or vertical) will work too, but it is hard to see subtle changes that way....

T

 18th August 2005, 22:32 #4  |  Link mg262 Clouded     Join Date: Jul 2003 Location: Cambridge, UK Posts: 1,148 I would add a proviso to all of this... there are different kind of noise and different kinds of distortion caused by filters, and the appropriate method to bring these out varies with the kind of phenomenon in question. I would say that whatever else you try you should use a least one method which involves playing the clip. (E.g. because strong spatial filters might yield frames which individually looked very good but which do not match the neighbouring frames closely enough to give a fluid result.) I generally use two playback methods: one method which applies a filter to the right-hand side only (similar to the method in the second post), and one method which switches the filtering on and off every few seconds. I would personally avoid simple stacking methods because the requisite subsequent resizing will make it hard to notice a lot of phenomena. Subtract is useful in learning where distortion might occur so that you can look for it in the filtered clip, but once you have an idea of that I would switch it off, if no other reason than because you can't look at the subtract clip and the original/filtered clips at the same time. __________________ a.k.a. Clouded. Come and help by making sure your favourite AVISynth filters and scripts are listed.
 19th August 2005, 02:21 #5  |  Link askol Registered User   Join Date: Jul 2005 Posts: 4 AMVApp has a few nice scripts in it called BeforeAfter and BeforeAfterLine. An example of BeforeAfter can be seen here: http://www.amvwiki.org/index.php/Ima..._edgeenhan.png And hey, here are the scripts: http://www.amvwiki.org/index.php/BeforeAfter http://www.amvwiki.org/index.php/BeforeAfterLine
 19th April 2006, 09:56 #6  |  Link adrianmak Registered User   Join Date: Apr 2006 Posts: 127 what is the difference between BeforeAfter and BerforeAfterLine script ?
 19th April 2006, 13:47 #7  |  Link foxyshadis ангел смерти     Join Date: Nov 2004 Location: Lost Posts: 9,177 BeforeAfterLine adds a thin line between them. (That's a heckuva lot more robust than my sxs!) __________________ There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. ~ Ed Howdershelt
 19th April 2006, 15:14 #8  |  Link Soulhunter Bored...     Join Date: Apr 2003 Location: Unknown Posts: 2,812 I made a similar function some time ago... ^^ Bye __________________ Visit my IRC channel
 20th April 2006, 04:58 #9  |  Link adrianmak Registered User   Join Date: Apr 2006 Posts: 127 I tried all the above methods, basically all of them are splitting the original source into half, one half keep untouch and another half is applied filter(s) and then combine them back as one . However, the filtered half and unfilter half are two different portion of same scene and it is a little bit hard to compare the different how good or how bad of the filtered portion. So is it possible to put unfilter and filtered portion as one e.g. all previous method Scene was divided into two parts, A and B A|B ---> A|B(filtered) new method should be A|B -----> A|A(filtered) or B|B(filtered) Hope yours unstand my question
 20th April 2006, 10:27 #10  |  Link Soulhunter Bored...     Join Date: Apr 2003 Location: Unknown Posts: 2,812 Like this? Code: # _______________________________________________________ # # SBSC | Side By Side Compare # _______________________________________________________ # # Another lame function by Soulhunter... \m\ ^_^ /m/ # _______________________________________________________ # # # Usage examples: # # Original = AviSource("C:\Path\to\Source.avi") # Filtered = Original.FFT3DFilter(Sigma=1) # SBSC(Original,Filtered) # Function SBSC(Clip ClipA,Clip ClipB) { OX = ClipA.Width OY = ClipA.Height ClipB = ClipB.Lanczosresize(OX,OY) ClipA = ClipA.Crop(0,0,OX/2,OY).Subtitle("ClipA") ClipB = ClipB.Crop(0,0,OX/2,OY).Subtitle("ClipB") StackHorizontal(ClipA,ClipB) } Bye __________________ Visit my IRC channel
 20th April 2006, 10:47 #11  |  Link Inc Squeeze it!     Join Date: Oct 2003 Location: Germany Posts: 472 As you already add a Lanczosresize on the filtered so it matches the same pic size of the source .... think about this: Code: Function SBSC_Interleaved(Clip orig,Clip filtered) { OX = ClipA.Width OY = ClipA.Height ClipB = ClipB.Lanczosresize(OX,OY) ClipA = ClipA.Subtitle("Clip Orig") ClipB = ClipB.Subtitle("Clip Filtered") Interleave(ClipA,ClipB) } So you can just use the frame step button in Vdub etc. to switch between the orig/filtered. Its like in Photoshop "layer on/off". When switching between layers diffs will be more recognisable for human eyes compared to a horizontal stacked pic alignment. Last edited by Inc; 20th April 2006 at 10:51.
 20th April 2006, 23:25 #12  |  Link Alain2 Registered User   Join Date: May 2005 Posts: 236 maybe my ClipComp script could help you ? (with default settings, look frame by frame in vdubmod for instance)