Replies: 1 comment
-
压制命令举例 (ffmpeg):
一些脚本: 配置项说明http://www.vapoursynth.com/doc/pythonreference.html#Core from vapoursynth import core
#线程数
core.num_threads = 16
#最大缓冲区大小(单位MB)
core.max_cache_size = 10000 使用 DGNV 进行硬解+显卡反交错工具https://www.videohelp.com/software/DGDecNV 注意:需要你有主流 Nvidia 显卡才能使用 说明DGSource 反交错的结果虽然不是最好的,但是胜在快且整体效果较为可靠,在没有特殊要求的话情况下可以无脑使用。 用法将视频文件拖入 from vapoursynth import core
#引入DLL
core.avs.LoadPlugin(r"D:\x64 Binaries\DGDecodeNV.dll")
#加载视频
#deinterlace=0 不开启反交错; deinterlace=1 开启反交错; deinterlace=2 开启倍帧反交错
src = core.avs.DGSource(r"D:\1080i.dgi", fieldop=0, deinterlace=2)
src.set_output() 软解 + QTGMC 进行反交错说明使用 QTGMC 反交错 用法from vapoursynth import core
import havsfunc as haf
#加载视频
src = core.lsmas.LWLibavSource(source=r"D:\1080i.ts")
#QTGMC反交错 FPSDivisor=1 倍帧; FPSDivisor=2 不倍帧
src = haf.QTGMC(src, Preset='slower', TFF=True,opencl=True, FPSDivisor=1)
src.set_output() 软解 + DGNV 显卡反交错工具https://www.videohelp.com/software/DGDecNV 注意:需要你有主流 Nvidia 显卡才能使用 说明场景:输入源是 422 色度采样或其他无法硬解的格式 注意:虽然 用法from vapoursynth import core
import havsfunc as haf
import vapoursynth as vs
#加载视频 软解
src = core.lsmas.LWLibavSource(source=r"D:\422_1080i.ts")
#To YUV420P8
src = core.resize.Bicubic(clip=src, format=vs.YUV420P8)
#DGNV反交错
core.avs.LoadPlugin(r"D:\x64 Binaries\DGDecodeNV.dll")
#order=1 TFF; order=0 BFF; mode=1 倍帧; mode=0 不倍帧
core.avs.PVBob(src,order=1,mode=1)
src.set_output() DVD IVTC 反胶卷过带处理说明建议学习:VCB-Studio 的相关教程 场景:输入源是 30i,但是 5 烂 2,3:2 pulldown。处理后应该是 24p。 用法import vapoursynth as vs
import sys
import vsTAAmbk as taa
import havsfunc as haf
import mvsfunc as mvf
from vapoursynth import core
#引入源
src = core.lsmas.LWLibavSource(r"D:\DVD9.vob", repeat=True)
#反胶卷过带
fm = core.vivtc.VFM(src, order=1, mode=3, cthresh=6)
deint = haf.QTGMC(src, Preset="Slow", TFF=True,opencl=True, FPSDivisor=2)
src8 = mvf.FilterCombed(fm, deint)
src8 = core.vivtc.VDecimate(src8)
src = core.std.SetFieldBased(src8, 0)
src.set_output() SRMD 超分辨率说明https://github.com/Kiyamou/VapourSynth-SRMD-ncnn-Vulkan 注意:路径里不能有中文字符,否则会找不到 models 用法import vapoursynth as vs
from vapoursynth import core
src = core.lsmas.LibavSMASHSource(source=r"D:\02_1080p.mp4")
# To RGBS
src = core.resize.Lanczos(src, format=vs.RGBS, matrix_in_s="709", transfer_in_s="709", primaries_in_s="709")
# UPSCALE 2x
clip = core.srmdnv.SRMD(clip, scale=2, noise=0, gpu_id=0, tta=False)
# To YUV420P8
clip = core.resize.Lanczos(clip, format=vs.YUV420P8, matrix_s="709", transfer_s="709", primaries_s="709") |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
旧帖子提供的便携包太旧了,重新弄了一个
包内部分脚本:
包内部分插件:
下载:VapourSynth64-R63_Py-3.11.4_VSEdit-R19-mod(20230630).zip
Beta Was this translation helpful? Give feedback.
All reactions