Last active
November 7, 2024 22:17
-
-
Save lextra2/11106c55561c8d45c5601b90fee33f5a to your computer and use it in GitHub Desktop.
AVISYNTH-2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
321 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LWLibavVideoSource("C:\Users\Admin\Downloads\New folder\OVA01.mkv") | |
ConvertBits(32).ConvertToPlanarRGB() | |
Trim(0, 600) | |
mlrt_ort(network_path="C:\Program Files (x86)\AviSynth+\plugins64+\models2\2x_AniScale2S_Compact_i8_60K.onnx", builtin=false, provider="dml") | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function EZdenoise(clip Input, int "thSAD", int "thSADC", int "TR", int "BLKSize", int "Overlap", int "Pel", bool "Chroma", bool "out16") | |
{ | |
thSAD = default(thSAD, 150) | |
thSADC = default(thSADC, thSAD) | |
TR = default(TR, 3) | |
BLKSize = default(BLKSize, 8) | |
Overlap = default(Overlap, BLKSize/2) | |
Pel = default(Pel, 1) | |
Chroma = default(Chroma, false) | |
out16 = default(out16, false) | |
Super = Input.MSuper(Pel=Pel, Chroma=Chroma) | |
Multi_Vector = Super.MAnalyse(Multi=true, Delta=TR, BLKSize=BLKSize, Overlap=Overlap, Chroma=Chroma) | |
Input.MDegrainN(Super, Multi_Vector, TR, thSAD=thSAD, thSAD2=int(float(thSAD*0.9)), thSADC=thSADC, thSADC2=int(float(thSADC*0.9)), out16=out16) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LWLibavVideoSource("C:\Video\SPONGEBOB_DISC1_NTSC\D3_t02.mkv") | |
tfm(slow=2, mChroma=false) | |
tdecimate(mode=1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MPEG2Source("C:\Users\Admin\Downloads\New folder\E3_t06.d2v") | |
TFM(d2v="C:\Users\Admin\Downloads\New folder\E3_t06.d2v", slow=2, mode=5) | |
TDecimate(mode=1) | |
Crop(6, 0, -6, -0) | |
Spline36Resize(720, 540) | |
FFT3DFilter(sigma=10, bt=5, bw=32, bh=32, ow=16, oh=16, plane=3) | |
Autolevels(filterRadius=30).Levels(0, 1, 255, 0, 235) | |
Prefetch(4) | |
ConvertBits(32).ConvertToPlanarRGB() | |
mlrt_ort(network_path="C:\Program Files (x86)\AviSynth+\plugins64+\models2\2x_Garfieldjr_span48.onnx", builtin=false, provider="dml") | |
#4445 | |
#7590 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LWLibavVideoSource("C:\Users\Admin\Documents\01.mkv") | |
Debilinear(1280, 720) | |
EZdenoise(TR=8, Chroma=true) | |
ConvertBits(10, dither=1) | |
#Trim(0, 15720) | |
Trim(0, 600) | |
Prefetch(12, 48) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LWLibavVideoSource("C:\Users\Admin\Downloads\New folder\005.mkv") | |
ConvertBits(32).ConvertToPlanarRGB() | |
RIFE(model=44, factor_num=1, factor_den=1, fps_num=60, fps_den=1) | |
Prefetch(2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ShowMe(clip Input) | |
{ | |
Super = Input.MSuper(hpad=0, vpad=0, pel=1) | |
Vector = MAnalyse(Super) | |
MShow(Super, Vector, showsad=true) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LWLibavVideoSource("C:\Users\Admin\Downloads\New folder\S01E01.mkv") | |
global c = last | |
global n = DoubleWeave(c).SelectOdd() | |
global p = DoubleWeave(c).SelectOdd().DuplicateFrame(0) | |
global c = VMAF2(c,vinverse(c),feature = 0) | |
global n = VMAF2(n,vinverse(n),feature = 0) | |
global p = VMAF2(p,vinverse(p),feature = 0) | |
c | |
ScriptClip(""" | |
n_metric = propGetFloat(n,"psnr_y") + propGetFloat(n,"psnr_cb") + propGetFloat(n,"psnr_cr") | |
c_metric = propGetFloat(c,"psnr_y") + propGetFloat(c,"psnr_cb") + propGetFloat(c,"psnr_cr") | |
p_metric = propGetFloat(p,"psnr_y") + propGetFloat(p,"psnr_cb") + propGetFloat(p,"psnr_cr") | |
n_metric > c_metric && n_metric > p_metric ? n : \ | |
p_metric > c_metric && p_metric > n_metric ? p : c | |
""") |
https://forum.doom9.org/showpost.php?p=1736322&postcount=218
try search=3 (esa)
try dct=5
try fulls=False, fulld=True with 16 or 32 bits
https://forum.doom9.org/showpost.php?p=1783366&postcount=74
find out a way to if>else in avsi script for MAnalyse
https://forum.doom9.org/showpost.php?p=1968988&postcount=92
test lowpass "pre" filter MVLPFGauss=0.6
https://forum.doom9.org/showpost.php?p=1972070&postcount=147
https://forum.doom9.org/showpost.php?p=1975256&postcount=157
https://forum.doom9.org/showpost.php?p=1982574&postcount=62
try all of that wall of text
ternary operator
Plane = 4 if Chroma = true, else Plane = 1
Plane = Chroma ? 4 : 1
function EZdenoise(clip Input, int "thSAD", int "thSADC", int "TR", int "BLKSize", int "Overlap", int "Pel", bool "Chroma", bool "out16")
{
thSAD = default(thSAD, 150)
thSADC = default(thSADC, thSAD)
TR = default(TR, 3)
BLKSize = default(BLKSize, 8)
Overlap = default(Overlap, BLKSize/2)
Pel = default(Pel, 1)
Chroma = default(Chroma, false)
out16 = default(out16, false)
Plane = Chroma ? 4 : 1
Super = Input.MSuper(Pel=Pel, Chroma=Chroma)
Multi_Vector = Super.MAnalyse(Multi=true, Delta=TR, BLKSize=BLKSize, Overlap=Overlap, Chroma=Chroma)
Input.MDegrainN(Super, Multi_Vector, TR, thSAD=thSAD, thSAD2=int(float(thSAD*0.9)), thSADC=thSADC, thSADC2=int(float(thSADC*0.9)), out16=out16, Plane=Plane)
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try
Multi_Vector = Super.MAnalyse(Multi=true, Delta=TR, BLKSize=BLKSize, Overlap=Overlap, Chroma=Chroma, search=3, searchparam=4)