From 3f68c5bd68aa7a7a79a212b72604ec6518a1c574 Mon Sep 17 00:00:00 2001 From: hooke007 Date: Tue, 13 Dec 2022 15:41:54 +0000 Subject: [PATCH] mpv-lazy-20230101 --- portable_config/mpv.conf | 10 ++++++---- portable_config/profiles.conf | 7 +++++-- portable_config/script-opts.conf | 33 +++++++++++++++++++++----------- 3 files changed, 33 insertions(+), 17 deletions(-) diff --git a/portable_config/mpv.conf b/portable_config/mpv.conf index c93de6e6..0a338259 100644 --- a/portable_config/mpv.conf +++ b/portable_config/mpv.conf @@ -4,21 +4,23 @@ input-conf = "~~/input_uosc.conf" include = "~~/profiles.conf" include = "~~/script-opts.conf" + use-filedir-conf = yes #log-file = "~~desktop/mpv-lazy.log" ######## # 基础 # ######## - vo = gpu - gpu-context = d3d11 +#vo = gpu-next +#gpu-context = winvk #d3d11-exclusive-fs = yes #d3d11-flip = no hwdec = auto-copy - hwdec-codecs = all + hwdec-codecs = h264,hevc,vp8,vp9,av1,prores #d3d11-adapter = "NVIDIA GeForce RTX 2070 Super" +#vulkan-device = "NVIDIA GeForce RTX 2070 Super" ######## @@ -115,7 +117,7 @@ #################### osc = no -#ytdl-raw-options-append = cookies=[D:/cookies.txt] +#ytdl-raw-options-append = cookies-from-browser=edge #load-scripts = no diff --git a/portable_config/profiles.conf b/portable_config/profiles.conf index d8cc3727..4135fbaa 100644 --- a/portable_config/profiles.conf +++ b/portable_config/profiles.conf @@ -1,13 +1,12 @@ ### https://github.com/hooke007/MPV_lazy/blob/main/portable_config/profiles.conf - ############## # 配置预设组 # ############## [ontop_playback] profile-desc = 基于播放状态的自动置顶 - profile-cond = not pause +#profile-cond = not pause profile-restore = copy ontop = yes @@ -32,6 +31,10 @@ profile-restore = copy blend-subtitles = no #target-peak = 100 +#sub-color = 0.7 +#sub-border-color = 0.1 +#sub-back-color = "#00000000" +#sub-shadow-offset = 0 [HDR_DolbyVision] diff --git a/portable_config/script-opts.conf b/portable_config/script-opts.conf index f409b7dc..1c9da648 100644 --- a/portable_config/script-opts.conf +++ b/portable_config/script-opts.conf @@ -1,18 +1,20 @@ ### https://github.com/hooke007/MPV_lazy/blob/main/portable_config/script-opts.conf +##⇘⇘脚本选项 - ############ - # 脚本选项 # - ############ -##⇘⇘控制台 +########## +# 控制台 # +########## #script-opts-append = console-scale=1.2 script-opts-append = console-font=Ubuntu Mono script-opts-append = console-font_size=20 -##⇘⇘统计数据 +############ +# 统计数据 # +############ script-opts-append = stats-duration=2 script-opts-append = stats-redraw_delay=0.5 @@ -20,7 +22,9 @@ script-opts-append = stats-filter_params_max_length=1 -##⇘⇘YTDL +######## +# YTDL # +######## #script-opts-append = ytdl_hook-all_formats=yes #script-opts-append = ytdl_hook-force_all_formats=no @@ -29,28 +33,35 @@ #script-opts-append = ytdl_path=youtube-dl -##⇘⇘保存全局属性并恢复 +###################### +# 保存全局属性并恢复 # +###################### script-opts-append = save_global_props-props=volume,glsl-shaders #script-opts-append = save_global_props-cache_dir=~~/ -##⇘⇘新缩略图引擎 +################ +# 新缩略图引擎 # +################ script-opts-append = thumbfast-min_duration=30 #script-opts-append = thumbfast-precise=yes #script-opts-append = thumbfast-hwdec=no -##⇘⇘多功能控制界面 +################## +# 多功能控制界面 # +################## #script-opts-append = uosc-timeline_size_min=0 #script-opts-append = uosc-timeline_size_min_fullscreen=4 #script-opts-append = uosc-autoload=yes - + +#script-opts-append = uosc-ui_scale=2 #script-opts-append = uosc-click_threshold=1000 - script-opts-append = uosc-media_types=aac,ape,avi,dsf,flac,flv,m2ts,m4a,m4v,mka,mkv,mov,mp3,mp4,mpeg,mpg,ogg,ogv,opus,rm,rmvb,ts,vob,wav,webm,wma,wmv,wv + script-opts-append = uosc-media_types=aac,ape,avi,dsf,dts,flac,flv,m2ts,m4a,m4v,mka,mkv,mov,mp3,mp4,mpeg,mpg,ogg,ogv,opus,rm,rmvb,ts,vob,wav,webm,wma,wmv,wv script-opts-append = uosc-subtitle_types=ass,idx,lrc,mks,pgs,sup,srt,ssa,txt,vtt script-opts-append = uosc-curtain_opacity=0