Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import vapoursynth as vs
- core = vs.core
- from vsTAAmbk import TAAmbk as taa
- import finedehalo as fd
- import mvsfunc as mvf
- #import lvsfunc as lvf
- import kagefunc as kgf
- import havsfunc as haf
- from vsutil import *
- core.max_cache_size = 16*1024
- # Source
- src = core.lsmas.LWLibavSource("fichier.m2ts")
- src = depth(src, 16)
- # Filtering
- denoise = mvf.BM3D(src, 1.5)
- aa = taa(denoise, 3, opencl=True)
- deband = join([
- core.placebo.Deband(plane(aa, 0), grain=0, threshold=2.8, radius=16),
- core.placebo.Deband(plane(aa, 1), grain=0, threshold=3.2, radius=20),
- core.placebo.Deband(plane(aa, 2), grain=0, threshold=3.2, radius=20)
- ])
- dehalo = fd.fine_dehalo(deband)
- dering = haf.HQDeringmod(dehalo)
- grain = kgf.adaptive_grain(dering, 0.35, luma_scaling=8)
- # Output
- final = depth(grain, 8)
- final.set_output()
- avec ensuite:
- @ECHO OFF
- setLocal EnableDelayedExpansion
- echo Starting x264 8 bit encode
- echo.
- set out=x264_8bit_encode.mp4
- set script="0001.vpy"
- set params=--crf 14 --preset slow --tune animation --aq-mode 3 --output-depth 8
- VapourSynth64\vspipe.exe "%script%" - --y4m | "bin\x264.exe" --demuxer y4m %params% -o "%out%" -
- pause
Advertisement
Add Comment
Please, Sign In to add comment