New/modified avisynth function: BeforeAfterDiff()

Locked
User avatar
Corran
Joined: Mon Oct 14, 2002 7:40 pm
Contact:
Org Profile

New/modified avisynth function: BeforeAfterDiff()

Post by Corran » Sun Jan 16, 2005 3:44 am

This function is a modification of the BeforeAfterLine function AD and I created months ago for the AMVapp. Whether or not it is to be included into the AMVapp is up to AD but I decided to post this here for those that want it.

What is it? BeforeAfterDiff will take filters and display on a split screen the changes the filters make compared to the original source. It will also display the differences between the the filtered and unfiltered video meaning you can see the changes the filters make to the footage. This can be useful in seeing the noise a filter like deen() removed or which lines fastlinedarken() darkens.

To use this function you need to download the following file (right click, save as) and put it into your avisynth plugin directory.
http://www.corranproductions.com/misc_f ... rdiff.avsi

Note: The file is commented so hopefully someone familiar with avisynth scripting can understand how it works in case they want to learn how to make their own AviSynth functions.

HOW TO USE: Usage notes can be found in the file.

Code: Select all

################################################################################################
#  BeforeAfterDiff by Corran and based off of BeforeAfterline by AbsoluteDestiny and Corran    #
#                                                                                              #
#order = Specifies if the filtered footage will be on the top                                  #
#            or bottom of screen (Default=true | bottom)                                       #
#showdiff = enables/disable difference layer  (Default=false | Disabled)                       #
#amp = Enable/disable amplify noise  (Default=true | Enabled)                                  #
#xdisplace = slides difference layer horizontally by x number                                  #
#            of pixels (Default=2*width()/3 | far right hand side of screen)                   #
#filters = filters used to see differences before and after their application                  #
#                                                                                              #
#Example:                                                                                      #
#beforeafterdiff(order=true,showdiff=true,amp=false,xdisplace=300,filters="""deen("a3d",4)""") #
################################################################################################
Here are some examples along with screencaps to make this easier to understand.

Here we applied filters to the bottom half of the video.

Code: Select all

beforeafterdiff(filters="""fluxsmoothst().deen("a3d",4)""")
Image


-------------------------------------------
Here we flipped the half of the video which receives the filtering using the order parameter.

Code: Select all

beforeafterdiff(order=false,filters="""fluxsmoothst().deen("a3d",4)""")
Image


-------------------------------------------
Here we enabled the difference layer the see the changes the filters make. Notice that in this high motion scene there is detail on the wall that is being lost with the fluxsmoothst + Deen filter combo.

Code: Select all

beforeafterdiff(order=true,showdiff=true,filters="""fluxsmoothst().deen("a3d",4)""")
Image


-------------------------------------------
Here we disabled amplification of the difference layer.

Code: Select all

beforeafterdiff(order=true,showdiff=true,amp=false,filters="""fluxsmoothst().deen("a3d",4)""")
Image


-------------------------------------------
And finally here we moved the difference layer x pixels from the left side of the video to see the differences of a particular portion of the video. Note in this image that the darker a pixel in the difference layer is the less change there is to it. (The lines of the mask)

Code: Select all

beforeafterdiff(order=true,showdiff=true,amp=true,xdisplace=200,filters="""fluxsmoothst().deen("a3d",4)""")
Image

Any questions/comments regarding this function can be posted here.

User avatar
SnhKnives
V.I.E. 5.5
Joined: Wed Mar 26, 2003 12:57 am
Location: Atlanta
Contact:
Org Profile

Post by SnhKnives » Sun Jan 16, 2005 3:44 am

Ive already put this to good use, thanks Corran
Image

User avatar
Jnzk
Artsy Bastid
Joined: Tue Jan 28, 2003 5:30 pm
Location: Finland
Org Profile

Post by Jnzk » Sun Jan 16, 2005 5:16 am

Thanks, I've been looking for a solution like this.

User avatar
ibanix
Joined: Sun Dec 05, 2004 5:09 pm
Location: San Jose, CA
Org Profile

Post by ibanix » Mon Jan 17, 2005 6:10 am

Awesome. Thank you.

User avatar
Torchlight
Joined: Thu Dec 26, 2002 5:30 pm
Location: Ames, IA
Org Profile

Post by Torchlight » Mon Jan 17, 2005 12:15 pm

very helpful thanks much

User avatar
DrngdKreationz
Joined: Wed Jan 21, 2004 12:41 am
Location: Fl
Contact:
Org Profile

Post by DrngdKreationz » Mon Jan 17, 2005 1:07 pm

that's the shizzle!

Locked

Return to “Video & Audio Help”