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. |
|
|
Thread Tools | Search this Thread | Display Modes |
8th June 2009, 20:26 | #1 | Link |
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 |
8th June 2009, 20:28 | #2 | Link |
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) |
8th June 2009, 20:41 | #3 | Link |
Registered User
Join Date: Oct 2006
Posts: 15
|
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. |
8th June 2009, 21:08 | #4 | Link |
契約者
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!! |
8th June 2009, 21:18 | #5 | Link | |
Registered User
Join Date: Oct 2006
Posts: 15
|
Quote:
maybe I should say that I use it in ffdshow |
|
8th June 2009, 21:29 | #6 | Link |
契約者
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!! |
8th June 2009, 21:43 | #7 | Link | |
Registered User
Join Date: Oct 2006
Posts: 15
|
Quote:
thank you |
|
8th June 2009, 21:54 | #8 | Link |
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 THANK YOU!! Last edited by maysider; 8th June 2009 at 22:34. |
Thread Tools | Search this Thread |
Display Modes | |
|
|