Skip to content

Commit

Permalink
mpv-lazy-20230513
Browse files Browse the repository at this point in the history
  • Loading branch information
hooke007 committed May 13, 2023
1 parent 6bc7635 commit a931f79
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 28 deletions.
26 changes: 13 additions & 13 deletions portable_config/input_uosc.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
### https://github.com/hooke007/MPV_lazy/blob/main/portable_config/input.conf
### https://github.com/hooke007/MPV_lazy/blob/main/portable_config/input_uosc.conf
### 文档_ https://github.com/hooke007/MPV_lazy/blob/main/portable_config/input.conf
### 文档_ https://github.com/hooke007/MPV_lazy/blob/main/portable_config/input_uosc.conf


# script-binding uosc/open-file #! 加载 > ※ 文件浏览器
Expand All @@ -16,8 +16,8 @@
, frame-back-step #! 播放 > 上一帧
. frame-step #! 播放 > 下一帧
l ab-loop #! 播放 > 设置/清除 AB循环点
[ cycle-values speed 2 1 0.8 #! 播放 > 切换 速度 -
] cycle-values speed 0.8 1 2 #! 播放 > 切换 速度 +
[ cycle-values speed 2 1.5 1.2 1 ; script-message-to uosc flash-elements speed #! 播放 > 切换 速度 -
] cycle-values speed 1 1.2 1.5 2 ; script-message-to uosc flash-elements speed #! 播放 > 切换 速度 +
- no-osd add volume -1 ; script-message-to uosc flash-elements volume #! 播放 > 音量 -
= no-osd add volume 1 ; script-message-to uosc flash-elements volume #! 播放 > 音量 +
c add audio-delay -0.1 #! 播放 > 音频预载 100ms
Expand All @@ -27,11 +27,11 @@
Shift+BS set audio-delay 0 ; set sub-delay 0 #! 播放 > 重置 音频与字幕同步

~ vf clr "" #! VF 滤镜 > 清空
! vf set vapoursynth="~~/vs/mvtools_2x.vpy" #! VF 滤镜 > 预设 MVTools_补帧_2x
@ vf set vapoursynth="~~/vs/mvtools_std.vpy" #! VF 滤镜 > 预设 MVTools_补帧_标准
SHARP vf set vapoursynth="~~/vs/rife_2x.vpy" #! VF 滤镜 > 预设 RIFE_补帧_2x
$ vf set vapoursynth="~~/vs/rife_std.vpy" #! VF 滤镜 > 预设 RIFE_补帧_标准
% vf set vapoursynth="~~/vs/rife_cuda.vpy" #! VF 滤镜 > 预设 RIFE_补帧_NVIDIA
! vf set vapoursynth="~~/vs/MEMC_MVT_LQ.vpy" #! VF 滤镜 > 预设 补帧-MVTools_2x
@ vf set vapoursynth="~~/vs/MEMC_MVT_STD.vpy" #! VF 滤镜 > 预设 补帧-MVTools_标准
SHARP vf set vapoursynth="~~/vs/MEMC_RIFE_STD.vpy" #! VF 滤镜 > 预设 补帧-RIFE_标准
$ vf set vapoursynth="~~/vs/MEMC_RIFE_NV.vpy" #! VF 滤镜 > 预设 补帧-RIFE_RTX (*)
% vf set vapoursynth="~~/vs/SR_ESRGAN_NV.vpy" #! VF 滤镜 > 预设 超分-ESRGAN_RTX (*)

Ctrl+` change-list glsl-shaders clr "" #! 着色器 > 清空
Ctrl+1 change-list glsl-shaders toggle "~~/shaders/KrigBilateral.glsl" #! 着色器 > 开关 Krig
Expand Down Expand Up @@ -93,15 +93,15 @@
MBTN_LEFT_DBL cycle fullscreen
MBTN_RIGHT script-binding uosc/menu
MBTN_RIGHT_DBL ignore
Wheel_DOWN no-osd add volume -1 ; script-message-to uosc flash-elements volume
Wheel_UP no-osd add volume 1 ; script-message-to uosc flash-elements volume
#WHEEL_DOWN no-osd add volume -1 ; script-message-to uosc flash-elements volume
#WHEEL_UP no-osd add volume 1 ; script-message-to uosc flash-elements volume

ESC set fullscreen no
ENTER set fullscreen yes
Alt+ENTER cycle fullscreen
SPACE cycle pause
UP seek -1 exact
DOWN seek 1 exact
UP set pause yes ; seek -1 exact
DOWN set pause yes ; seek 1 exact
LEFT seek -5
RIGHT seek 5
Ctrl+UP playlist-prev
Expand Down
9 changes: 7 additions & 2 deletions portable_config/mpv.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### https://github.com/hooke007/MPV_lazy/blob/main/portable_config/mpv.conf
### 文档_ https://github.com/hooke007/MPV_lazy/blob/main/portable_config/mpv.conf


input-conf = "~~/input_uosc.conf"
Expand Down Expand Up @@ -45,7 +45,9 @@
hidpi-window-scale = no

demuxer-max-bytes = 1024MiB
icc-cache = yes
icc-cache-dir = "~~/_cache/icc"
gpu-shader-cache = yes
gpu-shader-cache-dir = "~~/_cache/shader"
watch-later-directory = "~~/_cache/watch_later"

Expand Down Expand Up @@ -91,11 +93,12 @@
#icc-profile-auto = yes

#target-prim = display-p3
#target-trc = gamma2.2

video-sync = display-resample
video-sync-max-video-change = 5
interpolation = yes
tscale = linear
tscale = oversample

cscale = bilinear
scale = spline36
Expand Down Expand Up @@ -143,6 +146,8 @@
#sub-shadow-offset = 2
sub-use-margins = yes

#sub-ass-vsfilter-aspect-compat = no
sub-ass-vsfilter-blur-compat = no
#sub-ass-override = force
#sub-ass-scale-with-window = yes
sub-ass-force-margins = yes
Expand Down
8 changes: 4 additions & 4 deletions portable_config/profiles.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### https://github.com/hooke007/MPV_lazy/blob/main/portable_config/profiles.conf
### 文档_ https://github.com/hooke007/MPV_lazy/blob/main/portable_config/profiles.conf

##############
# 配置预设组 #
Expand All @@ -13,8 +13,8 @@

## https://github.com/mpv-player/mpv/issues/11122
[vsync_auto]
profile-desc = 基于刷新率的同步模式
profile-cond = p.display_fps>122
profile-desc = 基于刷新率或帧率的同步模式
profile-cond = p.display_fps>122 or p.container_fps>32
profile-restore = copy
interpolation = no
video-sync = audio
Expand Down Expand Up @@ -48,7 +48,7 @@

[HDR_DolbyVision]
profile-desc = hdr杜比视界
profile-cond = filename:match("%.DoVi")~=nil
profile-cond = filename:match("%.DoVi")
profile-restore = copy
vo = gpu-next
hdr-compute-peak = no
Expand Down
33 changes: 24 additions & 9 deletions portable_config/script-opts.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### https://github.com/hooke007/MPV_lazy/blob/main/portable_config/script-opts.conf
### 文档_ https://github.com/hooke007/MPV_lazy/blob/main/portable_config/script-opts.conf

##⇘⇘脚本选项

Expand All @@ -7,9 +7,9 @@
# 控制台 #
##########

#script-opts-append = console-scale=1.2
script-opts-append = console-font=Ubuntu Mono
script-opts-append = console-font_size=20
script-opts-append = console-scale=1.5
#script-opts-append = console-font=Ubuntu Mono
#script-opts-append = console-font_size=24


############
Expand All @@ -26,8 +26,9 @@
# YTDL #
########

#script-opts-append = ytdl_hook-all_formats=yes
#script-opts-append = ytdl_hook-force_all_formats=no
#script-opts-append = ytdl_hook-try_ytdl_first=yes

#script-opts-append = ytdl_hook-exclude="%.avi$|%.flv$|%.m3u$|%.m3u8$|%.m4v$|%.mkv$|%.mp4$|%.ts$|%.VOB$|%.webm$|%.wmv$"
#script-opts-append = ytdl_hook-use_manifests=yes

#script-opts-append = ytdl_path=youtube-dl
Expand All @@ -37,17 +38,24 @@
# 保存全局属性并恢复 #
######################

#script-opts-append = save_global_props-save_mode=0
script-opts-append = save_global_props-props=volume,glsl-shaders
#script-opts-append = save_global_props-cache_dir=~~/
#script-opts-append = save_global_props-cache_dir=~~/_cache/


################
# 新缩略图引擎 #
################

script-opts-append = thumbfast-min_duration=30
#script-opts-append = thumbfast-precise=yes
#script-opts-append = thumbfast-max_height=400
#script-opts-append = thumbfast-max_width=400

#script-opts-append = thumbfast-precise=1
#script-opts-append = thumbfast-quality=2
#script-opts-append = thumbfast-sw_threads=1
#script-opts-append = thumbfast-hwdec=no
#script-opts-append = thumbfast-network=yes
script-opts-append = thumbfast-min_duration=30


##################
Expand All @@ -57,7 +65,10 @@
#script-opts-append = uosc-timeline_size_min=0
#script-opts-append = uosc-timeline_size_min_fullscreen=4

#script-opts-append = uosc-controls=menu,ST-stats_tog

#script-opts-append = uosc-autoload=yes
#script-opts-append = uosc-autoload_types=video,audio

#script-opts-append = uosc-ui_scale=2
#script-opts-append = uosc-click_threshold=1000
Expand All @@ -68,3 +79,7 @@
script-opts-append = uosc-subtitle_types=ass,idx,lrc,mks,pgs,sup,srt,ssa,txt,vtt

script-opts-append = uosc-curtain_opacity=0

#script-opts-append = uosc-default_directory=D:\Videos

script-opts-append = uosc-idlemsg=mpv-lazy
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file removed portable_config/vs/mvtools_std.vpy
Empty file.
Empty file removed portable_config/vs/rife_2x.vpy
Empty file.
Empty file removed portable_config/vs/rife_std.vpy
Empty file.

0 comments on commit a931f79

Please sign in to comment.