Skip to content

Commit

Permalink
update & fix
Browse files Browse the repository at this point in the history
deint-std.vpy 增加了 TDeintMod 和 Bwdif ;
rife-2x.vpy 的详情参见 #123 ;

ravu-zoom 使用r2 ;同步SSIMds着色器 ;

跑分设置中常驻禁用 d3d11-flip ;
chcp936 ;

更新 LICENSE
  • Loading branch information
hooke007 committed May 14, 2022
1 parent cc2e58c commit 0121ea1
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 33 deletions.
38 changes: 21 additions & 17 deletions LICENSE.MD
Original file line number Diff line number Diff line change
Expand Up @@ -6,71 +6,75 @@ _未列出的文件,以最新文件内容为准,否则默认视作_ **UNLICE
## .../mpv-lazy/

### ffmpeg

https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/HEAD:/LICENSE.md

### mpv

https://github.com/mpv-player/mpv/blob/master/Copyright

### python

https://docs.python.org/3/license.html

### tclsh

https://www.tcl.tk/software/tcltk/license.html

### VapourSynth

https://github.com/vapoursynth/vapoursynth/blob/master/COPYING.LESSER

### youtube-dl

https://github.com/ytdl-org/youtube-dl/blob/master/LICENSE

### yt-dlp

https://github.com/yt-dlp/yt-dlp/blob/master/LICENSE



## .../mpv-lazy/installer

https://github.com/rossy/mpv-install/blob/master/COPYING



## .../mpv-lazy/portable_config/scripts

_通常协议已集成在文件内部_



## .../mpv-lazy/portable_config/shaders

_通常协议已集成在文件内部_



## .../mpv-lazy/vapoursynth64/plugins

### MVTools
### Bwdif
https://github.com/HomeOfVapourSynthEvolution/VapourSynth-Bwdif/blob/master/LICENSE

### fmtconv
https://github.com/EleonoreMizo/fmtconv/blob/master/COPYING

### Miscellaneous Filters
https://github.com/vapoursynth/vs-miscfilters-obsolete/blob/master/LICENSE

### MVTools
https://github.com/dubhater/vapoursynth-mvtools#license

### RIFE
### Neo f3kdb
https://github.com/HomeOfAviSynthPlusEvolution/neo_f3kdb/blob/master/LICENSE

### nnedi3
https://github.com/dubhater/vapoursynth-nnedi3/blob/master/gpl2.txt

### NNEDI3CL
https://github.com/HomeOfVapourSynthEvolution/VapourSynth-NNEDI3CL/blob/master/LICENSE

### RIFE
https://github.com/HomeOfVapourSynthEvolution/VapourSynth-RIFE-ncnn-Vulkan/blob/master/LICENSE

### TemporalSoften2
### TDeintMod
https://github.com/HomeOfVapourSynthEvolution/VapourSynth-TDeintMod/blob/master/LICENSE

### TemporalSoften2
https://github.com/dubhater/vapoursynth-temporalsoften2/blob/master/LICENSE.LGPLv2.1

### Yadifmod

https://github.com/HomeOfVapourSynthEvolution/VapourSynth-Yadifmod/blob/master/LICENSE

### znedi3

https://github.com/sekrit-twc/znedi3/blob/master/gpl2.txt
4 changes: 2 additions & 2 deletions Temp/mpv-BenchMark.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

opengl-swapinterval = 0 # {锁☒}
opengl-dwmflush = no # {锁☒}
vulkan-swap-mode = immediate # 使用 --gpu-api=vulkan 测试时若视频帧数等同屏幕刷新率,此项值应改为 mailbox
vulkan-swap-mode = immediate # 使用 --gpu-context=winvk 时若帧数等同刷新率,尝试改为 mailbox
d3d11-sync-interval = 0 # {锁☒}
#d3d11-flip = no # 有时翻转模型会抽风导致大幅降低渲染效率,自行测试是否启用该项目
d3d11-flip = no # {锁☒} 翻转的交换效果可能钳制极限帧率 FPS_max=前后缓冲区的数量x刷新率

hidpi-window-scale = no # {锁☒} 先禁用DPI缩放再指定的倍率才准确
window-scale = 1.5 # 手动指定源缩放倍率(受 --auto-fit=<value> 限制)
Expand Down
2 changes: 2 additions & 0 deletions Temp/mpv-测试模式.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
:: 说明(UTF8中文乱码可修改编码为ANSI或GB18030)
chcp 936

@echo off
echo ==========================================================
echo == 测试模式
Expand Down
2 changes: 2 additions & 0 deletions Temp/mpv-纯净模式.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
:: 说明(UTF8中文乱码可修改编码为ANSI或GB18030)
chcp 936

@echo off
echo ==========================================================
echo == 纯净模式可用于兼容测试或特殊用途
Expand Down
2 changes: 2 additions & 0 deletions Temp/mpv-跑分模式.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
:: 说明(UTF8中文乱码可修改编码为ANSI或GB18030)
chcp 936

@echo off
echo ==========================================================
echo == 跑分模式(其实是查看解码渲染效率)
Expand Down
2 changes: 2 additions & 0 deletions Temp/mpv-输入模式.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
:: 说明(UTF8中文乱码可修改编码为ANSI或GB18030)
chcp 936

@echo off
echo ==========================================================
echo == 输入模式(键盘、鼠标等外设键值的输入检测)
Expand Down
4 changes: 2 additions & 2 deletions portable_config/input.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
##开启/关闭 单项:AMD-FSR(速度很快,放大到目标分辨率,伴随对比度自适应锐化)
CTRL+2 change-list glsl-shaders toggle "~~/shaders/AMD-FSR.glsl"
##开启/关闭 单项:RAVUzr3(速度一般,放大到目标分辨率,轻微锐化)
CTRL+3 change-list glsl-shaders toggle "~~/shaders/ravu-zoom-r3.glsl"
CTRL+3 change-list glsl-shaders toggle "~~/shaders/ravu-zoom-r2.glsl"
##开启/关闭 单项:Anime4k-restore(速度快,无缩放,重建线条)
CTRL+4 change-list glsl-shaders toggle "~~/shaders/Anime4K_Restore_CNN_M.glsl"
##开启/关闭 单项:Anime4k-GAN(速度快,两倍放大,感知略强)
Expand Down Expand Up @@ -67,7 +67,7 @@
##开启/关闭 伽马修正为2.2,可用于校色后的调整(默认ICC校正以BT.1886为目标曲线) <shift ->
_ vf toggle format=gamma=gamma2.2 # 开/关 伽马修正2.2

##开启/关闭 Yadifmod 反交错方案 <shift =>
##开启/关闭 nnedi3作参考的反交错方案 <shift =>
+ vf toggle vapoursynth="~~/vs/deint-std.vpy" # 开/关 去隔行(双倍帧率)

##清除所有已挂载的视频滤镜 <shift `>
Expand Down
4 changes: 2 additions & 2 deletions portable_config/script-opts/contextmenu_gui.conf
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ shader02B=开/关 单项:AMD-FSR
shader02D=change-list glsl-shaders toggle ~~/shaders/AMD-FSR.glsl
#shader02G=yes

shader03B=开/关 单项:ravu-zoom-r3
shader03B=开/关 单项:ravu-zoom-r2
#shader03C=
shader03D=change-list glsl-shaders toggle ~~/shaders/ravu-zoom-r3.glsl
shader03D=change-list glsl-shaders toggle ~~/shaders/ravu-zoom-r2.glsl
#shader03G=yes

shader04B=开/关 单项:Anime4K_Restore_CNN_M
Expand Down
2 changes: 1 addition & 1 deletion portable_config/shaders/SSimDownscaler.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ vec4 hook() {
//!COMPONENTS 4
//!DESC SSimDownscaler mean & R

#define sigma_nsq 49. / (255.*255.)
#define sigma_nsq 10. / (255.*255.)
#define locality 2.0

#define offset vec2(0,0)
Expand Down
22 changes: 14 additions & 8 deletions portable_config/vs/deint-std.vpy
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,23 @@ input = video_in

edi_core = 2
GPU = -1
ref_field = 3
# 使用的核心 1=nnedi3 // 2=znedi3 // 3=nnedi3cl
# 使用OpenCL加速的设备(仅支持nnedi3cl
# 参考帧的保留模式 2=底场起双速率 // 3=顶场起双速率
deint_core = 3
# 使用的参考核心 1=nnedi3 // 2=znedi3 // 3=nnedi3cl
# 使用OpenCL加速的设备(仅支持 nnedi3cl
# 去隔行的执行核心 1=tdm // 2=yadifmod // 3=bwdif

if edi_core == 1 :
ref = core.nnedi3.nnedi3(clip=input, field=ref_field)
ref = core.nnedi3.nnedi3(clip=input, field=3)
if edi_core == 2 :
ref = core.znedi3.nnedi3(clip=input, field=ref_field)
ref = core.znedi3.nnedi3(clip=input, field=3)
if edi_core == 3 :
ref = core.nnedi3cl.NNEDI3CL(clip=input, field=ref_field, device=GPU)
output = core.yadifmod.Yadifmod(clip=input, edeint=ref, order=1, mode=1)
ref = core.nnedi3cl.NNEDI3CL(clip=input, field=3, device=GPU)

if deint_core == 1 :
output = core.tdm.TDeintMod(clip=input, order=1, mode=1, length=6, ttype=0, edeint=ref)
if deint_core == 2 :
output = core.yadifmod.Yadifmod(clip=input, edeint=ref, order=1, mode=1)
if deint_core == 3 :
output = core.bwdif.Bwdif(clip=input, field=3, edeint=ref)

output.set_output()
6 changes: 5 additions & 1 deletion portable_config/vs/rife-2x.vpy
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ input = video_in

max_Leng = 720
scene_th = 0.1
rife_model = 9
GPU = 0
GPU_t = 2
pre_dscaling = False
# 若视频的短边超过该长度将被强制降采样,高端显卡的推荐值范围 1080 -- 720 (如果对你的显卡非常自信,可以尝试把该值提高到 2160)
# 场景切换的检测阈值,初始设置保守,设置为 0.2 可获得更明显的效果但引入更多瑕疵
# 补帧模型,精简后只保留了 v4
# 使用的显卡序号,0为排序一号
# 使用的显卡线程数
# 是否使用内部的预缩小提速计算过程(大幅降低旧模型的质量;不影响 v4 模型)

if container_fps > 32 :
raise Warning("源帧率超过限制的范围,已临时禁用该脚本。")
Expand All @@ -34,7 +38,7 @@ if short_edge > max_Leng :
cut1 = cut0.resize.Bicubic(width=w_ds, height=h_ds, format=vs.RGBS, matrix_in_s="709")
else :
cut1 = cut0.resize.Bilinear(format=vs.RGBS, matrix_in_s="709")
cut2 = core.rife.RIFE(clip=cut1, model=9, multiplier=2, gpu_id=GPU, gpu_thread=GPU_t, tta=False, uhd=False, sc=True)
cut2 = core.rife.RIFE(clip=cut1, model=rife_model, multiplier=2, gpu_id=GPU, gpu_thread=GPU_t, tta=False, uhd=pre_dscaling, sc=True)

output = cut2.resize.Bilinear(format=vs.YUV444P16, matrix_s="709")
if input.get_frame(0).props._ColorRange == 0 :
Expand Down

0 comments on commit 0121ea1

Please sign in to comment.