我的mpv配置
689 字
3 分钟
我的mpv配置
以下下是我的mpv配置,参考了mpv-lazy和mpv-config的配置,并添加了一些自己的习惯。
### 行首如果存在注释符号 "#" 则说明该项 “未启用”### 文档: https://github.com/hooke007/MPV_lazy/blob/main/portable_config/mpv.conf### 注意:当前预设下,选项 --volume --glsl-shaders 的关联属性已被全局追踪记录,移除缓存文件 saved-props.json 才能使其的更改生效################### 0. 基础与初始化 ###################input-conf = "~~/input_uosc.conf"include = "~~/profiles.conf"#include = "~~/script-opts.conf"#use-filedir-conf = yes#log-file = "~~desktop/mpv-lazy.log"
################### 1. 视频输出与硬件 ###################vo = gpu-nextgpu-context = waylandvkgpu-api = vulkanvulkan-async-transfer = yesvulkan-async-compute = yes#d3d11-exclusive-fs = yes#d3d11-flip = yeshwdec = vulkan,nvdec,nohwdec-codecs = h264,hevc,vp8,vp9,av1#d3d11-adapter = "NVIDIA GeForce RTX 2070 Super"#vulkan-device = "NVIDIA GeForce RTX 2070 Super"
################### 2. 播放行为与窗口 ###################title = ${?pause==yes:⏸}${?mute==yes:🔇}${?ontop==yes:📌}${?demuxer-via-network==yes:${media-title}}${?demuxer-via-network==no:${filename}}idle = yesinput-ime = no#input-ipc-server = mpvpipeinput-builtin-bindings = no#pause = yeshr-seek-framedrop = nosave-position-on-quit = yeswatch-later-options = start,vid,aid,sid#autocreate-playlist = samedirectory-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,wavkeep-open = yes#ontop = yes#title-bar = noautofit-smaller = 50%x50%#autofit-larger = 70%x70%keepaspect-window = yes#auto-window-resize = nohidpi-window-scale = no
################### 3. 缓存与性能 ###################demuxer-max-bytes = 512MiBdemuxer-max-back-bytes = 256MiBvd-lavc-dr = yes#icc-cache = noicc-cache-dir = "~~/_cache/icc"#gpu-shader-cache = nogpu-shader-cache-dir = "~~/_cache/shader"watch-later-dir = "~~/_cache/watch_later"
################### 4. OSD 界面显示 ####################osd-bar=noborder = noosd-on-seek = msg#osd-blur = 1osd-bar-w = 100osd-bar-h = 1osd-bar-align-y = -1osd-font = "Noto Sans Mono Medium"osd-font-size = 24#osd-color = "#672168"#osd-outline-color = "#EEEEEE"osd-outline-size = 0.8osd-fractions = yesosd-playing-msg = "${filename}"osd-duration = 2000osd-playing-msg-duration = 3000osd-status-msg = ${playback-time/full} / ${duration/full} (${percent-pos}%)\nframe: ${estimated-frame-number} / ${estimated-frame-count}
################### 5. 音频设置 ###################ao = pipewire#audio-device = "wasapi/{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"#audio-exclusive = yes#audio-spdif = ac3,dtsvolume = 80volume-max = 130audio-channels = stereoalang = jpn,eng,chs,sc,zh-cn,chi,zh,zh-tw,cht,zho,zeaudio-file-auto = fuzzy
################### 6. 视频画质与同步 ###################video-sync = display-resample#video-sync-max-video-change = 5interpolation = yestscale = oversample# ===== 色彩管理 =====icc-profile-auto = notarget-colorspace-hint = yes#target-prim = display-p3#target-trc = gamma2.2# ===== 缩放算法 =====cscale = spline36scale = spline36dscale = mitchellscale-antiring = 0.5sigmoid-upscaling = yescorrect-downscaling = no# ===== 后处理 =====dither-depth = no#deband = yesdeinterlace = auto# ===== HDR 相关 =====tone-mapping = hable#gamut-mapping-mode = cliphdr-peak-percentile = 99.99
################### 7. 脚本、滤镜与着色器 ###################vf-append = format=gamma=gamma2.2#load-stats-overlay = noosc = noytdl-raw-options-append = cookies-from-browser=chromeytdl-raw-options-append = sub-langs=-danmaku#load-scripts = no#glsl-shaders-append = "~~/shaders/AMD_FSR_EASU_rgb_RT.glsl"
################### 8. 字幕设置 #################### ===== 基础设置 =====sub-auto = fuzzysub-file-paths = sub;subtitlessub-codepage = GB18030slang = chs,sc,zh-cn,chi,zh,zh-tw,cht,zho,zesubs-fallback = yes# ===== 字体与渲染 =====sub-font = "Noto Sans CJK SC Regular"sub-font-size = 45#sub-scale-with-window = nosub-scale-signs = yessub-outline-size = 2sub-outline-color = "#5d93b7"sub-blur = 0sub-color = "#ffffffff"#sub-back-color = "#FFBF00"#sub-shadow-offset = 2sub-use-margins = yes# ===== ASS 样式覆盖 =====sub-ass-override = nosub-ass-style-overrides = Fontname="Noto Sans CJK SC Regular",Alignment=2,Fontsize=45,LineSpacing=0.8,Outline=1.2,Shadow=1,PrimaryColor=&H00FFFFFF&,SecondaryColor=&H000000FF&,OutlineColor=&H000D0E73&,BackColor=&H000D0E73&# ===== 高级选项与图形字幕 =====sub-ass-force-margins = yes#sub-ass-video-aspect-override = 16:9#stretch-image-subs-to-screen = yes#image-subs-video-resolution = yes#image-subs-hdr-peak = sdr# ===== 图形字幕部分 —— IDX SUB SUP =====stretch-image-subs-to-screen = noimage-subs-video-resolution = no
################### 9. 截图设置 ###################screenshot-template = '~/Pictures/mpv/%tY-%tm-%td_%tH-%tM-%tS'screenshot-format = webpscreenshot-png-compression = 8screenshot-png-filter = 5screenshot-webp-lossless = yesscreenshot-webp-compression = 6screenshot-high-bit-depth = yesscreenshot-jpeg-quality = 100screenshot-jpeg-source-chroma = yesscreenshot-jxl-distance = 0 # 0 代表数学无损screenshot-jxl-effort = 9 # 1-9,9最高screenshot-tag-colorspace = yes文章分享
如果这篇文章对你有帮助,欢迎分享给更多人!