techmule
18th August 2005, 15:51
Hi,
I always wanted a way with avisynth, so as to determine what my video results would be without going through the long encoding process and vola!!!! after hours of reading heres how to go about it. I have used avisynth 2.5.
- Copy a small part of your avi from your source using vdubmod as your sample clip.
-Change your sample clip directory for Avisource() function
- load the plugins used (see my script below)
#
# Script begins here... #
#########################
#
# Loading plugins and functions... #
####################################
#
LoadPlugin("d:\Program Files\avisynth plugins\AutoCrop.dll")
LoadPlugin("d:\Program Files\avisynth plugins\avsmon25a.dll")
LoadPlugin("d:\Program Files\avisynth plugins\blockbuster.dll")
LoadPlugin("d:\Program Files\avisynth plugins\Convolution3DYV12.dll")
LoadPlugin("d:\Program Files\avisynth plugins\DctFilter.dll")
LoadPlugin("d:\Program Files\avisynth plugins\descratch.dll")
LoadPlugin("d:\Program Files\avisynth plugins\ffavisynth.dll")
LoadPlugin("d:\Program Files\avisynth plugins\FrameDbl.dll")
LoadPlugin("d:\Program Files\avisynth plugins\MipSmooth.dll")
LoadPlugin("d:\Program Files\avisynth plugins\MPEG2Dec3.dll")
LoadPlugin("d:\Program Files\avisynth plugins\RemoveDirtSSE2.dll")
LoadPlugin("d:\Program Files\avisynth plugins\RemoveGrainSSE2.dll")
LoadPlugin("d:\Program Files\avisynth plugins\Sampler.dll")
LoadPlugin("d:\Program Files\avisynth plugins\STMedianFilter.dll")
LoadPlugin("d:\Program Files\avisynth plugins\UnDot.dll")
LoadPlugin("d:\Program Files\avisynth plugins\UnFilter.dll")
LoadPlugin("d:\Program Files\avisynth plugins\VSFilter.dll")
#Filters Go below
#########################
Avisource("D:\big\test.avi",false)
blindPP(quant=2,cpu=4)
Blockbuster(method="noise",detail_min=1,detail_max=3,variance=0.3,seed=1)
removegrain(mode=1)
#descratch(mindif=60)
mipsmooth(preset="MovieHQ")
filtered= last
# If source video starts at different frame
frameadjust=0
# Videos to compare: (v1 is original, v2 is the re-encoded(after applying filter))
v1 = Avisource("D:\big\test.avi",false).trim(frameadjust,0)
v2 = filtered
sub = v1.subtract(v2)
substrong = sub.levels(122,1,132,0,255)
return StackVertical(StackHorizontal(v1.subtitle("original"),v2.subtitle("encoded")),StackHorizontal(sub.subtitle("Difference"),substrong.subtitle("Difference amplified")))
### End of Script
Save the script as name.avs and run this using your media player (I used WMP). Now you can see the effects of the filters as scripted by you Vs Source and change dynamically till it meets your expectations.
I also want to thank all avisynth forums and ppl who posted their scripts in them. Since I am very new to avisynth (5-10 days), those scripts have helped me to understand the functions better and helped me in creating this script to my needs.
I always wanted a way with avisynth, so as to determine what my video results would be without going through the long encoding process and vola!!!! after hours of reading heres how to go about it. I have used avisynth 2.5.
- Copy a small part of your avi from your source using vdubmod as your sample clip.
-Change your sample clip directory for Avisource() function
- load the plugins used (see my script below)
#
# Script begins here... #
#########################
#
# Loading plugins and functions... #
####################################
#
LoadPlugin("d:\Program Files\avisynth plugins\AutoCrop.dll")
LoadPlugin("d:\Program Files\avisynth plugins\avsmon25a.dll")
LoadPlugin("d:\Program Files\avisynth plugins\blockbuster.dll")
LoadPlugin("d:\Program Files\avisynth plugins\Convolution3DYV12.dll")
LoadPlugin("d:\Program Files\avisynth plugins\DctFilter.dll")
LoadPlugin("d:\Program Files\avisynth plugins\descratch.dll")
LoadPlugin("d:\Program Files\avisynth plugins\ffavisynth.dll")
LoadPlugin("d:\Program Files\avisynth plugins\FrameDbl.dll")
LoadPlugin("d:\Program Files\avisynth plugins\MipSmooth.dll")
LoadPlugin("d:\Program Files\avisynth plugins\MPEG2Dec3.dll")
LoadPlugin("d:\Program Files\avisynth plugins\RemoveDirtSSE2.dll")
LoadPlugin("d:\Program Files\avisynth plugins\RemoveGrainSSE2.dll")
LoadPlugin("d:\Program Files\avisynth plugins\Sampler.dll")
LoadPlugin("d:\Program Files\avisynth plugins\STMedianFilter.dll")
LoadPlugin("d:\Program Files\avisynth plugins\UnDot.dll")
LoadPlugin("d:\Program Files\avisynth plugins\UnFilter.dll")
LoadPlugin("d:\Program Files\avisynth plugins\VSFilter.dll")
#Filters Go below
#########################
Avisource("D:\big\test.avi",false)
blindPP(quant=2,cpu=4)
Blockbuster(method="noise",detail_min=1,detail_max=3,variance=0.3,seed=1)
removegrain(mode=1)
#descratch(mindif=60)
mipsmooth(preset="MovieHQ")
filtered= last
# If source video starts at different frame
frameadjust=0
# Videos to compare: (v1 is original, v2 is the re-encoded(after applying filter))
v1 = Avisource("D:\big\test.avi",false).trim(frameadjust,0)
v2 = filtered
sub = v1.subtract(v2)
substrong = sub.levels(122,1,132,0,255)
return StackVertical(StackHorizontal(v1.subtitle("original"),v2.subtitle("encoded")),StackHorizontal(sub.subtitle("Difference"),substrong.subtitle("Difference amplified")))
### End of Script
Save the script as name.avs and run this using your media player (I used WMP). Now you can see the effects of the filters as scripted by you Vs Source and change dynamically till it meets your expectations.
I also want to thank all avisynth forums and ppl who posted their scripts in them. Since I am very new to avisynth (5-10 days), those scripts have helped me to understand the functions better and helped me in creating this script to my needs.