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 8th June 2009, 20:26   #1  |  Link
maysider
Registered User
 
Join Date: Oct 2006
Posts: 15
how to write "do nothing" with condition? (double framerate with ffdshow in realtime)

I have this...it is working but when "else" is used it says "invalid script" in ffdshow

source=ffdshow_source()
source.Width< 700 ? eval("""
super = source.MSuper(pel=1,hpad=8,vpad=8)
backward_vec = MAnalyse(super, blksize=8, isb =true, chroma=false,searchparam=1,overlap=4)
forward_vec = MAnalyse(super, blksize=8, isb =false, chroma=false,searchparam=1,overlap=4)
source.MFlowFps(super, backward_vec, forward_vec,num=2*FramerateNumerator(source), \
den=FramerateDenominator(source), mask=0, ml=53)
distributor()
""") : eval("""
#DO NOTHING!!
""")

thx

edit, solution for c2d 3200MHz:
Code:
source=ffdshow_source()
source.width< 700  && source.height< 400 ? eval("""
setMTMode(2,4)
super =source.MSuper(pel=2,hpad=8,vpad=8)
backward_vec = MAnalyse(super, blksize=8, isb =true, chroma=false,searchparam=1,overlap=4)
forward_vec = MAnalyse(super, blksize=8, isb =false, chroma=false,searchparam=1,overlap=4)
source.MFlowFps(super, backward_vec, forward_vec,num=2*FramerateNumerator(source), \
den=FramerateDenominator(source), mask=0, ml=53)
distributor()
""") : source.width< 1400  && source.height< 800 ? eval("""
fps=50
setMTMode(2,4)
source.CombineFPS(fps,source.MotionFPS(fps, warpfast, move),source.MotionFPS(fps, source = next, warpfast, move))
""") : source

Last edited by maysider; 9th June 2009 at 16:23. Reason: solution
maysider is offline   Reply With Quote
Old 8th June 2009, 20:28   #2  |  Link
thetoof
Sleepy overworked fellow
 
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
have you tried NOP()?
__________________
AnimeIVTC() - v2.00
-http://boinc.berkeley.edu/-
Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p)
thetoof is offline   Reply With Quote
Old 8th June 2009, 20:41   #3  |  Link
maysider
Registered User
 
Join Date: Oct 2006
Posts: 15
Quote:
Originally Posted by thetoof View Post
have you tried NOP()?
source=ffdshow_source()
source.Width< 700 ? eval("""
super = source.MSuper(pel=1,hpad=8,vpad=8)
backward_vec = MAnalyse(super, blksize=8, isb =true, chroma=false,searchparam=1,overlap=4)
forward_vec = MAnalyse(super, blksize=8, isb =false, chroma=false,searchparam=1,overlap=4)
source.MFlowFps(super, backward_vec, forward_vec,num=2*FramerateNumerator(source), \
den=FramerateDenominator(source), mask=0, ml=53)
distributor()
""") : eval("""
NOP() #DO NOTHING!
""")

not working, still invalid script when 1080p video

Last edited by maysider; 8th June 2009 at 21:20.
maysider is offline   Reply With Quote
Old 8th June 2009, 21:08   #4  |  Link
Keiyakusha
契約者
 
Keiyakusha's Avatar
 
Join Date: Jun 2008
Posts: 1,576
Try this:
Code:
source=ffdshow_source()
source.Width< 700 ? eval("""
super = source.MSuper(pel=1,hpad=8,vpad=8)
backward_vec = MAnalyse(super, blksize=8, isb =true, chroma=false,searchparam=1,overlap=4)
forward_vec = MAnalyse(super, blksize=8, isb =false, chroma=false,searchparam=1,overlap=4)
source.MFlowFps(super, backward_vec, forward_vec,num=2*FramerateNumerator(source), \
den=FramerateDenominator(source), mask=0, ml=53)
distributor()
""") : last #DO NOTHING!!
Keiyakusha is offline   Reply With Quote
Old 8th June 2009, 21:18   #5  |  Link
maysider
Registered User
 
Join Date: Oct 2006
Posts: 15
Quote:
Originally Posted by Keiyakusha View Post
Try this:
Code:
source=ffdshow_source()
source.Width< 700 ? eval("""
super = source.MSuper(pel=1,hpad=8,vpad=8)
backward_vec = MAnalyse(super, blksize=8, isb =true, chroma=false,searchparam=1,overlap=4)
forward_vec = MAnalyse(super, blksize=8, isb =false, chroma=false,searchparam=1,overlap=4)
source.MFlowFps(super, backward_vec, forward_vec,num=2*FramerateNumerator(source), \
den=FramerateDenominator(source), mask=0, ml=53)
distributor()
""") : last #DO NOTHING!!
still nothing

maybe I should say that I use it in ffdshow
maysider is offline   Reply With Quote
Old 8th June 2009, 21:29   #6  |  Link
Keiyakusha
契約者
 
Keiyakusha's Avatar
 
Join Date: Jun 2008
Posts: 1,576
How exactly your script looks in ffdshow? I don't know what exactly first line is for: source=ffdshow_source().
It seems this works for me:

Code:
source=last
Width< 700 ? eval("""
super =source.MSuper(pel=1,hpad=8,vpad=8)
backward_vec = MAnalyse(super, blksize=8, isb =true, chroma=false,searchparam=1,overlap=4)
forward_vec = MAnalyse(super, blksize=8, isb =false, chroma=false,searchparam=1,overlap=4)
source.MFlowFps(super, backward_vec, forward_vec,num=2*FramerateNumerator(source), \
den=FramerateDenominator(source), mask=0, ml=53)
distributor()
""") : last #DO NOTHING!!
Keiyakusha is offline   Reply With Quote
Old 8th June 2009, 21:43   #7  |  Link
maysider
Registered User
 
Join Date: Oct 2006
Posts: 15
Quote:
Originally Posted by Keiyakusha View Post
How exactly your script looks in ffdshow? I don't know what exactly first line is for: source=ffdshow_source().
It seems this works for me:

Code:
source=last
Width< 700 ? eval("""
super =source.MSuper(pel=1,hpad=8,vpad=8)
backward_vec = MAnalyse(super, blksize=8, isb =true, chroma=false,searchparam=1,overlap=4)
forward_vec = MAnalyse(super, blksize=8, isb =false, chroma=false,searchparam=1,overlap=4)
source.MFlowFps(super, backward_vec, forward_vec,num=2*FramerateNumerator(source), \
den=FramerateDenominator(source), mask=0, ml=53)
distributor()
""") : last #DO NOTHING!!
perfect, this works....just to check "add ffdshow as source" and ethg OK!

thank you
maysider is offline   Reply With Quote
Old 8th June 2009, 21:54   #8  |  Link
maysider
Registered User
 
Join Date: Oct 2006
Posts: 15
Code:
height< 400 && width< 700 ? eval("""
#exhausting
setMTMode(2,8)
super =last.MSuper(pel=2,hpad=8,vpad=8)
backward_vec = MAnalyse(super, blksize=8, isb =true, chroma=false,searchparam=1,overlap=4)
forward_vec = MAnalyse(super, blksize=8, isb =false, chroma=false,searchparam=1,overlap=4)
last.MFlowFps(super, backward_vec, forward_vec,num=2*FramerateNumerator(last), \
den=FramerateDenominator(last), mask=0, ml=53)
distributor()
""") : height< 800  && width< 1400 ? eval("""
#less exhausting but good for 720p in realtime
fps=50
setMTMode(2,8)
last.CombineFPS(fps,last.MotionFPS(fps, warpfast, move),last.MotionFPS(fps, source = next, warpfast, move))
""") : last
so now perfectly done with procesoor c2d 3200MHz

THANK YOU!!

Last edited by maysider; 8th June 2009 at 22:34.
maysider 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 18:34.


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