### 行首如果存在注释符号 "#" 则说明该项 “未启用”
### 文档_ https://github.com/hooke007/mpv_PlayKit/blob/main/portable_config/mpv.conf
### 注意：当前预设下，选项 --volume --glsl-shaders 的关联属性已被全局追踪记录，移除缓存文件 saved-props.json 才能使其的更改生效

 input-conf = "~~/input_uosc.conf"
 include = "~~/profiles.conf"
 include = "~~/script-opts.conf"
 use-filedir-conf = yes
#log-file = "~~desktop/mpv-lazy.log"

 ########
 # 基础 #
 ########

 vo = gpu-next
#gpu-context = winvk
#d3d11-exclusive-fs = yes
#d3d11-flip = no

 hwdec = auto-copy
 hwdec-codecs = h264,hevc,vp8,vp9,av1,ffv1

#d3d11-adapter = "NVIDIA GeForce RTX 2070 Super"
#vulkan-device = "NVIDIA GeForce RTX 2070 Super"


 ########
 # 功能 #
 ########

 idle = yes
 input-ime = no
#input-ipc-server = mpvpipe
 input-builtin-bindings = no
#pause = yes

 hr-seek-framedrop = no
 save-position-on-quit = yes
 watch-later-options = start,vid,aid,sid

 target-colorspace-hint = no
#target-colorspace-hint-mode = source
#target-colorspace-hint-strict = no

#autocreate-playlist = same
 directory-mode = ignore
#directory-filter-types = video,audio
#video-exts = avi,flv,m2ts,mkv,mov,mp4,ts,wmv
#image-exts = avif,bmp,jpeg,jpg,jxl,png,webp
#audio-exts = aiff,ape,flac,mp3,ogg,opus,wav

 keep-open = yes
#ontop = yes
#title-bar = no
 autofit-smaller = 50%x50%
 keepaspect-window = no
#auto-window-resize = no
 hidpi-window-scale = no

 demuxer-max-bytes = 1024MiB
 demuxer-max-back-bytes = 512MiB
#icc-cache = no
 icc-cache-dir = "~~/_cache/icc"
#gpu-shader-cache = no
 gpu-shader-cache-dir = "~~/_cache/shader"
 watch-later-dir = "~~/_cache/watch_later"


 #######
 # OSD #
 #######

 osd-on-seek = msg
#osd-blur = 1
 osd-bar-w = 100
 osd-bar-h = 1.8
 osd-bar-align-y = -1
 osd-color = "#672168"
 osd-outline-color = "#EEEEEE"
 osd-outline-size = 0.8
 osd-font-size = 34
 osd-fractions = yes
 osd-playing-msg = "${filename}"
 osd-duration = 2000
 osd-playing-msg-duration = 3000


 ########
 # 音频 #
 ########

 ao = wasapi
#audio-device = "wasapi/{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"
#audio-exclusive = yes

 volume = 100   # 注意：此参数当前在 script-opts.conf 文件中存在关联处理（参见 “保存全局属性并恢复” 部分）
 volume-max = 130
 audio-channels = stereo
#alang = chs,sc,zh-cn,chi,zh,zh-tw,cht,zho,ze
 audio-file-auto = fuzzy


 ########
 # 视频 #
 ########

#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 = sphinx

 cscale = bilinear
 scale = bilinear
 dscale = bicubic
 sigmoid-upscaling = no
 correct-downscaling = no

 dither-depth = no
#deband = yes
 deinterlace = auto

 background-tile-color-0 = "#B4B4B4"
 background-tile-color-1 = "#DCDCDC"
 background-tile-size = 128


 ####################
 # 脚本 滤镜 着色器 #
 ####################

#load-stats-overlay = no
 osc = no
#ytdl-raw-options-append = cookies-from-browser=edge
 ytdl-raw-options-append = sub-langs=-danmaku

#load-scripts = no

#border-background = blur
 background-blur-radius = 8

 glsl-shaders-append = "~~/shaders/QCOM/QCOM_SGEDS_ms_RT.glsl"
#glsl-shader-opts-append = QCOM_SGEDS_ms_RT/STR=2.0


 ########
 # 字幕 #
 ########

 sub-auto = fuzzy
 sub-file-paths = sub;Subs;subtitles
 sub-codepage = GB18030
 slang = chs,sc,zh-cn,chi,zh,zh-tw,cht,zho,ze
 subs-fallback = yes

#blend-subtitles = yes
 sub-hdr-peak = 100

 sub-font = "LXGW WenKai Mono Lite"
 sub-font-size = 44
#sub-scale-with-window = no
 sub-scale-signs = yes
 sub-outline-size = 4
 sub-blur = 1
 sub-color = "#FFD766"
#sub-back-color = "#641C1C1C"
#sub-shadow-offset = 2
 sub-use-margins = yes

#sub-ass-use-video-data = aspect-ratio
#sub-ass-video-aspect-override  = 16:9

#sub-ass-override = force
#sub-ass-scale-with-window = yes
 sub-ass-force-margins = yes
#sub-ass-style-overrides = Fontname=LXGW WenKai Mono Lite

 image-subs-hdr-peak = 10000
#stretch-image-subs-to-screen = yes
#image-subs-video-resolution = yes


 ########
 # 截图 #
 ########

 screenshot-format = png

 screenshot-jpeg-quality = 100
#screenshot-jpeg-source-chroma = no
 screenshot-png-compression = 4
 screenshot-webp-lossless = yes
#screenshot-webp-quality = 100
#screenshot-webp-compression = 0
 screenshot-jxl-distance = 0

 screenshot-tag-colorspace = no
 screenshot-high-bit-depth = no
 screenshot-template = "~~desktop/MPV-%P-N%n"

