pripri: bd: vol5
This commit is contained in:
parent
5f0bd29beb
commit
2e97ee65e8
1
.gitignore
vendored
1
.gitignore
vendored
@ -24,3 +24,4 @@ ffmpeg2pass*.log
|
||||
**/*.egg-info/
|
||||
**/bdmv/
|
||||
**/bdpremux/
|
||||
**/sub/
|
||||
|
41
Princess Principal/09/09.vpy
Normal file
41
Princess Principal/09/09.vpy
Normal file
@ -0,0 +1,41 @@
|
||||
import vapoursynth as vs
|
||||
|
||||
from pripri_common import PriPriConfig, edgefix, denoise, descale, antialias, regrain, scenefilter_ed, finalize
|
||||
|
||||
from yt_common.automation import SelfRunner
|
||||
from yt_common.source import FileTrim, SimpleSource
|
||||
|
||||
from typing import Optional
|
||||
|
||||
import os
|
||||
|
||||
core = vs.core
|
||||
|
||||
EPNUM: int = int(os.path.basename(os.path.splitext(__file__)[0]))
|
||||
CONFIG: PriPriConfig = PriPriConfig(EPNUM)
|
||||
SOURCE: SimpleSource = SimpleSource(
|
||||
FileTrim("../bdmv/[180126][BDMV] プリンセス・プリンシパル V/PRINCESS_PRINCIPAL_5/BDMV/STREAM/00006.m2ts", (0, -22))
|
||||
)
|
||||
ED: Optional[int] = 32610
|
||||
|
||||
|
||||
def filter() -> vs.VideoNode:
|
||||
src = SOURCE.source()
|
||||
if ED is not None:
|
||||
src = src.std.FreezeFrames(first=[src.num_frames-4], last=[src.num_frames-1], replacement=[src.num_frames-5])
|
||||
ef = edgefix(src)
|
||||
den = denoise(ef)
|
||||
rescale = descale(den)
|
||||
aa = antialias(rescale)
|
||||
grain = regrain(aa)
|
||||
ed = scenefilter_ed(grain, src, ED)
|
||||
final = finalize(ed)
|
||||
src.set_output(1)
|
||||
final.set_output(0)
|
||||
return final
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
SelfRunner(CONFIG, SOURCE, filter, audio_codec=["-c:a", "libopus", "-b:a", "192k", "-sample_fmt", "s16"])
|
||||
else:
|
||||
filter()
|
41
Princess Principal/10/10.vpy
Normal file
41
Princess Principal/10/10.vpy
Normal file
@ -0,0 +1,41 @@
|
||||
import vapoursynth as vs
|
||||
|
||||
from pripri_common import PriPriConfig, edgefix, denoise, descale, antialias, regrain, scenefilter_ed, finalize
|
||||
|
||||
from yt_common.automation import SelfRunner
|
||||
from yt_common.source import FileTrim, SimpleSource
|
||||
|
||||
from typing import Optional
|
||||
|
||||
import os
|
||||
|
||||
core = vs.core
|
||||
|
||||
EPNUM: int = int(os.path.basename(os.path.splitext(__file__)[0]))
|
||||
CONFIG: PriPriConfig = PriPriConfig(EPNUM)
|
||||
SOURCE: SimpleSource = SimpleSource(
|
||||
FileTrim("../bdmv/[180126][BDMV] プリンセス・プリンシパル V/PRINCESS_PRINCIPAL_5/BDMV/STREAM/00007.m2ts", (0, -48))
|
||||
)
|
||||
ED: Optional[int] = 32608
|
||||
|
||||
|
||||
def filter() -> vs.VideoNode:
|
||||
src = SOURCE.source()
|
||||
if ED is not None:
|
||||
src = src.std.FreezeFrames(first=[src.num_frames-4], last=[src.num_frames-1], replacement=[src.num_frames-5])
|
||||
ef = edgefix(src)
|
||||
den = denoise(ef)
|
||||
rescale = descale(den)
|
||||
aa = antialias(rescale)
|
||||
grain = regrain(aa)
|
||||
ed = scenefilter_ed(grain, src, ED)
|
||||
final = finalize(ed)
|
||||
src.set_output(1)
|
||||
final.set_output(0)
|
||||
return final
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
SelfRunner(CONFIG, SOURCE, filter, audio_codec=["-c:a", "libopus", "-b:a", "192k", "-sample_fmt", "s16"])
|
||||
else:
|
||||
filter()
|
Loading…
x
Reference in New Issue
Block a user