I have no idea why I did this...
Source: R1 DVDs (lots of issues fixed...)
Space Pirate Mito:
Video:
AV1 Main 720x540@10bit CRF 21, Hybrid 29.97/23.97 VFR
Audio:
English - 2.0 Opus 72kbit
Japanese - 2.0 Opus 72kbit
Subs:
English - SRT, assumed subrip, unknown ripper
Pair of Queens:
Video:
AV1 Main 720x540@10bit CRF 21, Hybrid 29.97/23.97 VFR
Audio:
Japanese - 2.0 Opus 72kbit
Subs:
English - ASS - Solitude
```
video = core.lsmas.LWLibavSource(source="[infile]",threads=12)
video = core.std.Crop(video,[varies by Ep])
video = core.tcomb.TComb(video, mode=2,fthreshl=4, fthreshc=5, othreshl=5, othreshc=6)
video = core.tivtc.TFM(video,order=0,mode=5,output="[matches file]",micmatching=1,cthresh=8,MI=80,scthresh=8,PP=1,slow=2)
video.set_output()
```
```
def postprocess(n, f, clip, deinterlaced):
if f.props['_Combed'] > 0:
return deinterlaced
else:
return clip
video = core.lsmas.LWLibavSource(source="[infile]",threads=12)
video = core.std.Crop(video,[varies by Ep])
video = core.tcomb.TComb(video, mode=2,fthreshl=4, fthreshc=5, othreshl=5, othreshc=6)
matched_clip = core.tivtc.TFM(video, order=0,input="[matches file]",mode=5,micmatching=1,cthresh=8,MI=80,scthresh=8,PP=1,slow=2,batch=True)
deinterlaced_clip = haf.QTGMC(matched_clip, Preset='very slow', TR0=2, TR1=2, TR2=1, TFF=True, SourceMatch=3).std.SelectEvery( cycle=2, offsets=0) #Sharpness=0.7
video = core.std.FrameEval(matched_clip, functools.partial(postprocess, clip=matched_clip, deinterlaced=deinterlaced_clip), prop_src=matched_clip)
video = core.tivtc.TDecimate(video,mode=5,hybrid=2,vfrDec=0,mkvOut="[mkv timecodes]",vidDetect=4,dupThresh=1.1,vidThresh=3.0,blockx=32,blocky=32,denoise=True,conCycleTP=16,tfmIn=[matches file],display=False,hint=True,exPP=1)
video = core.knlm.KNLMeansCL(video, d=3, a=6, s=4, h=1.2, wmode=0, wref=1.0, device_type="gpu")
video = core.fmtc.resample (video, css="444")
video = core.fmtc.bitdepth(video, bits=32)
video = core.fmtc.matrix(video,mat="601",col_fam=vs.RGB)
#video = core.fmtc.matrix(video,mat="601",col_fam=vs.RGB,fulls=True,fulld=True)
#video = core.std.Levels(video, min_in=0, max_in=0.71372549, min_out=0, max_out=1, planes=[0,1,2]) #some eps have megafucked color ranges
video = core.ort.Model(video,network_path="_2xGT-v2-evA-01.onnx",fp16 = True,provider = "DML")
video = core.resize.Spline64(video,width=720,height=540, matrix_s="170m", format = vs.YUV420P10)
video.set_output()
```
```
ffmpeg -i [infile] -c:v libsvtav1 -crf 21 -preset 2 -svtav1-params tune=2:enable-overlays=1:scd=1:scm=2:enable-tf=0:lookahead=120:pin=0:lp=6 -map 0 -acodec libopus -b:a 72k -c:s copy -threads 8 [outfile]
```
Comments - 0