View Single Post
Old 25th February 2020, 16:49   #18387  |  Link
byteshare
ByteShare
 
byteshare's Avatar
 
Join Date: Sep 2014
Location: On the Internet
Posts: 560
Quote:
Originally Posted by slalom View Post
I guess he means "how to run multiple scripts" with one selection in the batch menu

So the answer is, we can join them in one? with a proper name of course
Yes, you'd take two custom scripts and make a new 3rd custom script that is what you want from the other two.

Quote:
Originally Posted by Pauly Dunne View Post
Yes, slalom, that IS exactly what I was talking about

So here's an example of 2 scripts (Enhanced Details, and MDegrain)..

would this work ??

#After_Prefetch_Custom
LoadPlugin("C:\RipBot264\Tools\Plugins_JPSDR\Plugins_JPSDR.dll")
LevelLimit=(video.BitsPerComponent==8) ? 255 : 1023
IntensityMask=ConvertToY(video).Levels(0,2,LevelLimit,0,LevelLimit,coring=false)
EdgeMask=aSobel(IntensityMask,chroma=0,thresh=255,SetAffinity=false).invert.Levels(0,2,LevelLimit,0,LevelLimit,coring=false).Blur(1)
SharpMask=Overlay(IntensityMask,EdgeMask,mode="Multiply",opacity=1.0)
SharpenedVideo=Sharpen(video,1)
video=Overlay(video,SharpenedVideo,mask=SharpMask,opacity=1.0)


#Denoise
Loadplugin("C:\RipBot264\Tools\AviSynth plugins\mvtools\mvtools2.dll")
super=MSuper(video,pel=2)
bv1=MAnalyse(super,blksize=8,isb=true,delta=1,overlap=4)
fv1=MAnalyse(super,blksize=8,isb=false,delta=1,overlap=4)
video=MDegrain1(video,super,bv1,fv1,thSAD=400)

If this was then saved as what ever you wanted to call it, and accessed it from the "Custom" options in Avisynth settings....

It may not need the # names
Yeah, that should work. Not the cleanest script but it should work.
I'd personally do it this way for a custom script:
Code:
LoadPlugin("C:\RipBot264\Tools\Plugins_JPSDR\Plugins_JPSDR.dll")
Loadplugin("C:\RipBot264\Tools\AviSynth plugins\mvtools\mvtools2.dll")
super=MSuper(video,pel=2)
bv1=MAnalyse(super,blksize=8,isb=true,delta=1,overlap=4)
fv1=MAnalyse(super,blksize=8,isb=false,delta=1,overlap=4)
LevelLimit=(video.BitsPerComponent==8) ? 255 : 1023
IntensityMask=ConvertToY(video).Levels(0,2,LevelLimit,0,LevelLimit,coring=false)
EdgeMask=aSobel(IntensityMask,chroma=0,thresh=255,SetAffinity=false).invert.Levels(0,2,LevelLimit,0,LevelLimit,coring=false).Blur(1)
SharpMask=Overlay(IntensityMask,EdgeMask,mode="Multiply",opacity=1.0)
SharpenedVideo=Sharpen(video,1)
video=Overlay(video,SharpenedVideo,mask=SharpMask,opacity=1.0).MDegrain1(video,super,bv1,fv1,thSAD=400)
byteshare is offline   Reply With Quote