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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 20th June 2005, 03:42   #1  |  Link
luders
Registered User
 
Join Date: Sep 2002
Posts: 60
Before and After Script...

I am wondering if there is a way script an avs so that it shows a before filter version of an avi on top of an after filter version for comparison.

Something like....

v=avisource("test.avi")
w=avisource("test.avi").FieldDeinterlace()
return(v on top of w)

That is just a really lame example but you get what I am going for. It would seem it is possible. If not, why?

Edit... I am an idiot. Looks like I found it. StackHorizontal and StackVertical.

Last edited by luders; 20th June 2005 at 03:45.
luders is offline   Reply With Quote
Old 20th June 2005, 06:38   #2  |  Link
Scintilla
Registered User
 
Scintilla's Avatar
 
Join Date: Aug 2004
Location: New Jersey
Posts: 25
Methinks this is what you are looking for:
http://www.amvwiki.org/index.php/BeforeAfter

Code:
##################################################################
# BeforeAfter by Absolute Destiny and Corran (Eric Parsons)      #
#   e.g.                                                         #
# beforeafter(clip, placement, filters)                          #
#                                                                #
# 1 for vertical splitscreen, 0 for horizontal splitscreen       #
##################################################################

function beforeafter(clip a, int "placement", string "filters"){

    placement = Default(placement, 1)

    Assert((Float(Width(a))/16)==Round(Width(a)/16), "Source image width must be a multiple of 16")

    b = Eval("a."+filters)
    c = (placement==1) ? StackHorizontal(a.Crop(0,0,-((Ceil(Float(Width(a))/32))*16),0).\
        Subtitle("before"),b.Crop(((Floor(Float(Width(a))/32))*16),0,0,0).\
        Subtitle("after")) :StackVertical(a.Crop(0,0,0,-Height(a)/2).Subtitle("Before"),b.\
        Crop(0,Height(a)/2,0,0).Subtitle("After"))

    Return c
}
See also: BeforeAfterDiff and BeforeAfterLine
Scintilla is offline   Reply With Quote
Old 20th June 2005, 09:08   #3  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,389
Don't forget about

interleave( source, filtered )

Makes you see some differences you won't spot with stacking.
__________________
- We´re at the beginning of the end of mankind´s childhood -

My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!)
Didée is offline   Reply With Quote
Old 20th June 2005, 22:45   #4  |  Link
Backwoods
ReMember
 
Backwoods's Avatar
 
Join Date: Nov 2003
Posts: 416
One I use:

Code:
left=AVISource("CAQ_PLAIN.avs").Crop(360,0,0,0).Subtitle("PLAIN")
right=AVISource("CAQ_V2F_TEST.avs").Crop(0,0,-360,0).Subtitle("V2F_TEST")

#top=AVISource("CAQ_PLAIN.avs").Crop(0,0,0,240).ConvertToYUY2()
#bot=AVISource("CAQ_V2F.avs").Crop(0,240,0,0).ConvertToYUY2()

StackHorizontal(right,left)

#StackVertical(top, bot)
It's more of a labeled split screen, but may come in handy.
Backwoods is offline   Reply With Quote
Old 20th June 2005, 22:59   #5  |  Link
HighInBC
Registered User
 
HighInBC's Avatar
 
Join Date: Jan 2003
Location: Victoria, BC, Canada
Posts: 144
Quote:
Originally Posted by Didée
Don't forget about

interleave( source, filtered )

Makes you see some differences you won't spot with stacking.

Good idea, never thought of that.
HighInBC is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:30.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.