Comparison: https://slow.pics/c/mOshiCvg
Source: https://nyaa.iss.one/view/1667500
After analyzing the BD, it appears that the creators DNRed the film grain out (due to the digital hybrid nature of the source) and then added fake film grain over it.
I have kept it in with AV1's FGS, but there is a bat file you can run if you want to remove it (does not delete originals)(and it also removes all the track tags for some reason...).
Video:
AV1 main profile 0 1440x1080@10bit, crf 21
Audio:
2.0 JPN - Opus 96kbit
2.0 ENG - Opus 96kbit
Subs:
ASS - English [hchcsen] (adjusted by sxales)
VS:
```
video = core.resize.Spline64(video,format = vs.YUV444P16)
video = core.knlm.KNLMeansCL(video, d=3, a=6, s=4, h=1.2, wmode=0, wref=1.0, device_type="gpu",channels="YUV")
video = core.resize.Spline64(video,format = vs.YUV420P10)
```
svt-av1-psy
```
"ffmpeg -i [infile] -c:v libsvtav1 -crf 21 -preset 2 -svtav1-params tune=3:enable-overlays=0:scd=1:scm=2:enable-tf=0:enable-cdef=1:variance-boost-strength=0:sharpness=2:lookahead=120:pin=0:lp=8 -sn -an -threads 10 [outfile]
```
```
ffmpeg -i [infile] -c:v copy -map 0 -c:a libopus -b:a 96k -c:s copy -threads 12 [outfile]
```
Grain Synth:
VS (denoised 10s sample)
```
video = core.resize.Spline64(video, format = vs.YUV444P16)
video = core.knlm.KNLMeansCL(video, d=0, a=1, s=4, h=2.5, wmode=0, wref=1.0, device_type="gpu",channels="YUV")
video = core.resize.Spline64(video,format = vs.YUV420P10)
```
VS (raw 10s sample)
```
video = core.resize.Spline64(video,format = vs.YUV420P10)
```
grav1synth
```
grav1synth diff [raw] [denoised] --output [grain table]
```
Film Grain Table (manually selected average table):
```
filmgrn1
E 0 9223372036854775807 1 7391 1
p 3 7 0 11 0 1 128 192 256 128 192 256
sY 12 0 66 27 66 40 71 54 77 94 100 121 113 134 118 148 123 188 132 201 132 215 132 255 132
sCb 2 0 61 255 60
sCr 4 0 33 121 34 188 32 255 32
cY 1 2 -1 14 6 0 1 2 -3 9 -40 -13 4 1 -3 15 -32 74 11 -7 3 16 -38 66
cCb 1 0 0 0 0 0 1 1 0 1 0 0 0 1 1 0 0 2 1 0 1 21 -52 103 2
cCr 2 0 1 1 1 0 2 2 0 1 1 1 1 2 2 0 1 2 1 1 2 13 -23 92 2
```
```
grav1synth apply [encode] --grain [grain table] --output [outfile]
```
Comments - 1
Ingenihack