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

Thread Tools Search this Thread Display Modes
Old 6th October 2004, 16:56   #1  |  Link
Registered User
tsp's Avatar
Join Date: Aug 2004
Location: Denmark
Posts: 807
pop, a filter to get values from variables that may not yet be initialized

pop, a filter to get values from variables that may not yet be initialized.


to be used within conditionalfilter, frameevaluate or scriptclip


pop(default,string varname)

default = value to return if the variable doesn't exist yet

varname = name of the variable to get the value of. surround the name with " (and remember to use """ when writing the function)


Below is a script that can be used to create a logfile for trimmaker using pop

global s=AVISource("c:\clip.avi").converttoyv12()
global mask = DEdgeMask(s,thY1=79,thY2=79,thC1=140,thC2=140,matrix="-2 1 -2 0 6 0 -2 1 -2" )
global log = "c:\log.txt"
writefileif(s,log,"bf","current_frame",append = false)
frameevaluate("""global bf=((pop(true,"bf")||UDifferencefromPrevious(s)>2)&&AverageLuma(mask)>1)""")

Get it here
tsp is offline   Reply With Quote
Old 6th October 2004, 17:20   #2  |  Link
Mug Funky
interlace this!
Mug Funky's Avatar
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,555

that's a pretty good idea there. i'll have to test it when i revisit conditionalfilter et al
sucking the life out of your videos since 2004
Mug Funky is offline   Reply With Quote

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 00:18.

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