Log in

View Full Version : Please help me join two codes into one: frame doubler and sharpener


Jeremy Duncan
7th November 2010, 11:52
Here is the first code:

setmtmode(2)
video=ffdshow_source()
A=video
B= a.SeeSaw_JD()
C = b.limitedsharpenfaster(strength = 11).limitedsharpenfaster(strength = 11)
return c
distributor()

Here is the second code:

setmtmode(2)
video=ffdshow_source()
A=video
B=A.MSuper(pel=2, hpad=8, vpad=8, rfilter=4)
One=B.MAnalyse(isb=true, blksize=32, search=1, searchparam=2)
Two=B.MRecalculate(One, chroma=false, blksize=32, blksizev=32, search=1, searchparam=2)
A.MBlockFps(B, One, Two, num=FramerateNumerator(video)*2, den=FramerateDenominator(video)*1, mode=1)
GetMTMode(false) > 0 ? distributor() : last

And this is what I tried but it doesn't work in a real movie dvd:

video=ffdshow_source()
A=video
B= a.SeeSaw_JD()
C = b.limitedsharpenfaster(strength=11).limitedsharpenfaster(strength=11)
return c
setmtmode(2)
D=A.MSuper(pel=2, hpad=8, vpad=8, rfilter=4)
One=B.MAnalyse(isb=true, blksize=32, search=1, searchparam=2)
Two=B.MRecalculate(One, chroma=false, blksize=32, blksizev=32, search=1, searchparam=2)
A.MBlockFps(B, One, Two, num=FramerateNumerator(video)*2, den=FramerateDenominator(video)*1, mode=1)
GetMTMode(false) > 0 ? distributor() : last

This is to be used in ffdshow while playing dvd's in realtime. I would appreciate it if you could join the two codes into one using the proper avisynth method. I don't really know avisynth language very well. maybe Didée can help?

wonkey_monkey
7th November 2010, 12:11
This line:

return c

causes the script to end right there. Try just:

c

David

Motenai Yoda
7th November 2010, 12:15
return c in the main function?


setmtmode(5, 4)
ffdshow_source()
setmtmode(2)
SeeSaw_JD().limitedsharpenfaster(strength = 11).limitedsharpenfaster(strength = 11)#why 2 lsf??
superclip = MSuper(pel=2, hpad=8, vpad=8, rfilter=4)
vect1 = MAnalyse(superclip, isb=true, blksize=32, search=1, searchparam=2)
vect2 = MRecalculate(superclip, One, chroma=false, blksize=32, blksizev=32, search=1, searchparam=2)
MBlockFps(superclip, vect1, vect2, num= FramerateNumerator(video)*2, den= FramerateDenominator(video)*1, mode=1)
Distributor()

Jeremy Duncan
9th November 2010, 01:38
Thank you, your replies really helped me out.