View Single Post
Old 9th November 2015, 15:54   #229  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by SAPikachu View Post
SetMTMode outside MPP affects host AVS process and MPP itself, as you can see, generally they are not compatible and will crash. I don't really recommend using SetMTMode, even inside child processes, but if you want, you can either put SetMTMode inside every script block, or use ### inherit start/end to include it automatically.
Code:
MP_Pipeline("""
### platform: win32
### inherit start ###
setmtmode(3,12)
### inherit end ###
ColorBars(width=720, height=480, pixel_type="RGB32")
setmtmode(1)
distributor()
### ###
setmtmode(2)
ConvertToYV12()
QTGMC(InputType=1, Ezdenoise=2)
LSFMod(strength=66)
gradfun3()
""")
7 fps

Code:
MP_Pipeline("""
### platform: win32
### inherit start ###
setmtmode(3,12)
### inherit end ###
ColorBars(width=720, height=480, pixel_type="RGB32")
setmtmode(1)
distributor()
### ###
setmtmode(2)
ConvertToYV12()
QTGMC(InputType=1, Ezdenoise=2)
LSFMod(strength=66)
gradfun3()
setmtmode(1)
distributor()
### ###
""")
and

Code:
MP_Pipeline("""
### platform: win32
### inherit start ###
setmtmode(3,12)
### inherit end ###
ColorBars(width=720, height=480, pixel_type="RGB32")
setmtmode(1)
distributor()
### ###
setmtmode(2)
ConvertToYV12()
QTGMC(InputType=1, Ezdenoise=2)
LSFMod(strength=66)
setmtmode(1)
distributor()
### ###
""")
gradfun3()
crash

My suggestion is to add something like "### setmtmode: x, y" to add setmtmode(x,y) in the top of script block and setmtmode(1) then distributor() in the bottom of block

and with this we can use mt in certain blocks only

thanks
__________________
See My Avisynth Stuff

Last edited by real.finder; 9th November 2015 at 16:13.
real.finder is offline   Reply With Quote