5
0

Compare commits

..

2 Commits

Author SHA1 Message Date
397b17539e
tanteidan: tv: 02: stargazing
why the fuck do i spend so much time trying to rescue stars from nnedi3
i should probably just learn how to tune it properly but >lazy
2021-04-26 19:25:25 -04:00
3e6f0f44f2
tanteidan: tv: 01: replace scene that was better in funi's source 2021-04-26 19:24:20 -04:00
2 changed files with 18 additions and 4 deletions

View File

@ -8,6 +8,7 @@ from yt_common.source import waka_replace
from typing import List
from lvsfunc.dehardsub import HardsubLineFade, HardsubMask, HardsubSign, bounded_dehardsub
from lvsfunc.types import Range
from lvsfunc.misc import replace_ranges
import os
@ -89,6 +90,7 @@ def filter_basic() -> vs.VideoNode:
wakas = [w[0] + w for w in wakas]
waka = wakas[0]
waka, wakas = waka_replace(waka, wakas[1:], WAKA_REPLACE)
waka = replace_ranges(waka, ref, [(30497, 30556)]) # wth wakanim
src = bounded_dehardsub(waka, ref, SIGNS_RU, wakas)
src.set_output(1)
return src

View File

@ -8,7 +8,7 @@ from yt_common.source import waka_replace
from typing import List, Optional
from lvsfunc.dehardsub import HardsubLineFade, HardsubSignFade, HardsubMask, bounded_dehardsub
from lvsfunc.dehardsub import HardsubSignFade, HardsubMask, bounded_dehardsub
from lvsfunc.types import Range
import os
@ -46,8 +46,6 @@ TITLECARDS: List[Range] = [
]
SIGNS_RU: List[HardsubMask] = [
HardsubLineFade([
], ((449, 51), (1015, 127)), refframe=0.75),
HardsubSignFade([
(318, 347),
(4607, 4702),
@ -71,9 +69,23 @@ SIGNS_RU: List[HardsubMask] = [
SIGNS_RU += [HardsubSignFade(tc) for tc in TITLECARDS]
AA_STRONG: List[Range] = [
# the stars in this range respond poorly to nnedi3-clamped AAs, but fine to sraa
(13374, 13889),
(14022, 14270),
(14994, 15233),
(15540, 15779),
(16086, 16277),
(19530, 19805),
(19995, 20177),
(20190, 20669),
(20856, 21020),
]
AA_WEAK: List[Range] = [
(0, 35),
(282, 347),
(17757, 18068),
(18069, 18440),
]
@ -98,7 +110,7 @@ def filter() -> vs.VideoNode:
src = filter_basic()
den = denoise(src)
deb = deband(den)
aa = antialias(deb, weak=AA_WEAK, noaa=AA_NONE)
aa = antialias(deb, strong=AA_STRONG, weak=AA_WEAK, noaa=AA_NONE)
scenefilter = stupid_op_scenefilter(aa, deb, OP)
grain = regrain(scenefilter)
final = finalize(grain)