init
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
### 该文件夹下存放mpv脚本的对应设置文件
|
||||
|
||||
通常脚本设置文件名与所属脚本文件同名,注意脚本文件名中的`-`默认需转译成`_`。实际以脚本开发者设定为准。
|
||||
|
||||
脚本设置文件切勿美化格式(例如加入无意义的空格);切勿在参数后注释(应单独另起一行写注释)。
|
||||
|
||||
脚本及其设置文件可能不支持windows的CRLF换行(尝试更改为LF)。
|
||||
|
||||
以上所述情况在自行修改的过程中都可能导致脚本设置文件(部分)失效。
|
||||
|
||||
以下为mpv内置脚本所使用的设置文件:
|
||||
|
||||
```
|
||||
console.conf
|
||||
osc.conf
|
||||
stats.conf
|
||||
ytdl_hook.conf
|
||||
```
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
# 设置自动保存文件播放进度及状态的时间间隔,单位为秒。默认值:60 秒
|
||||
save_interval=60
|
||||
# 设置文件播放进度的百分比,满足时自动删除文件播放进度及状态。默认值:99
|
||||
percent_pos=99
|
||||
@@ -0,0 +1,34 @@
|
||||
###不支持参数后注释,须另起一行
|
||||
|
||||
##禁用所有自动加载相关功能,默认:no
|
||||
#disabled=yes
|
||||
|
||||
##是否自动加载当前目录(不含子目录)所有图片到播放列表,默认:yes
|
||||
#images=no
|
||||
|
||||
##是否自动加载当前目录(不含子目录)所有视频到播放列表,默认:yes
|
||||
#videos=no
|
||||
|
||||
##是否自动加载当前目录(不含子目录)所有音频到播放列表,默认:yes
|
||||
#audio=no
|
||||
|
||||
##指定额外需要用于加载的图片、视频和音频扩展白名单
|
||||
additional_image_exts=jfif
|
||||
additional_video_exts=asf,f4v,rm,ts,vob
|
||||
additional_audio_exts=dsf,spx
|
||||
|
||||
##<auto|recursive|lazy|默认 ignore> 打开文件时,选择递归、懒惰或忽略全部子目录
|
||||
directory_mode=ignore
|
||||
|
||||
##是否掠过隐藏文件,默认:yes
|
||||
#ignore_hidden=no
|
||||
|
||||
##指定需要略过的文件名模式,多个模式之间用逗号分隔。默认值为空
|
||||
##支持 lua 模式写法,可使用 % 转义 ,
|
||||
#ignore_patterns=^~,^bak-,%.bak$
|
||||
|
||||
#是否只自动载入相同类型的文件(视频、音频、图片),默认:no
|
||||
same_type=yes
|
||||
|
||||
#是否只自动载入相似系列的文件,默认:no
|
||||
#same_series=yes
|
||||
@@ -0,0 +1,28 @@
|
||||
# 手动指定可执行文件的绝对路径,如果以下程序不存在于环境变量中
|
||||
|
||||
# 1. ffmpeg
|
||||
#ffmpeg_path=C:/Program Files/ffmpeg/bin/ffmpeg.exe
|
||||
ffmpeg_path=ffmpeg
|
||||
|
||||
# 2. ffsubsync
|
||||
#ffsubsync_path=C:/Program Files/ffsubsync/ffsubsync.exe
|
||||
#ffsubsync_path=/home/user/.local/bin/ffsubsync
|
||||
|
||||
# 3. alass
|
||||
#alass_path=C:/Program Files/ffmpeg/bin/alass.exe
|
||||
#alass_path=/usr/bin/alass
|
||||
##⇘⇘以下路径设置为在 mpv 程序所在的根目录下查找指定程序
|
||||
alass_path=alass
|
||||
|
||||
# 首选的字幕同步工具。允许选项:'ffsubsync','alass','ask'.
|
||||
# 如果设置为“ask”,脚本每次都会要求选择工具:
|
||||
|
||||
# 1. 用于与音频同步的首选工具。('ffsubsync','alass','ask')
|
||||
audio_subsync_tool=alass
|
||||
|
||||
# 2. 用于与字幕同步的首选工具。('ffsubsync','alass','ask')
|
||||
altsub_subsync_tool=alass
|
||||
|
||||
# 禁用原字幕 (yes,no)
|
||||
# 尝试字幕同步操作完成后,告诉 mpv 忽略原来的字幕轨道
|
||||
unload_old_sub=no
|
||||
@@ -0,0 +1,12 @@
|
||||
# 黑名单或白名单只需设置其中一种
|
||||
|
||||
# 白名单,只允许视频格式
|
||||
#whitelist=3gp,amr,amv,asf,avi,avi,bdmv,f4v,flv,ifo,iso,m2ts,m4v,mkv,mov,mp4,mpeg,mpg,ogv,rm,rmvb,ts,vob,webm,wmv
|
||||
|
||||
# 或者,视频附近常见的黑名单格式
|
||||
blacklist=mpls,mks,mka,weba,aqt,ass,gsub,idx,jss,lrc,mks,pgs,pjs,psb,rt,slt,smi,sub,sup,sbv,srt,ssa,ssf,ttxt,txt,usf,vt,vtt
|
||||
|
||||
remove_files_without_extension=yes
|
||||
|
||||
# 脚本仅在播放开始时生效,禁用则在播放列表更改时也会生效
|
||||
oneshot=no
|
||||
@@ -0,0 +1,29 @@
|
||||
#是否启用自动读取并加载外部章节文件。默认:yes
|
||||
autoload=yes
|
||||
#是否启用自动导出章节文件 (当章节信息更改后)。默认:no
|
||||
autosave=no
|
||||
#是否使用外部章节信息覆盖视频内部章节信息。默认:no
|
||||
force_overwrite=no
|
||||
#指定外部章节文件的标识及扩展名
|
||||
chapter_file_ext=.chp
|
||||
#选择外部章节文件是否需要匹配源文件的扩展名。默认:yes
|
||||
basename_with_ext=yes
|
||||
#从视频文件同目录下的指定子目录读取外部章节文件
|
||||
#注意:脚本优先从指定的子目录读取外部章节文件
|
||||
#当子目录的文件不存在时会继续尝试在视频文件同目录中读取外部章节文件
|
||||
external_chapter_subpath=chapters
|
||||
#是否将章节文件统一存储在配置的全局目录中,网络文件将始终使用全局目录。默认:no
|
||||
global_chapters=no
|
||||
#指定章节文件的全局目录的路径。可以是 mpv 支持的相对路径或绝对路径
|
||||
global_chapters_dir=~~/files/chapters
|
||||
#是否在全局目录中使用哈希值保存章节文件名。默认:no
|
||||
##如果设置为'no',章节文件将以相应的媒体文件命名,可能会导致冲突
|
||||
##使用哈希可防止同名但位于不同目录中的媒体文件获取相同的章节文件
|
||||
##但如果您将文件移动到不同的目录,哈希值将更改导致无法加载章节文件
|
||||
hash=no
|
||||
#设置创建新章节时是否默认打开重命名输入功能。默认:yes
|
||||
ask_for_title=yes
|
||||
#设置询问新章节标题时的占位符名称
|
||||
placeholder_title=Chapter
|
||||
#设置询问章节标题时是否暂停播放。默认:yes
|
||||
pause_on_input=yes
|
||||
@@ -0,0 +1,8 @@
|
||||
# 是否启用自动跳过。默认:no
|
||||
enabled=no
|
||||
# 每个章节名仅跳过一次。默认:yes
|
||||
skip_once=yes
|
||||
# 章节名匹配规则(Lua 正则)
|
||||
categories=opening>^OP/ OP$/^[Oo]pening/[Oo]pening$/^Intro%s*Start/オープニング$/^片头$/片头开始$; ending>^ED/ ED$/^[Ee]nding/[Ee]nding$/エンディング$; credits>^[Cc]redits/[Cc]redits$; prologue>^[Pp]rologue/^[Ii]ntro$; preview>[Pp]review$/^[Pp]review/予告$/預告$; PartAB>Part [AB]/Ending 1; PartC>Part C
|
||||
# 需要跳过的章节类别
|
||||
skip=opening;ending;credits;prologue;preview
|
||||
@@ -0,0 +1,8 @@
|
||||
#指定命令面板的字体大小,默认值:16
|
||||
font_size=26
|
||||
#指定字体大小是否随窗口大小缩放,默认值:no
|
||||
scale_by_window=yes
|
||||
#指定命令面板的菜单项的显示数量,默认值:12
|
||||
lines_to_show=12
|
||||
#指定是否在打开命令面板时暂停播放,默认值:no
|
||||
pause_on_open=yes
|
||||
@@ -0,0 +1,6 @@
|
||||
###此配置不支持参数后注释,须另起一行
|
||||
|
||||
# 是否将命令历史记录保存到文件并加载它。默认:no
|
||||
persist_history=yes
|
||||
# 命令历史记录文件的路径。默认:~~state/command_history.txt
|
||||
history_path=~~/files/command_history.txt
|
||||
@@ -0,0 +1,37 @@
|
||||
###此配置不支持参数后注释,须另起一行
|
||||
|
||||
# 指定控制台显示补全时使用的等宽字体。其他情况使用 --osd-font
|
||||
#monospace_font=Noto Sans Mono CJK SC
|
||||
# 字体大小默认 24。最终大小将与缩放率相乘
|
||||
#font_size=24
|
||||
# 设置用于 REPL 和控制台的字体边框大小。默认值:1.32
|
||||
border_size=1.3
|
||||
# 菜单背景的透明度。范围从 0(不透明)到 255(完全透明)。默认值:80
|
||||
background_alpha=50
|
||||
# 菜单的内边距。默认值:10
|
||||
#padding=10
|
||||
# 菜单边框的大小。默认值:0
|
||||
#menu_outline_size=0
|
||||
# 菜单边框的颜色。默认值:#FFFFFF
|
||||
#menu_outline_color=#FFFFFF
|
||||
# 菜单的圆角半径。默认值:8
|
||||
#orner_radius=8
|
||||
# 菜单所选项的颜色。默认值:#222222
|
||||
#selected_color=#222222
|
||||
# 菜单所选项的背景颜色。默认值:#FFFFFF
|
||||
#selected_back_color=#FFFFFF
|
||||
# 与搜索字符串匹配的字符的颜色。默认值:#0088FF
|
||||
#match_color=#0088FF
|
||||
# 是否使用窗口高度缩放控制台。可以是 yes、no 或 auto,取决于--osd-scale-by-window 选项。默认值:auto
|
||||
#scale_with_window=auto
|
||||
# 查询时是否使用精确搜索而非模糊搜索,默认值:no
|
||||
# 在查询前加上 ' 字符可强制启用精确匹配
|
||||
#exact_match=no
|
||||
# 设置 Tab 自动补全是否区分大小写。仅适用于 ASCII 字符
|
||||
## 默认值:在 Windows 上为 no,在其他平台上为 yes
|
||||
#case_sensitive=no
|
||||
# 删除历史记录中的重复条目,以便仅保留最新的条目。默认:yes
|
||||
history_dedup=yes
|
||||
# 设置字体高度与字体宽度的比率,调整完成建议的表格宽度。默认值:auto
|
||||
## 1.8-2.5 范围内的值对于常见的等宽字体有用
|
||||
#font_hw_ratio=auto
|
||||
@@ -0,0 +1,14 @@
|
||||
##! 注意这个菜单脚本只支持 windows 系统
|
||||
## 指定是否使用 mpv 内部的上下文菜单实现。默认值为 yes
|
||||
## 需使用包含上游提交 https://github.com/mpv-player/mpv/commit/3c1e983 的 mpv 版本
|
||||
use_mpv_impl=no
|
||||
### 指定是否启用 uosc 的菜单语法支持。与默认支持的 mpv.net 菜单语法不兼容,但是可以使用 uosc 的菜单语法。默认值为 no
|
||||
uosc_syntax=yes
|
||||
## 指定是否启用菜单标题转义。默认值为 yes
|
||||
escape_title=yes
|
||||
## 指定菜单标题的最大长度。默认值为 80。如果标题长度超过这个值,将会被截断
|
||||
## 设为 0 表示不限制标题长度
|
||||
max_title_length=80
|
||||
## 指定播放列表菜单项的最大数量。默认值为 20
|
||||
## 设为 0 表示禁用播放列表菜单
|
||||
max_playlist_items=20
|
||||
@@ -0,0 +1,35 @@
|
||||
# 脚本键位按下时要跳多远
|
||||
seek_distance=5
|
||||
|
||||
# 播放速度调整量,每 'speed_interval' 应用一次,直到达到上限
|
||||
speed_increase=0.1
|
||||
speed_decrease=0.1
|
||||
|
||||
# 以什么间隔应用速度调整量
|
||||
speed_interval=0.05
|
||||
|
||||
# 播放速度上限
|
||||
speed_cap=3
|
||||
|
||||
# 显示字幕时的播放速度上限,'no' 表示与 'speed_cap' 相同
|
||||
subs_speed_cap=1.5
|
||||
|
||||
# 调整前将当前速度乘以速度调整量(指数加速)。默认:no
|
||||
# 使用比默认值低得多的值,例如 speed_increase=0.05, speed_decrease=0.025
|
||||
multiply_modifier=no
|
||||
|
||||
# 在 OSD 上显示当前速度(如果使用 uosc,则闪烁显示速度)。默认:yes
|
||||
show_speed=yes
|
||||
|
||||
# 速度切换时在 OSD 上显示当前速度(如果使用 uosc,则闪烁显示速度)。默认:yes
|
||||
show_speed_toggled=yes
|
||||
|
||||
# 在 osd 上显示搜索操作(如果使用 uosc,则闪烁显示时间线)。默认:yes
|
||||
show_seek=yes
|
||||
|
||||
# 设置 'subs_speed_cap' 项时提前查看以实现更平滑的过渡。默认:no
|
||||
subs_lookahead=no
|
||||
|
||||
# 设置 osd 消息显示的符号,示例即默认值
|
||||
#osd_symbol={\fnmpv-osd-symbols} {\r}
|
||||
#osd_rewind={\fnmpv-osd-symbols} {\r}
|
||||
@@ -0,0 +1,193 @@
|
||||
[
|
||||
{
|
||||
"key": "WHEEL_UP",
|
||||
"command": ["script-binding", "file_browser/dynamic/scroll_up"]
|
||||
},
|
||||
{
|
||||
"key": "WHEEL_DOWN",
|
||||
"command": ["script-binding", "file_browser/dynamic/scroll_down"]
|
||||
},
|
||||
{
|
||||
"key": "MBTN_LEFT",
|
||||
"command": ["script-binding", "file_browser/dynamic/down_dir"]
|
||||
},
|
||||
{
|
||||
"key": "MBTN_RIGHT",
|
||||
"command": ["script-binding", "file_browser/dynamic/up_dir"]
|
||||
},
|
||||
{
|
||||
"key": "MBTN_MID",
|
||||
"command": ["script-binding", "file_browser/dynamic/play"]
|
||||
},
|
||||
|
||||
{
|
||||
"key": "KP1",
|
||||
"command": ["print-text", "files: %n"],
|
||||
"filter": "file",
|
||||
"multiselect": true,
|
||||
"multi-type": "concat",
|
||||
"concat-string": "\n"
|
||||
},
|
||||
{
|
||||
"key": "KP1",
|
||||
"command": ["print-text", "directories: %n"],
|
||||
"filter": "dir",
|
||||
"multiselect": true,
|
||||
"multi-type": "concat",
|
||||
"concat-string": "\n"
|
||||
},
|
||||
{
|
||||
"key": "KP1",
|
||||
"command": ["print-text", "%f"],
|
||||
"passthrough": true,
|
||||
"name": "thing"
|
||||
},
|
||||
{
|
||||
"key": "KP2",
|
||||
"command": ["print-text", "name: %n"],
|
||||
"multiselect": true
|
||||
},
|
||||
{
|
||||
"key": "KP3",
|
||||
"command": ["print-text", "open directory: %p"]
|
||||
},
|
||||
{
|
||||
"key": "KP4",
|
||||
"command": ["print-text", "directory name: %d"]
|
||||
},
|
||||
{
|
||||
"key": "KP5",
|
||||
"command": ["print-text", "escape the code: %%f"],
|
||||
"multiselect": true
|
||||
},
|
||||
{
|
||||
"key": "KP6",
|
||||
"command": ["print-text", "full filepath via concatenation: %p%n"],
|
||||
"multiselect": true
|
||||
},
|
||||
{
|
||||
"key": "KP7",
|
||||
"command": ["print-text", "quote/escape filepath: %F"],
|
||||
"multiselect": true
|
||||
},
|
||||
{
|
||||
"key": "KP8",
|
||||
"command": ["print-text", "%r"]
|
||||
},
|
||||
|
||||
{
|
||||
"key": "Alt+DEL",
|
||||
"command": ["run", "powershell", "-command", "rm", "%F"],
|
||||
"filter": "file",
|
||||
"multiselect": true,
|
||||
"multi-type": "concat"
|
||||
},
|
||||
{
|
||||
"key": "Ctrl+ENTER",
|
||||
"command": ["run", "powershell", "-command", "mpv.exe", "%F"],
|
||||
"multiselect": true,
|
||||
"multi-type": "concat"
|
||||
},
|
||||
{
|
||||
"key": "Ctrl+c",
|
||||
"command": [
|
||||
["run", "powershell", "-command", "Set-Clipboard", "%F"],
|
||||
["print-text", "copied filepath to clipboard"]
|
||||
],
|
||||
"multiselect": true,
|
||||
"delay": 0.3
|
||||
},
|
||||
{
|
||||
"key": "Ctrl+v",
|
||||
"command": ["run", "powershell", "-command", "cp", "-LiteralPath", "(Get-Clipboard)", "%P"],
|
||||
"multiselect": false
|
||||
},
|
||||
{
|
||||
"key": "Ctrl+x",
|
||||
"command": ["run", "powershell", "-command", "mv", "-LiteralPath", "(Get-Clipboard)", "%P"],
|
||||
"multiselect": false
|
||||
},
|
||||
{
|
||||
"key": "INS",
|
||||
"command": ["run", "powershell", "-command", "Set-Content", "-LiteralPath", "( %P + '/.ordered-chapters.m3u' )", "-Value", "( %N )"],
|
||||
"multiselect": true,
|
||||
"multi-type": "concat",
|
||||
"concat-string": "+'\n'+"
|
||||
},
|
||||
{
|
||||
"key": "Ctrl+INS",
|
||||
"command": ["run", "powershell", "-command", "rm", "-LiteralPath", "( %P + '/.ordered-chapters.m3u' )", "-Force"],
|
||||
"multiselect": false
|
||||
},
|
||||
{
|
||||
"key": "Ctrl+o",
|
||||
"command": ["run", "powershell", "-command", "explorer.exe", "(( %P ).TrimEnd('/') -replace '/', '\\' )"],
|
||||
"multiselect": false
|
||||
},
|
||||
{
|
||||
"key": "Ctrl+O",
|
||||
"command": ["run", "powershell", "-command", "explorer.exe", "(( %F ).TrimEnd('/') -replace '/', '\\' )"],
|
||||
"filter": "dir",
|
||||
"multiselect": true
|
||||
},
|
||||
{
|
||||
"key": "Ctrl+O",
|
||||
"command": ["run", "powershell", "-command", "explorer.exe", "'/select,'", "( %F -replace '/', '\\' )"],
|
||||
"filter": "file",
|
||||
"multiselect": true
|
||||
},
|
||||
{
|
||||
"key": "Ctrl+o",
|
||||
"command": ["run", "powershell", "-command", "& 'C:/Program Files/Mozilla Firefox/firefox.exe' %P"],
|
||||
"multiselect": false,
|
||||
"parser": "ftp"
|
||||
},
|
||||
{
|
||||
"key": "Ctrl+O",
|
||||
"command": ["run", "powershell", "-command", "& 'C:/Program Files/Mozilla Firefox/firefox.exe' %F"],
|
||||
"filter": "dir",
|
||||
"multiselect": true,
|
||||
"parser": "ftp"
|
||||
},
|
||||
{
|
||||
"key": "DEL",
|
||||
"command": [
|
||||
["run", "powershell", "-command", "(New-Object -ComObject 'Shell.Application').NameSpace(0).ParseName((%F -replace '/', '\\' )).InvokeVerb('delete')"],
|
||||
["script-message", "delay-command", "4", "script-binding", "file_browser/dynamic/reload"],
|
||||
["show-text", "删除 %f"]
|
||||
],
|
||||
"multiselect": true,
|
||||
"multi-type": "repeat"
|
||||
},
|
||||
|
||||
{
|
||||
"key": "F",
|
||||
"command": ["script-message", "favourites/add_favourite", "%f"]
|
||||
},
|
||||
{
|
||||
"key": "F",
|
||||
"command": ["script-message", "favourites/remove_favourite", "%f"],
|
||||
"parser": "favourites"
|
||||
},
|
||||
{
|
||||
"key": "Ctrl+UP",
|
||||
"command": [
|
||||
["script-message", "favourites/move_up", "%f"]
|
||||
],
|
||||
"parser": "favourites"
|
||||
},
|
||||
{
|
||||
"key": "Ctrl+DOWN",
|
||||
"command": [
|
||||
["script-message", "favourites/move_down", "%f"]
|
||||
],
|
||||
"parser": "favourites"
|
||||
},
|
||||
{
|
||||
"key": "Ctrl+r",
|
||||
"command": [
|
||||
["script-message", "winroot/import_root_drives"]
|
||||
],
|
||||
"parser": "root"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,3 @@
|
||||
##指定在file-browser文件浏览器中需隐藏的目录,以逗号分隔
|
||||
##示例:F:/$RECYCLE.BIN/
|
||||
paths=
|
||||
@@ -0,0 +1,238 @@
|
||||
#######################################################
|
||||
# This is the default config file for mpv-file-browser
|
||||
# https://github.com/CogentRedTester/mpv-file-browser
|
||||
#######################################################
|
||||
|
||||
# root 目录,以逗号分隔
|
||||
# on linux,你可能想要添加"/",
|
||||
# on windows,这应该用于添加不同的驱动器号
|
||||
# Examples:
|
||||
# linux:
|
||||
# root=~/,/
|
||||
# windows:
|
||||
# root=~/,C:/
|
||||
root=~/
|
||||
|
||||
# characters 单独的根目录,每个字符单独工作
|
||||
# 以防万一个人使用具有奇怪名称的目录
|
||||
root_separators=,
|
||||
|
||||
# 要同时显示在屏幕上的条目数量
|
||||
num_entries=20
|
||||
|
||||
# 要保留历史记录的目录数,大小为 0 时禁用历史记录
|
||||
history_size=100
|
||||
|
||||
# 目录是否循环滚动,默认 yes
|
||||
wrap=yes
|
||||
|
||||
# 是否启用插件,默认:no
|
||||
addons=yes
|
||||
|
||||
# 启用自定义键绑定
|
||||
# he keybind json 文件必须位于 ~~/script-opts
|
||||
custom_keybinds=yes
|
||||
|
||||
# 自动检测 Windows 驱动器并将其添加到根目录
|
||||
# 在根目录下使用 Ctrl+r 会运行另一次扫描
|
||||
auto_detect_windows_drives=yes
|
||||
|
||||
# 当空闲模式下打开浏览器时,首选当前工作目录而不是根目录
|
||||
# 工作目录无论如何都被设置为"当前"目录,因此播放时浏览器将自动定位至当前工作目录,即使此选项设置为 no
|
||||
default_to_working_directory=no
|
||||
|
||||
# 打开浏览器时,更喜欢由文件浏览器的先前 MPV 实例打开的目录
|
||||
# 覆盖`default_to_working_directory`选项
|
||||
# 需要`save_last_opened_directory`为 yes
|
||||
# 使用内部开放的 `last-opened-directory` 插件
|
||||
default_to_last_opened_directory=no
|
||||
|
||||
# 是否保存最后一个打开的目录
|
||||
save_last_opened_directory=no
|
||||
|
||||
# 播放文件更改时,将光标移至当前播放项目(如果有)
|
||||
cursor_follows_playing_item=no
|
||||
|
||||
####################################
|
||||
########## filter settings #########
|
||||
####################################
|
||||
|
||||
# 只在浏览器中显示与 mpv 兼容的文件
|
||||
filter_files=yes
|
||||
|
||||
# file 浏览器仅显示默认情况下与 mpv 兼容的文件
|
||||
# 加入此列表中的文件扩展名将将其添加到扩展名白名单中
|
||||
# 用根分隔符分隔,请勿使用任何空格
|
||||
extension_whitelist=amv;bdmv;ifo;iso
|
||||
|
||||
# 加入此列表的文件扩展名以禁用默认文件类型
|
||||
# 这将覆盖上面以及下面所有的白名单选项
|
||||
#extension_blacklist=mpls
|
||||
|
||||
# 加入此列表中的文件扩展名将会添加到外挂音轨扩展名白名单中
|
||||
# 用根分隔符分隔,请勿使用任何空格
|
||||
audio_extensions=mka,dts,dtshd,dts-hd,truehd,true-hd,flac
|
||||
|
||||
# 加入此列表中的文件扩展名将会添加到字幕扩展名白名单中
|
||||
# 用根分隔符分隔,请勿使用任何空格
|
||||
subtitle_extensions=etf,etf8,utf-8,idx,sub,srt,rt,ssa,ass,mks,vtt,sup,scc,smi,lrc,pgs
|
||||
|
||||
# 过滤 .config 等以 '.' 开头的目录或文件
|
||||
# 用于 linux 系统
|
||||
#filter_dot_dirs=no
|
||||
#filter_dot_files=no
|
||||
|
||||
####################################
|
||||
###### file loading settings #######
|
||||
####################################
|
||||
|
||||
# 这个选项可反转 alt+ENTER 键绑定的行为
|
||||
# 当禁用密钥绑定,则需要为文件启用自动加载
|
||||
# 当启用键绑定将禁用文件的自动加载
|
||||
autoload=no
|
||||
|
||||
# 启用在将项目追加到播放列表时同时递归目录的功能(实验性),默认值:no
|
||||
# 此功能在将插件与异步 IO 结合使用时具有巨大的性能改进潜力
|
||||
concurrent_recursion=yes
|
||||
|
||||
# 可以并发运行的最大递归数量
|
||||
# 如果此数字太高,则可能会使 mpv 事件队列溢出,从而导致某些目录被完全丢弃,默认值:16
|
||||
max_concurrency=16
|
||||
|
||||
# 将本地文件追加到播放列表时,用正斜杠代替反斜杠
|
||||
# 在 Windows 系统上可能有用,默认值:no
|
||||
substitute_backslash=no
|
||||
|
||||
# 如果通过选择当前播放的文件触发自动加载,则当前文件在关闭和重新打开之前将保存其稍后观看的配置
|
||||
# 禁用时当前文件将不会重新启动
|
||||
autoload_save_current=yes
|
||||
|
||||
####################################
|
||||
### directory parsing settings #####
|
||||
####################################
|
||||
|
||||
# 目录缓存用于提高目录读取速度,
|
||||
# 如果加载目录需要较长时间,可以启用此功能。
|
||||
# 但可能会导致显示“幽灵”文件(已删除但仍然存在)
|
||||
# 或者无法显示最近创建的文件。
|
||||
# 使用 Ctrl+r 重新加载目录时不会使用缓存。
|
||||
# 使用 Ctrl+Shift+r 可强制清除缓存。
|
||||
cache=no
|
||||
|
||||
# 启用内部 `ls` 插件,该插件使用 `ls` 命令解析目录。
|
||||
# 允许目录解析并行运行,从而防止浏览器卡顿。
|
||||
# 在 Windows 系统上会自动禁用此功能。
|
||||
ls_parser=yes
|
||||
|
||||
# 启用内部 `windir` 插件,该插件使用 cmd.exe 中的 `dir` 命令解析目录。
|
||||
# 允许目录解析并行运行,从而防止浏览器卡顿。
|
||||
# 在非 Windows 系统上会自动禁用此功能。
|
||||
windir_parser=no
|
||||
|
||||
# 向上移动目录时,不要停止在空协议方案上,例如 `ftp://`
|
||||
# 例如从 `ftp://localhost/` 向上移动将直接移动到根目录,而不是 `ftp://`
|
||||
skip_protocol_schemes=yes
|
||||
|
||||
# 将光盘的驱动路径映射到它们各自的文件路径
|
||||
# 例如,将 bd:// 映射到 bluray-device 属性的值
|
||||
map_bd_device=yes
|
||||
map_dvd_device=yes
|
||||
map_cdda_device=yes
|
||||
|
||||
####################################
|
||||
########## misc settings ###########
|
||||
####################################
|
||||
|
||||
# 是否启用脚本信息来控制空闲屏幕上的徽标文字的显示
|
||||
toggle_idlescreen=no
|
||||
|
||||
# 将路径中的反斜杠 '\' 解释为正斜杠 '/'
|
||||
# 这在 Windows 上很有用,因为 Windows 本身使用反斜杠。
|
||||
# 由于反斜杠是 Unix 系统中有效的文件名字符,因此可能导致路径损坏,但此类文件名很少见
|
||||
# 使用"yes"和"no"启用/禁用。"auto"尝试使用 MPV 的 "platform" 该属性(mpv v0.36+)来决定
|
||||
# 如果该属性不可用,则默认为 "yes"
|
||||
normalise_backslash=auto
|
||||
|
||||
# 在`user-data`属性的`file_browser/open`字段中设置浏览器当前的打开状态
|
||||
# 此属性仅在 mpv v0.36+ 中可用
|
||||
set_user_data=yes
|
||||
|
||||
# 在`shared-script-properties`属性的`file_browser-open`字段中设置浏览器当前的打开状态
|
||||
# 该属性已被弃用
|
||||
set_shared_script_properties=no
|
||||
|
||||
####################################
|
||||
########## file overrides #########
|
||||
####################################
|
||||
|
||||
# directory 加载外部模块
|
||||
module_directory=~~/script-modules
|
||||
addon_directory=~~/script-modules/file-browser-addons
|
||||
custom_keybinds_file=~~/script-opts/file-browser-keybinds.json
|
||||
last_opened_directory_file=~~/files/file_browser-last_opened_directory
|
||||
|
||||
|
||||
####################################
|
||||
######### style settings ###########
|
||||
####################################
|
||||
|
||||
# 用"~/"在标题中替换用户的主目录,使用内部标签插件实现
|
||||
home_label=yes
|
||||
|
||||
# 设置文件浏览器以使用特定的文本对齐方式(默认:左上角)
|
||||
# 使用 ASS 标签对齐编号:https://aegi.vmoe.info/docs/3.0/ASS_Tags/#index23h3
|
||||
# 设置为 'auto' 以使用默认的 mpv osd 对齐选项
|
||||
# 选项:'auto'|'top'|'center'|'bottom'
|
||||
align_y=top
|
||||
# 选项: 'auto'|'left'|'center'|'right'
|
||||
align_x=left
|
||||
|
||||
# 用于标头的格式字符串。使用自定义键绑定替换代码
|
||||
# 动态更改标头的内容。请参阅:docs/custom-keybinds.md#codes
|
||||
# 例如,要添加文件编号请将其设置为: {\fnMonospace}[%i/%x]{\fn<font_name_header or blank>} %q\N----------------------------------------------------
|
||||
format_string_header=%q\N----------------------------------------------------
|
||||
|
||||
# 用于包装器的格式字符串。支持自定义键绑定替换代码,以及支持两个附加代码:'%<'和'%>',分别显示可见列表前后的项数
|
||||
# 将这些选项设置为空字符串将禁用包装器
|
||||
format_string_topwrapper=%< 项 覆盖\N
|
||||
format_string_bottomwrapper=\N%> 项 剩余
|
||||
|
||||
# 允许为光标和文件夹自定义图标,可以为矢量图形或 Unicode 字形。示例即为默认设置(矢量图形)
|
||||
#folder_icon={\p1}m 6.52 0 l 1.63 0 b 0.73 0 0.01 0.73 0.01 1.63 l 0 11.41 b 0 12.32 0.73 13.05 1.63 13.05 l 14.68 13.05 b 15.58 13.05 16.31 12.32 16.31 11.41 l 16.31 3.26 b 16.31 2.36 15.58 1.63 14.68 1.63 l 8.15 1.63{\p0}\h
|
||||
#cursor_icon={\p1}m 14.11 6.86 l 0.34 0.02 b 0.25 -0.02 0.13 -0 0.06 0.08 b -0.01 0.16 -0.02 0.28 0.04 0.36 l 3.38 5.55 l 3.38 5.55 3.67 6.15 3.81 6.79 3.79 7.45 3.61 8.08 3.39 8.5l 0.04 13.77 b -0.02 13.86 -0.01 13.98 0.06 14.06 b 0.11 14.11 0.17 14.13 0.24 14.13 b 0.27 14.13 0.31 14.13 0.34 14.11 l 14.11 7.28 b 14.2 7.24 14.25 7.16 14.25 7.07 b 14.25 6.98 14.2 6.9 14.11 6.86{\p0}\h
|
||||
#cursor_icon_flipped={\p1}m 0.13 6.86 l 13.9 0.02 b 14 -0.02 14.11 -0 14.19 0.08 b 14.26 0.16 14.27 0.28 14.21 0.36 l 10.87 5.55 l 10.87 5.55 10.44 6.79 10.64 8.08 10.86 8.5l 14.21 13.77 b 14.27 13.86 14.26 13.98 14.19 14.06 b 14.14 14.11 14.07 14.13 14.01 14.13 b 13.97 14.13 13.94 14.13 13.9 14.11 l 0.13 7.28 b 0.05 7.24 0 7.16 0 7.07 b 0 6.98 0.05 6.9 0.13 6.86{\p0}\h
|
||||
|
||||
# 设置字体的不透明度(十六进制),从 00(不透明)到 FF(透明)
|
||||
font_opacity_selection_marker=99
|
||||
|
||||
# 页眉使用粗体
|
||||
font_bold_header=yes
|
||||
|
||||
# 指定缩放浏览器的大小;2 会使大小增加一倍,0.5 会将其减半,依此类推。
|
||||
# header 和 wrappers 相对于 base 的大小进行缩放
|
||||
scaling_factor_base=1
|
||||
scaling_factor_header=1.4
|
||||
scaling_factor_wrappers=0.64
|
||||
|
||||
# 自定义字体名称,默认值为空白
|
||||
# 设置文件夹/光标的自定义字体可以修复损坏或丢失的图标
|
||||
#font_name_header=
|
||||
font_name_body=Noto Sans CJK SC,Noto Color Emoji
|
||||
#font_name_wrappers=
|
||||
#font_name_folder=
|
||||
#font_name_cursor=
|
||||
|
||||
# 自定义字体颜色
|
||||
# colours 采用十六进制格式,按蓝绿色红色顺序排列
|
||||
# 这与大多数 RGB 颜色代码的顺序相反
|
||||
font_colour_header=00ccff
|
||||
font_colour_body=ffffff
|
||||
font_colour_wrappers=00ccff
|
||||
font_colour_cursor=00ccff
|
||||
font_colour_escape_chars=413eff
|
||||
|
||||
# 以下选项是应用于不同状态的列表项的颜色
|
||||
font_colour_selected=fce788
|
||||
font_colour_multiselect=fcad88
|
||||
font_colour_playing=33ff66
|
||||
font_colour_playing_multiselected=22b547
|
||||
@@ -0,0 +1,15 @@
|
||||
# 指定脚本的工作方式,有三种模式可选:noth、pass、switch。默认值:noth
|
||||
## noth:什么也不做
|
||||
## pass:当显示器处于 HDR 模式时,为 HDR 内容传递 HDR 信号
|
||||
## switch:根据 mpv 播放的视频内容在显示器的 HDR 模式和 SDR 模式之间自动切换,在 Windows 10 及更高版本的系统上可用
|
||||
hdr_mode=noth
|
||||
# 指定是否仅在全屏或窗口最大化时自动切换 HDR 模式。仅在 hdr_mode=switch 时生效,默认值:no
|
||||
fullscreen_only=no
|
||||
# 用于指定你的 HDR 显示器的目标峰值,默认值:203
|
||||
#! 提醒:此项必须指定显示器的真实峰值亮度,否则会导致 HDR 内容显示不正确。默认值 203 会视为 SDR 显示器处理
|
||||
target_peak=203
|
||||
# 用于指定你的 HDR 显示器的最大对比度数值,默认值:auto,即无限对比度(OLED)
|
||||
#! 提醒:此项必须指定为显示器的最大对比度,否则无法正确实施黑位补偿
|
||||
## 例如 100000 表示显示器最大对比度为 100000:1
|
||||
## OLED 显示器无需更改此项,使用默认值即可
|
||||
target_contrast=auto
|
||||
@@ -0,0 +1,7 @@
|
||||
#是否使用外部配置文件设置增强式键位动作,默认:no
|
||||
enable_external_config=yes
|
||||
#指定外部配置文件的路径,可以是 mpv 支持的相对路径或绝对路径
|
||||
#注意:启用外部配置文件功能时请确保该文件存在
|
||||
external_config=~~/inputevent_key.conf
|
||||
#指定键位事件的识别前缀,默认:event
|
||||
prefix=event
|
||||
@@ -0,0 +1,83 @@
|
||||
#choose a layout(reduced/original/mid)
|
||||
#layout=original
|
||||
|
||||
#show OSC when windowed? yes/no
|
||||
#showwindowed=
|
||||
|
||||
#show OSC when fullscreen? yes/no
|
||||
#showfullscreen=
|
||||
|
||||
#scaling of the controller when windowed
|
||||
scalewindowed=1
|
||||
|
||||
#scaling of the controller when fullscreen
|
||||
scalefullscreen=1
|
||||
|
||||
#scaling when rendered on a forced window
|
||||
scaleforcedwindow=1.5
|
||||
|
||||
#scale the controller with the video? yes/no
|
||||
#vidscale=
|
||||
|
||||
#duration in ms until the OSC hides if no mouse movement. enforced non-negative for the user but internally negative is 'always-on'.
|
||||
#hidetimeout=500
|
||||
|
||||
#duration of fade out in ms 0=no fade
|
||||
#fadeduration=200
|
||||
|
||||
#minimum amount of pixels the mouse has to move between ticks to make the OSC show up
|
||||
#minmousemove=3
|
||||
|
||||
#use native mpv values and disable OSC internal track list management (and some functions that depend on it) yes/no
|
||||
#amaprogrammer=
|
||||
|
||||
#default osc font
|
||||
#font='mpv-osd-symbols'
|
||||
|
||||
#show seekrange overlay yes/no
|
||||
#seekrange=
|
||||
|
||||
#color of seekbar and knot,there is no # before value
|
||||
#seekbarfg_color="7FFFD4"
|
||||
|
||||
#transparency of seekranges
|
||||
seekrangealpha=128
|
||||
|
||||
#use keyframes when dragging the seekbar yes/no
|
||||
#seekbarkeyframes=
|
||||
|
||||
#string compatible with property-expansion to be shown as OSC title
|
||||
#title='${media-title}'
|
||||
|
||||
#show osc and no hide timeout on pause yes/no
|
||||
showonpause=no
|
||||
|
||||
#display timecodes with milliseconds yes/no
|
||||
#timems=false
|
||||
|
||||
#display total time instead of remaining time? yes/no
|
||||
#timetotal=no
|
||||
|
||||
#how mpv logo on idle
|
||||
#idlescreen=yes
|
||||
|
||||
#only used at init to set visibility_mode(...) auto/always/never
|
||||
#visibility=always
|
||||
|
||||
#whether to show window controls auto/yes/no
|
||||
#windowcontrols=
|
||||
|
||||
#whether to show mute button and volumne slider yes/no
|
||||
#volumecontrol=
|
||||
|
||||
#volume bar show processd volume yes/no
|
||||
#processvolume=
|
||||
|
||||
#eng=English chs=Chinese eng/chs
|
||||
#language=chs
|
||||
|
||||
#alpha of the background box,0 (opaque) to 255 (fully transparent)
|
||||
boxalpha=128
|
||||
|
||||
#hight of deadzone,from bottom to top
|
||||
#deadzone=200
|
||||
@@ -0,0 +1,11 @@
|
||||
##指定 TorrServer HTTP 地址,示例为默认值
|
||||
server=http://localhost:8090
|
||||
##指定是否启用 TorrServer 初始化。默认值:no
|
||||
#! 仅当 TorrServer 位于同一台设备上且未设置自启动时,才需要启用此选项
|
||||
torrserver_init=no
|
||||
##指定 TorrServer 路径,示例为默认值。可以为相对路径(已设置环境变量)或绝对路径
|
||||
##需自行安装 TorrServer,详见:https://github.com/YouROK/TorrServer
|
||||
#! 仅当 torrserver_init=yes 时,才需要设置此选项
|
||||
torrserver_path=TorrServer
|
||||
##指定是否查找可能的外部轨道(音轨、字幕)。默认值:yes
|
||||
search_for_external_tracks=yes
|
||||
@@ -0,0 +1,5 @@
|
||||
# options to pass to wget
|
||||
## 设置 mpv 需全局记忆的选项状态
|
||||
properties=volume
|
||||
## 保存文件路径
|
||||
properties_path=files/persistent_config.json
|
||||
@@ -0,0 +1,157 @@
|
||||
###此配置不支持在激活的参数后进行注释,如有注释需求应另起一行
|
||||
|
||||
#### ------- Mpv-Playlistmanager configuration ------- ####
|
||||
|
||||
#### ------- FUNCTIONAL ------- ####
|
||||
|
||||
#navigation 键绑定仅在播放列表可见时强制覆盖
|
||||
#设置"no",则可以通过任何导航键显示播放列表
|
||||
dynamic_binds=yes
|
||||
|
||||
#主菜单键位绑定
|
||||
key_showplaylist=
|
||||
|
||||
#按住键位时显示播放列表
|
||||
key_peek_at_playlist=
|
||||
|
||||
## 动态绑定键位 不应在 input.conf 中设置(不与静态绑定的键位冲突)
|
||||
## 可以绑定多个键位,用空格分离
|
||||
key_moveup=UP WHEEL_UP
|
||||
key_movedown=DOWN WHEEL_DOWN
|
||||
key_movepageup=PGUP MBTN_BACK
|
||||
key_movepagedown=PGDWN MBTN_FORWARD
|
||||
key_movebegin=HOME
|
||||
key_moveend=END
|
||||
key_selectfile=RIGHT
|
||||
key_unselectfile=LEFT
|
||||
key_playfile=ENTER MBTN_LEFT
|
||||
key_removefile=DEL BS
|
||||
key_closeplaylist=ESC MBTN_RIGHT
|
||||
|
||||
## 额外的功能键位动态绑定
|
||||
## 可以绑定多个键位,用空格分离
|
||||
key_sortplaylist=s
|
||||
key_shuffleplaylist=r R
|
||||
key_reverseplaylist=S
|
||||
key_loadfiles=l L
|
||||
key_saveplaylist=p P
|
||||
|
||||
# json 替换格式,请查看.lua 以获取说明
|
||||
# example json=[{"ext":{"all":true},"rules":[{"_":" "}]},{"ext":{"mp4":true,"mkv":true},"rules":[{"^(.+)%..+$":"%1"},{"%s*[%[%(].-[%]%)]%s*":""},{"(%w)%.(%w)":"%1 %2"}]},{"protocol":{"http":true,"https":true},"rules":[{"^%a+://w*%.?":""}]}]
|
||||
# 空值,无需更换
|
||||
filename_replace=[{"protocol":{"all":true},"rules":[{"%%(%x%x)":"hex_to_char"}]},{"protocol":{"http":true,"https":true},"rules":[{"^%a[%a%d]+://localhost:.*/":""}]}]
|
||||
|
||||
## 指定从目录中搜索和加载的文件类型。注:此项与 autoload.lua 脚本功能重复
|
||||
#loadfiles_filetypes=["3gp","amr","amv","asf","avi","avi","bdmv","f4v","flv","ifo","iso","m2ts","m4v","mkv","mov","mp4","mpeg","mpg","ogv","rm","rmvb","ts","vob","webm","wmv"]
|
||||
#在启动时加载 1 个或多个文件到播放列表。注:此项与 autoload.lua 脚本功能重复
|
||||
loadfiles_on_start=no
|
||||
|
||||
#空闲启动时从工作目录加载文件
|
||||
loadfiles_on_idle_start=no
|
||||
|
||||
#总是在当前播放文件后放置加载的文件
|
||||
loadfiles_always_append=no
|
||||
|
||||
#指定在初始加载后将任何文件添加到播放列表时是否进行自然排序
|
||||
sortplaylist_on_file_add=no
|
||||
|
||||
#指定使用排序功能时需使用的排序方法,必须是其中之一:"name-asc", "name-desc", "date-asc", "date-desc", "size-asc", "size-desc".
|
||||
default_sort=name-asc
|
||||
|
||||
#linux | windows | auto
|
||||
system=auto
|
||||
|
||||
#Use ~ 用于主目录。留空以使用 mpv/playlists
|
||||
playlist_savepath=
|
||||
|
||||
#播放列表打开时同步当前播放文件所在位置(pos)
|
||||
sync_cursor_on_load=yes
|
||||
|
||||
#每次加载新文件时显示文件标题
|
||||
show_title_on_file_load=no
|
||||
#每次加载新文件时显示播放列表
|
||||
show_playlist_on_file_load=no
|
||||
#选择播放文件后关闭播放列表
|
||||
close_playlist_on_playfile=no
|
||||
|
||||
##是否光标移动到末尾自动切换到首位条目
|
||||
loop_cursor=yes
|
||||
|
||||
#当播放列表不可见时重置光标导航
|
||||
reset_cursor_on_close=yes
|
||||
|
||||
#允许播放列表管理器在文件之间导航时编写稍后观看配置
|
||||
allow_write_watch_later_config=no
|
||||
|
||||
#在保存、随机播放、反转播放列表时向 OSD 输出视觉反馈
|
||||
display_osd_feedback=no
|
||||
|
||||
#prefer 以显示以下文件的标题:"all","url","none"。排序仍使用文件名
|
||||
prefer_titles=url
|
||||
|
||||
#指定要用于标题解析的 ytdl 可执行文件,可以是绝对路径。默认:yt-dlp
|
||||
youtube_dl_executable=yt-dlp
|
||||
|
||||
#使用 youtube-dl/yt-dlp 解析播放列表中网址的标题,默认:no
|
||||
#prefer_titles 必须设置为 "url" 或"all" 才能正常工作
|
||||
resolve_url_titles=yes
|
||||
|
||||
#指定播放列表中 url 标题解析的超时时长,默认值:15s
|
||||
resolve_title_timeout=15
|
||||
|
||||
#指定同时解析 url 媒体标题的数量。较高的数字可能会导致卡明显的卡顿
|
||||
concurrent_title_resolve_limit=10
|
||||
|
||||
##播放列表在 OSD 显示的时长,默认值:5s
|
||||
playlist_display_timeout=5
|
||||
|
||||
##播放列表将呈现的最大行数。特殊值 -1 将自动计算,默认值:-1
|
||||
showamount=13
|
||||
|
||||
##播放列表的字体样式
|
||||
#example {\fnUbuntu\fs10\b0\bord1} equals: font=Ubuntu, size=10, bold=no, border=1
|
||||
#read http://docs.aegisub.org/3.2/ASS_Tags/ for reference of tags
|
||||
#no 值默认为 mpv.conf 中的 OSD 设置
|
||||
style_ass_tags={\fnNoto Sans CJK SC\fs26\b1\bord0.5}
|
||||
|
||||
##左上方的边距
|
||||
text_padding_x=10
|
||||
text_padding_y=15
|
||||
|
||||
#菜指定单打开时屏幕的不透明度,值:0.0 - 1.0(0 表示透明(默认),1 表示不透明)
|
||||
curtain_opacity=0.0
|
||||
|
||||
##是否修改 MPV 的窗口标题
|
||||
set_title_stripped=no
|
||||
title_prefix=
|
||||
title_suffix= - mpv
|
||||
|
||||
##是否切断长文件名,最大显示字符数
|
||||
slice_longfilenames=yes
|
||||
slice_longfilenames_amount=100
|
||||
|
||||
##播放列表标题
|
||||
#%mediatitle or %filename = 播放文件的标题或名称
|
||||
#%pos = 播放文件的位置
|
||||
#%cursor = 导航的位置
|
||||
#%plen = 播放列表长度
|
||||
#%N = 换行符
|
||||
playlist_header=播放列表 [%cursor/%plen]
|
||||
|
||||
##播放列表模板
|
||||
#%pos = 播放文件的位置
|
||||
#%name = 文件的标题或名称
|
||||
#%N = 换行符
|
||||
#也可以使用上面提到的 ASS 标签。例如:
|
||||
# selected_file={\c&HFF00FF&}➔ %name | 为所选文件添加颜色
|
||||
#使用 ASS 标签,你需要为每一行重置它们 (see https://github.com/jonniek/mpv-playlistmanager/issues/20)
|
||||
normal_file={\c&HFFFFFF&}□ %name
|
||||
hovered_file={\c&H33FFFF&}■ %name
|
||||
selected_file={\c&C1C1FF&}☑ %name
|
||||
playing_file={\c&HAAAAAA&}▷ %name
|
||||
playing_hovered_file={\c&H00FF00&}▶ %name
|
||||
playing_selected_file={\c&C1C1FF&}☑ %name
|
||||
|
||||
##播放列表被截断时的显示
|
||||
playlist_sliced_prefix=▲
|
||||
playlist_sliced_suffix=▼
|
||||
@@ -0,0 +1,81 @@
|
||||
###### 键绑定 ######
|
||||
# 向上移动菜单光标
|
||||
up_binding=UP WHEEL_UP
|
||||
# 向下移动菜单光标
|
||||
down_binding=DOWN WHEEL_DOWN
|
||||
# 选择菜单项
|
||||
select_binding=ENTER MBTN_LEFT
|
||||
# 关闭质量菜单
|
||||
close_menu_binding=ESC MBTN_RIGHT CTRL+F ALT+F
|
||||
###### 键绑定 ######
|
||||
|
||||
# 字体大小按窗口缩放,如果为否需要更大的字体和填充大小
|
||||
scale_playlist_by_window=yes
|
||||
|
||||
# 播放列表屁股样式覆盖大括号内。\keyvalue 是一个字段,额外 \ 用于 lua 中的转义
|
||||
# example {\\fnUbuntu\\fs10\\b0\\bord1} equals: font=Ubuntu, size=10, bold=no, border=1
|
||||
# 标签参考 https://aegi.vmoe.info/docs/3.0/ASS_Tags/
|
||||
# 未声明的标签将使用默认的 osd 设置
|
||||
# 这些样式将用于整个播放列表。更具体的样式实现方式并不优雅
|
||||
# 建议使用等宽字体,保持样式美观
|
||||
style_ass_tags={\\fnNoto Sans CJK SC,Noto Color Emoji\\fs25\\bord0.5}
|
||||
|
||||
# 自定义游标
|
||||
# 也可以使用上面提到的 ASS 标签。例如:
|
||||
# selected_and_inactive={\c&H33FFFF&}● - | 为所选格式添加颜色
|
||||
# 使用 ASS 标签,你需要为每一行重置它们
|
||||
selected_and_active={\c&H00FF00&}▶ -
|
||||
selected_and_inactive={\c&H33FFFF&}● -
|
||||
unselected_and_active={\c&HAAAAAA&}▷ -
|
||||
unselected_and_inactive={\c&HFFFFFF&}○ -
|
||||
|
||||
# 移位绘图坐标。mpv.net 兼容性所必需的
|
||||
shift_x=0
|
||||
shift_y=0
|
||||
|
||||
# 左上角的填充
|
||||
text_padding_x=5
|
||||
text_padding_y=10
|
||||
|
||||
# 菜单打开时屏幕变暗
|
||||
curtain_opacity=0.7
|
||||
|
||||
# 质量菜单超时的秒数
|
||||
menu_timeout=6
|
||||
|
||||
# 使用 youtube-dl 获取可用格式的列表(覆盖 quality_strings),默认:yes
|
||||
fetch_formats=yes
|
||||
|
||||
# 可供选择的 ytdl 格式字符串列表
|
||||
quality_strings_video=[ {"4320p" : "bestvideo[height<=?4320p]"}, {"2160p" : "bestvideo[height<=?2160]"}, {"1440p" : "bestvideo[height<=?1440]"}, {"1080p" : "bestvideo[height<=?1080]"}, {"720p" : "bestvideo[height<=?720]"}, {"480p" : "bestvideo[height<=?480]"}, {"360p" : "bestvideo[height<=?360]"}, {"240p" : "bestvideo[height<=?240]"}, {"144p" : "bestvideo[height<=?144]"} ]
|
||||
quality_strings_audio=[ {"default" : "bestaudio"} ]
|
||||
|
||||
# 打开网络视频后显示视频格式菜单,默认:yes
|
||||
start_with_menu=no
|
||||
|
||||
# 在列表中包含未知格式,不幸的是,选择视频或音频格式并不总是完美的
|
||||
# 设置为 yes 以确保您不会错过任何格式,但随后列表还可能包括实际上不是视频或音频的格式。已知不是视频或音频的格式仍会被过滤掉
|
||||
include_unknown=no
|
||||
|
||||
# 隐藏所有格式都相同的列,默认:yes
|
||||
hide_identical_columns=yes
|
||||
|
||||
# 指定列的属性以什么顺序显示,使用','分隔列表,属性前加'-'可使该列左对齐
|
||||
# 对于 uosc 集成,可以将文本分成标题和提示
|
||||
## 这是通过用'|'而不是逗号分隔两列来实现的
|
||||
##可用属性有:
|
||||
#resolution, width, height, fps, dynamic_range, tbr, vbr, abr, asr,
|
||||
#filesize, filesize_approx, vcodec, acodec, ext, video_ext, audio_ext,
|
||||
#language, format, format_note, quality
|
||||
##以下属性经过特殊处理
|
||||
#size, frame_rate, bitrate_total, bitrate_video, bitrate_audio,
|
||||
#codec_video, codec_audio, audio_sample_rate
|
||||
columns_video=-resolution,frame_rate|dynamic_range,bitrate_video,size,-codec_video,-ext
|
||||
columns_audio=language,audio_sample_rate,bitrate_audio|size,-codec_audio,-ext
|
||||
|
||||
# 用于排序的列,有关可用列,请参阅'columns_video'
|
||||
# 逗号分隔列表,前缀列带“-”以反转排序顺序
|
||||
# 将此内容留空可保留 yt-dlp/youtube-dl 的顺序
|
||||
# 注:拼写错误的列不会导致错误,但它们可能会影响结果
|
||||
sort_video=
|
||||
sort_audio=
|
||||
@@ -0,0 +1,2 @@
|
||||
# options to pass to wget
|
||||
#wget_opts=
|
||||
@@ -0,0 +1,7 @@
|
||||
###此配置不支持参数后注释,须另起一行
|
||||
|
||||
# 指定历史记录条目的日期格式。这被传递给 Lua 的 os.date
|
||||
# 这使用与 strftime(3)相同的格式
|
||||
history_date_format=%Y-%m-%d %H:%M:%S
|
||||
# 是否仅显示具有相同路径的最后一个历史记录条目,默认:yes
|
||||
hide_history_duplicates=yes
|
||||
@@ -0,0 +1,305 @@
|
||||
####------脚本设置-----####
|
||||
|
||||
#--打开 mpv 且没有加载视频/文件时自动运行列表。'none'表示禁用。或者选择:all, recents, distinct, protocols, fileonly, titleonly, timeonly, keywords.
|
||||
auto_run_list_idle=none
|
||||
|
||||
#--mpv 启动且未加载任何内容时的行为。'none'表示禁用。'resume'以自动恢复您上次播放的项目。'resume-notime'以恢复您上次播放的项目,但从头开始
|
||||
startup_idle_behavior=none
|
||||
|
||||
#--在打开和关闭菜单时隐藏 OSC 空闲屏幕消息(如果多个脚本触发 osc-空闲屏幕关闭,可能会导致意外行为)
|
||||
toggle_idlescreen=no
|
||||
|
||||
#--更改为 0,以便项目从确切位置恢复,或减小值,以便在加载恢复点之前为您提供一些预览
|
||||
resume_offset=-10
|
||||
|
||||
#--yes 用于在发生操作时显示 OSD 消息。更改为 no 将禁用从此脚本生成的所有 osd 消息
|
||||
osd_messages=yes
|
||||
|
||||
#--none: :用于禁用。notification:将触发一条消息以恢复上一个到达的时间。force:根据阈值强制恢复上次播放
|
||||
resume_option=none
|
||||
|
||||
#--0 在之前播放过同一视频时始终触发恢复选项,如果上次播放时间在视频的 5% 之后开始并在完成 5% 之前结束,则值(如 5)将仅触发恢复选项
|
||||
resume_option_threshold=5
|
||||
|
||||
#--yes 用于将历史记录时间标记为章节。no 禁用标记为章节的行为
|
||||
mark_history_as_chapter=no
|
||||
|
||||
#--yes: 反转黑名单为白名单,以便将诸如路径/网址之类的东西添加到 history_blacklist 中以保存到历史记录中
|
||||
invert_history_blacklist=no
|
||||
|
||||
#--设置黑名单:Paths / URLs / Websites / Files / Protocols / Extensions, 黑名单中的类型或路径将不会添加到历史记录中
|
||||
##例如:["c:\\users\\eisa01\\desktop", "c:\\users\\eisa01\\desktop\\*", "c:\\temp\\naruto-01.mp4", "youtube.com", "https://dailymotion.com/", "avi", "https://www.youtube.com/watch?v=e8YBesRKq_U", ".jpeg", "magnet:", "https://", "ftp"]
|
||||
history_blacklist=[""]
|
||||
|
||||
#--键绑定,用于在没有视频播放时立即加载和恢复最后一项。如果视频正在播放,它将恢复到上次找到的位置
|
||||
##! 注意:该绑定将覆盖 input.conf 中的同键位,推荐留空在 input.conf 中绑定该功能
|
||||
history_resume_keybind=[""]
|
||||
|
||||
#--键绑定,用于在没有播放视频时立即加载最后一项而不恢复。如果视频正在播放,那么它将添加到播放列表中
|
||||
##! 注意:该绑定将覆盖 input.conf 中的同键位,推荐留空在 input.conf 中绑定该功能
|
||||
history_load_last_keybind=[""]
|
||||
|
||||
#--键绑定,将用于打开列表以及指定的筛选器。可用的过滤器:"all", "recents", "distinct", "protocols", "fileonly", "titleonly", "timeonly", "keywords".
|
||||
##! 注意:该绑定将覆盖 input.conf 中的同键位,推荐留空在 input.conf 中绑定该功能
|
||||
open_list_keybind=[ ["", "distinct"], ["", "recents"] ]
|
||||
|
||||
#--动态键绑定,在列表打开时使用以跳转到特定筛选器(它还允许按两次筛选器键绑定以关闭列表)。可用的过滤器:"all", "recents", "distinct", "protocols", "fileonly", "titleonly", "timeonly", "keywords".
|
||||
list_filter_jump_keybind=[ ["a", "all"], ["r", "recents"], ["d", "distinct"], ["f", "fileonly"], ["p", "protocols"], ["t", "titleonly"], ["l", "playing"] ]
|
||||
|
||||
####------隐身设置-----####
|
||||
|
||||
#--指定是否在 MPV 启动时自动启动隐身模式
|
||||
auto_run_incognito_mode=no
|
||||
|
||||
#--yes:以便自动从历史记录中删除触发隐身模式的文件,no:将文件保留在隐身模式触发的历史记录中
|
||||
delete_incognito_entry=yes
|
||||
|
||||
#--"none"表示禁用,"deleted-restore"以便自动恢复进入隐身时删除的文件,"always"表示退出隐身模式后始终立即更新历史记录中的条目
|
||||
restore_incognito_entry=always
|
||||
|
||||
#--键绑定,触发隐身模式。启用后播放的文件不会添加到历史记录中,直到禁用此模式
|
||||
##! 注意:该绑定将覆盖 input.conf 中的同键位,推荐留空在 input.conf 中绑定该功能
|
||||
history_incognito_mode_keybind=[""]
|
||||
|
||||
####------日志记录设置------####
|
||||
|
||||
#--指定书签日志文件的保存路径。更改为'/:dir%script%'以将其放置在脚本的同一目录中,或者更改为'/:dir%mpvconf%'以将其放置在 mpv portable_config 目录中。
|
||||
##或者使用'/:var'写入任何变量,然后使用变量'/:var%APPDATA%',您也可以使用路径,例如:'/:var%APPDATA%\mpv'或'/:var%HOME%/mpv'或指定绝对路径,例如:'C:\Users\Eisa01\Desktop\'
|
||||
log_path=/:dir%mpvconf%/files
|
||||
|
||||
#--名称 + 将用于存储日志数据的文件的扩展名
|
||||
log_file=mpvHistory.log
|
||||
|
||||
#--日志中的日期格式(请参阅 lua 日期格式),例如:"%d/%m/%y %X" or "%d/%b/%y %X"
|
||||
date_format=%A/%B %d/%m/%Y %X
|
||||
|
||||
#--在 all, protocols, none 中选择保存媒体标题的类型。此选项会将媒体标题存储在日志文件中,这对于网站/协议很有用,因为标题无法仅从链接中解析
|
||||
file_title_logging=protocols
|
||||
|
||||
#--在下面(逗号后)添加您希望将其标题存储在日志文件中的任何协议。这仅对 (file_title_logging = "protocols" or file_title_logging = "all") 有效
|
||||
logging_protocols=["://", "magnet:"]
|
||||
|
||||
#--指定显示文件名而不是标题的范围。在 local, protocols, all, 和 none 之间进行选择
|
||||
## "local"更喜欢非协议视频的文件名。"protocols"将仅首选协议的文件名。"all"将始终使用文件名而不是标题。"none"将始终使用标题而不是文件名
|
||||
prefer_filename_over_title=local
|
||||
|
||||
#--限制保存具有相同路径的条目:-1 表示无限制,0 将始终更新相同路径的条目,例如值 3 将限制为 3,然后它将在第 4 个条目开始更新旧值
|
||||
same_entry_limit=2
|
||||
|
||||
####------列表设置-------####
|
||||
|
||||
#--设置是否启用光标循环滚动
|
||||
loop_through_list=yes
|
||||
|
||||
#--设置是否在到达列表中间后更新显示新项目
|
||||
list_middle_loader=yes
|
||||
|
||||
#--显示文件路径而不是媒体标题
|
||||
show_paths=no
|
||||
|
||||
#--在显示其名称和值之前显示每个项目的编号
|
||||
show_item_number=yes
|
||||
|
||||
#--设置是否按下面指定的字符数量对长文件名进行切片
|
||||
slice_longfilenames=yes
|
||||
|
||||
#--用于切片长文件名的字符数量
|
||||
slice_longfilenames_amount=80
|
||||
|
||||
#--更改最大数量以在当前列表显示更多项目
|
||||
list_show_amount=10
|
||||
|
||||
#--是否启用动态选择键绑定,条目从 0 到 9,用于在列表打开时快速选择(list_show_amount = 10 是此功能工作的最大值)
|
||||
quickselect_0to9_keybind=yes
|
||||
|
||||
#--是否启用双击主列表时退出列表的功能,即使列表是通过其他过滤器访问的
|
||||
main_list_keybind_twice_exits=yes
|
||||
|
||||
#--巧妙地将搜索设置为不键入(当搜索框打开时),而无需按 ctrl+enter 键
|
||||
search_not_typing_smartly=yes
|
||||
|
||||
#--"specific"查找日期、标题、路径/URL、时间的匹配项。"any"以根据日期,标题,路径/ URL 和时间的组合查找任何键入的搜索。"any-notime"根据日期、标题和路径/URL 的组合查找任何键入的搜索,但不查找时间(这是为了减少不需要的结果)
|
||||
search_behavior=any
|
||||
|
||||
####------过滤器设置-------####
|
||||
##--可用过滤器:"all"以显示所有项目。或"keybinds"以显示使用键绑定插槽过滤的列表。或"recents"以显示最近添加的要记录的项目而不重复。或"distinct"以显示不同路径中文件的最近保存条目。
|
||||
##或"fileonly"以显示没有时间保存的文件。或"timeonly"以显示只有时间的文件。或"keywords"以显示具有配置中指定的匹配关键字的文件。或"playing"以显示当前播放文件的列表。
|
||||
|
||||
#--跳转到以下过滤器,并在通过左右键导航时按显示的顺序跳转。您可以更改顺序并删除不需要的筛选器
|
||||
filters_and_sequence=["all", "recents", "distinct", "protocols", "playing", "fileonly", "titleonly", "keywords"]
|
||||
|
||||
#--键绑定,将用于根据 filters_and_sequence 跳转到下一个可用筛选器
|
||||
next_filter_sequence_keybind=["RIGHT", "MBTN_FORWARD"]
|
||||
|
||||
#--键绑定,将用于根据 filters_and_sequence 跳转到上一个可用筛选器
|
||||
previous_filter_sequence_keybind=["LEFT", "MBTN_BACK"]
|
||||
|
||||
#--是否启用循环访问过滤器的行为
|
||||
loop_through_filters=yes
|
||||
|
||||
#--为您想要的"keywords"中创建一个过滤器,例如:youtube.com 将过滤掉 YouTube 上的视频。您还可以插入文件名或标题的一部分,或扩展名或路径的完整路径/部分。例如: ["youtube.com", "mp4", "naruto", "c:\\users\\eisa01\\desktop"]. 留空已禁用关键词过滤器
|
||||
keywords_filter_list=["youtube.com"]
|
||||
|
||||
####------排序设置-------####
|
||||
##--可用排序:added-asc 用于首先显示最新添加的项目。或者 added-desc 用于显示添加顺序。或者 alphanum-asc 用于 A 到 Z 方法,文件名和集数先降低。或者 alphanum-desc 是它的 Z 到 A 方法。或 time-asc,time-desc 根据时间对列表进行排序
|
||||
|
||||
#--指定列表中所有不同筛选器的默认排序方法。选择范围:added-asc, added-desc, time-asc, time-desc, alphanum-asc, alphanum-desc
|
||||
list_default_sort=added-asc
|
||||
|
||||
#--指定特定过滤器的默认排序,例如:[ ["all", "alphanum-asc"], ["playing", "added-desc"] ]
|
||||
list_filters_sort=[ ["keybinds", "keybind-asc"], ["fileonly", "alphanum-asc"], ["playing", "time-asc"] ]
|
||||
|
||||
#--键绑定,用于在列表打开时循环浏览不同的可用排序
|
||||
list_cycle_sort_keybind=["alt+s"]
|
||||
|
||||
####------列表设计设置------####
|
||||
|
||||
#--指定列表的对齐方式,使用数字键盘位置从 1-9 中选择,或 0 以禁用。例如:7 左上对齐,8 中上对齐,9 右上角对齐
|
||||
list_alignment=7
|
||||
|
||||
#--列表中项目显示的时间类型。选择:duration, length, remaining.
|
||||
text_time_type=duration
|
||||
|
||||
#--指定在保存的时间之前显示的时间分隔符样式
|
||||
time_seperator= 🕒
|
||||
|
||||
#--指定表示上面有更多项目的文本时的样式。\n 用于换行。\h 代表空格
|
||||
list_sliced_prefix=...\h\N
|
||||
|
||||
#--指定表示下面有更多项目的文本时的样式
|
||||
list_sliced_suffix=...
|
||||
|
||||
#--yes 启用前文本,用于在列表之前显示快速选择键绑定。no 禁用
|
||||
quickselect_0to9_pre_text=no
|
||||
|
||||
#--指定列表的文本颜色,BGR 十六进制
|
||||
text_color=ffffff
|
||||
|
||||
#--列表文本的字体大小
|
||||
text_scale=80
|
||||
|
||||
#--列表文本的黑色边框大小
|
||||
text_border=0.5
|
||||
|
||||
#--前光标位置的文本颜色,BGR 十六进制
|
||||
text_cursor_color=ffbf7f
|
||||
|
||||
#--列表中当前光标位置的文本的字体大小
|
||||
text_cursor_scale=90
|
||||
|
||||
#--列表中当前光标位置的文本的黑色边框大小
|
||||
text_cursor_border=0.7
|
||||
|
||||
#--突出显示的多选项目的前置文本
|
||||
text_highlight_pre_text=✅
|
||||
|
||||
#--在打字模式下搜索框的颜色
|
||||
search_color_typing=ffffaa
|
||||
|
||||
#--处于打字模式且处于活动状态时搜索框的颜色
|
||||
search_color_not_typing=00bfff
|
||||
|
||||
#--列表标题颜色,BGR 十六进制
|
||||
header_color=00bfff
|
||||
|
||||
#--列表的标题文本大小
|
||||
header_scale=100
|
||||
|
||||
#--列表标题的黑色边框大小
|
||||
header_border=0.6
|
||||
|
||||
#--要显示为列表标题的文本
|
||||
#--可用标头变量:%cursor%, %total%, %highlight%, %filter%, %search%, %listduration%, %listlength%, %listremaining%
|
||||
#--仅在触发变量时显示的用户定义文本:%prefilter%, %afterfilter%, %prehighlight%, %afterhighlight% %presearch%, %aftersearch%, %prelistduration%, %afterlistduration%, %prelistlength%, %afterlistlength%, %prelistremaining%, %afterlistremaining%
|
||||
#--变量说明:%cursor:显示列表中光标位置的数量。%total:当前列表中的项目总数。%highlight%:突出显示的项目总数。%filter:显示筛选器名称,%search:显示键入的搜索。仅在触发用户变量时才显示的用户定义文本示例:%prefilter:显示筛选器之前的用户定义文本,%afterfilter:显示筛选器后的用户定义文本
|
||||
|
||||
header_text=⌛ 历史菜单 [%cursor%/%total%]%prehighlight%%highlight%%afterhighlight%%prelistduration%%listduration%%afterlistduration%%prefilter%%filter%%afterfilter%%presort%%sort%%aftersort%%presearch%%search%%aftersearch%
|
||||
|
||||
#--指定使用 %sort% 变量时从标头中隐藏的排序方法
|
||||
header_sort_hide_text=added-asc
|
||||
|
||||
#--设置在标头中触发变量之前或之后显示的文本
|
||||
header_sort_pre_text= \{
|
||||
header_sort_after_text=}
|
||||
header_filter_pre_text= [Filter:
|
||||
header_filter_after_text=]
|
||||
header_search_pre_text=\h\N[Search=
|
||||
header_search_after_text=..]
|
||||
header_highlight_pre_text=✅
|
||||
header_highlight_after_text=
|
||||
header_list_duration_pre_text= 🕒
|
||||
header_list_duration_after_text=
|
||||
header_list_length_pre_text= 🕒
|
||||
header_list_length_after_text=
|
||||
header_list_remaining_pre_text= 🕒
|
||||
header_list_remaining_after_text=
|
||||
|
||||
####-----时间格式设置-----####
|
||||
##--在第一个参数中,您可以从可用样式中定义:default, hms, hms-full, timestamp, timestamp-concise。"default"以 HH:MM:SS.sss 格式显示。"hms"以 1h 2m 3.4s 格式显示。"hms-full"与 hms 相同,但当小时和分钟为 0 时保持恒定。"timestamp"将总时间显示为时间戳 123456.700 格式。"timestamp-concise"以 123456.7 格式显示总时间(根据可用性显示和隐藏小数)。
|
||||
##--在第二个参数中,您可以定义是显示毫秒、舍入毫秒还是截断毫秒。可用选项:'truncate'以删除毫秒并保留秒数。0 删除毫秒并将秒舍入。1 或大于是要显示的毫秒数。默认值为 3 毫秒。
|
||||
##--在第三个参数中,您可以在 hour:minute:second(小时:分钟:秒) 之间定义分隔符。"default"样式自动设置为":","hms","hms-full"自动设置为" "。您可以定义自己的。一些例子: ["default",3, "-"],["hms-full",5, "."],["hms", "truncate", ":"],["timestamp-concise"],["timestamp", ["timestamp",0],["timestamp", "truncate"],["timestamp",5]
|
||||
|
||||
osd_time_format=["default", "truncate"]
|
||||
list_time_format=["default", "truncate"]
|
||||
header_duration_time_format=["hms", "truncate", ":"]
|
||||
header_length_time_format=["hms", "truncate", ":"]
|
||||
header_remaining_time_format=["hms", "truncate", ":"]
|
||||
|
||||
|
||||
####------列出键绑定设置------####
|
||||
#--在下面(逗号后)添加要绑定的任何其他键绑定。或者更改引号内的字母以更改键绑定
|
||||
#--更改和添加键绑定的示例:--从 ["b", "B"] 到 ["b"]. --从 [""] 到 ["alt+b"]. --从 [""] 到 ["a" "ctrl+a", "alt+a"]
|
||||
|
||||
#--键绑定,将用于在列表中向上导航
|
||||
list_move_up_keybind=["UP", "WHEEL_UP"]
|
||||
|
||||
#--键绑定,将用于在列表中向下导航
|
||||
list_move_down_keybind=["DOWN", "WHEEL_DOWN"]
|
||||
|
||||
#--键绑定,将用于转到列表上显示的页面的第一项
|
||||
list_page_up_keybind=["PGUP"]
|
||||
|
||||
#--键绑定,将用于转到列表上显示的页面的最后一项
|
||||
list_page_down_keybind=["PGDWN"]
|
||||
|
||||
#--键绑定,将用于导航到列表中的第一项
|
||||
list_move_first_keybind=["HOME"]
|
||||
|
||||
#--密钥绑定,将用于导航到列表中的最后一项
|
||||
list_move_last_keybind=["END"]
|
||||
|
||||
#--按键绑定,用于在按下导航键绑定时突出显示,按住 shift,然后按任何导航键绑定,例如:up, down, home, pgdwn 等。
|
||||
list_highlight_move_keybind=["SHIFT"]
|
||||
|
||||
#--键绑定,将用于突出显示列表中所有显示的项目
|
||||
list_highlight_all_keybind=["ctrl+a"]
|
||||
|
||||
#--键绑定,将用于从列表中删除所有当前突出显示的项目
|
||||
list_unhighlight_all_keybind=["ctrl+d"]
|
||||
|
||||
#--键绑定,将用于根据光标位置加载条目
|
||||
list_select_keybind=["ENTER", "MBTN_MID"]
|
||||
|
||||
#--键绑定,将用于根据光标位置向播放列表添加条目
|
||||
list_add_playlist_keybind=["CTRL+ENTER"]
|
||||
|
||||
#--键绑定,将用于将所有突出显示的条目添加到播放列表
|
||||
list_add_playlist_highlighted_keybind=["SHIFT+ENTER"]
|
||||
|
||||
#--将用于关闭列表的键绑定(如果搜索打开,则首先关闭搜索)
|
||||
list_close_keybind=["ESC", "MBTN_RIGHT"]
|
||||
|
||||
#--键绑定,将用于根据光标位置删除条目
|
||||
list_delete_keybind=["DEL"]
|
||||
|
||||
#--密钥绑定,将用于从列表中删除所有突出显示的条目
|
||||
list_delete_highlighted_keybind=["SHIFT+DEL"]
|
||||
|
||||
#--将用于触发搜索的密钥绑定
|
||||
list_search_activate_keybind=["ctrl+f"]
|
||||
|
||||
#--键绑定,将用于在保持搜索打开的同时退出搜索的键入模式
|
||||
list_search_not_typing_mode_keybind=["ALT+ENTER"]
|
||||
|
||||
#--列表打开时忽略的键绑定
|
||||
list_ignored_keybind=[""]
|
||||
@@ -0,0 +1,91 @@
|
||||
###不支持参数后注释,须另起一行
|
||||
|
||||
# -- 动态键位绑定(对应五个不同的信息页)
|
||||
#key_page_1=1
|
||||
#key_page_2=2
|
||||
#key_page_3=3
|
||||
#key_page_4=4
|
||||
#key_page_0=0
|
||||
|
||||
# -- 动态键位绑定(部分页面支持上下翻页)
|
||||
#key_scroll_up=UP
|
||||
#key_scroll_down=DOWN
|
||||
##设置滚动一次的行数。默认值:1
|
||||
#scroll_lines=1
|
||||
|
||||
##短暂显示的持续时间(秒)。默认值:4
|
||||
#duration=4
|
||||
##常驻显示的数据刷新间隔(秒),设为 0 会有 bug。默认值:1
|
||||
#redraw_delay=1
|
||||
##文本格式化(ASS)。默认值:yes
|
||||
##ass_formatting=yes
|
||||
##禁止其它 OSD 文本覆盖 stats 信息。默认值:no
|
||||
#persistent_overlay=yes
|
||||
##设为 yes 将输出传递的完整信息。默认值:no
|
||||
#print_perfdata_passes=no
|
||||
##如果过滤器列表的长度超过这个数目,则每行显示一个过滤器。默认值:128
|
||||
#filter_params_max_length=128
|
||||
##启用调试输出。默认值:100
|
||||
#debug=no
|
||||
|
||||
# -- 图形选项和样式
|
||||
##显示性能数据的图表。默认值:no
|
||||
#plot_perfdata=yes
|
||||
##显示垂直同步和抖动值的图形(仅在统计信息常驻显示时)。默认值:no
|
||||
#plot_vsync_ratio=yes
|
||||
#plot_vsync_jitter=yes
|
||||
##显示缓存值图表(第 3 页),仅在切换时显示。默认值:no
|
||||
#plot_cache=no
|
||||
##自动启用色调映射 LUT 可视化(仅在统计信息常驻显示时)。默认值:no
|
||||
#plot_tonemapping_lut=no
|
||||
|
||||
#skip_frames=5
|
||||
#global_max=yes
|
||||
##切换时清除数据缓冲区。默认值:yes
|
||||
#flush_graph_data=yes
|
||||
#plot_bg_border_width=1.25
|
||||
#plot_bg_border_color=0000FF
|
||||
#plot_bg_color=262626
|
||||
#plot_color=FFFFFF
|
||||
|
||||
##指定是否使用视频缩放文本和图形。no 尝试保持大小不变,auto 使用 OSD 缩放文本和图形
|
||||
##而 OSD 使用 window 或保持恒定大小,具体取决于 --osd-scale-by-window 选项。默认值:auto
|
||||
#vidscale=auto
|
||||
|
||||
# -- 字体相关设定
|
||||
font=Noto Sans CJK SC,Noto Color Emoji
|
||||
font_mono=Noto Sans CJK SC,Noto Color Emoji
|
||||
##字体大小,默认 20
|
||||
#font_size=20
|
||||
##字体颜色
|
||||
font_color=FFFFFF
|
||||
##字体边框粗细,默认 1.2
|
||||
border_size=1.5
|
||||
##字体边框颜色,默认 262626
|
||||
border_color=000000
|
||||
shadow_x_offset=0.1
|
||||
shadow_y_offset=0.1
|
||||
shadow_color=000000
|
||||
##<0-99> 字体透明度,似乎是百分比,默认 11
|
||||
alpha=0
|
||||
|
||||
# -- 自定义标头,用于设置 ASS 标签的文本输出样式
|
||||
# -- 指定此参数将忽略上面的文本样式值并使用这个字符串代替
|
||||
#custom_header=
|
||||
|
||||
# -- 文本格式(ASS)
|
||||
#ass_nl=\\N
|
||||
#ass_indent=\\h\\h\\h\\h\\h
|
||||
#ass_prefix_sep=\\h\\h
|
||||
#ass_b1={\\b1}
|
||||
#ass_b0={\\b0}
|
||||
#ass_it1={\\i1}
|
||||
#ass_it0={\\i0}
|
||||
# -- Without ASS
|
||||
#no_ass_nl=\n
|
||||
#no_ass_indent=\t
|
||||
#no_ass_prefix_sep=
|
||||
#no_ass_b1=\027[1m
|
||||
#no_ass_b0=\027[0m
|
||||
#no_ass_it1=\027[3m
|
||||
#no_ass_it0=\027[0m
|
||||
@@ -0,0 +1,208 @@
|
||||
[
|
||||
{
|
||||
"alang": "*",
|
||||
"slang": ["chs", "sc", "zho?%-cn", "zho?%-hans", "cht", "tc", "zho?%-hant", "zho?%-tw", "zho?%-hk", "zho?%-", "chi", "zho?", "und"],
|
||||
"whitelist": ["chs&j[ap]n?"],
|
||||
"condition": "sub.codec ~= 'null'"
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["sc&j[ap]n?"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["cht&j[ap]n?"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["ch&j[ap]n?"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["tc&j[ap]n?"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["zh&j[ap]n?"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["chs&eng?"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["sc&eng?"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["cht&eng?"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["ch&eng?"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["tc&eng?"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["zh&eng?"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["中日"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["中英"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["中上英下"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["简英"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["双语"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["特效"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["简体&英文"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["繁英"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["繁体&英文"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["繁體&英文"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["chs"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["sc"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["cn"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["hans"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["cht"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"blacklist": ["dutch"],
|
||||
"whitelist": ["tc"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["hant"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["hk"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["tw"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["简"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["中"]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["繁"]
|
||||
},
|
||||
{
|
||||
"alang": "*",
|
||||
"slang": "und",
|
||||
"blacklist": [ "sign", "song", "comment", "danmaku", "danmu", "xml" ],
|
||||
"condition": "sub.codec ~= 'null'"
|
||||
},
|
||||
{
|
||||
"alang": "*",
|
||||
"slang": ["chi", "zho?", "und"],
|
||||
"whitelist": ["simplified"],
|
||||
"condition": "sub.codec ~= 'null'"
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"whitelist": ["traditional"]
|
||||
},
|
||||
{
|
||||
"alang": "*",
|
||||
"slang": "zho?%-cn",
|
||||
"condition": "sub.codec ~= 'null'"
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"slang": "zho?%-hans"
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"slang": "zho?%-hant"
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"slang": "zho?%-hk"
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"slang": "zho?%-tw"
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"slang": "zho?%-"
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"slang": "chi"
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"slang": "zho?"
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"slang": "default"
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"slang": "forced"
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"slang": "j[ap]n?",
|
||||
"blacklist": [ "sign", "song" ]
|
||||
},
|
||||
{
|
||||
"inherit": "^",
|
||||
"slang": "eng?",
|
||||
"blacklist": [ "sign", "song" ]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,7 @@
|
||||
# API token, 可以在 https://assrt.net 上注册账号后在个人界面获取
|
||||
#示例为脚本内预设的 key
|
||||
#api_token=tNjXZUnOJWcHznHDyalNMYqqP6IdDdpQ
|
||||
# 是否使用 https,默认 yes
|
||||
#use_https=no
|
||||
# 代理设置
|
||||
#proxy=
|
||||
@@ -0,0 +1,4 @@
|
||||
#ffmpeg 所在绝对路径,或者放入环境变量
|
||||
ffmpeg_path=ffmpeg
|
||||
#指定脚本在 OSD 和控制台显示的文本使用的语言,eng=English, chs=Chinese。默认值:eng
|
||||
language=chs
|
||||
@@ -0,0 +1,24 @@
|
||||
#######################################################
|
||||
## Default configuration file for mpv-sub-select ##
|
||||
## https://github.com/CogentRedTester/mpv-sub-select ##
|
||||
#######################################################
|
||||
|
||||
# 强制启用脚本
|
||||
#! 注意:这不会覆盖 sid 选项的显式指定
|
||||
force_enable=yes
|
||||
|
||||
# 基于偏好 json 文件的实验性音轨选择
|
||||
select_audio=no
|
||||
|
||||
#observe 音频开关,并在 alang 更改时重新选择字幕
|
||||
observe_audio_switches=yes
|
||||
|
||||
# 仅选择用字幕轨道中明确说明的强制字幕。
|
||||
# 默认情况下,在搜索特定语言的字幕轨道时,
|
||||
# 强制字幕将包含在搜索结果中,并与其他曲目相同。
|
||||
# 这意味着没有办法编写专门排除强制字幕轨道的规则
|
||||
# 通过启用强制字幕,除非有规则在`slang`中明确包含"forced",否则永远不会选择强制字幕
|
||||
explicit_forced_subs=no
|
||||
|
||||
# 指定包含 "sub-select.json" 文件的文件夹
|
||||
config=~~/script-opts
|
||||
@@ -0,0 +1,42 @@
|
||||
# Socket 路径 (留空自动设置)
|
||||
socket=
|
||||
|
||||
# 缩略图缓存路径 (留空自动设置)
|
||||
thumbnail=
|
||||
|
||||
# 最大缩略图大小(以像素为单位)(缩小以适合)
|
||||
# 当启用 hidpi 时此值会自适应缩放
|
||||
max_height=200
|
||||
max_width=200
|
||||
|
||||
# 叠加 ID
|
||||
overlay_id=42
|
||||
|
||||
# 在文件加载时生成缩略图器,以更快地获得初始缩略图。默认禁用
|
||||
spawn_first=no
|
||||
|
||||
# 是否退出超时未活动的缩略图进程(秒),默认 0 即禁用
|
||||
quit_after_inactivity=0
|
||||
|
||||
# 在网络播放时启用。默认禁用
|
||||
network=no
|
||||
|
||||
# 在音频播放时启用。默认禁用
|
||||
audio=no
|
||||
|
||||
# 启用硬件解码生成缩略图。默认禁用
|
||||
# 注意:硬解在高端显卡上可以加速生成缩略图,但在低端显卡上可能会出问题
|
||||
hwdec=yes
|
||||
|
||||
# 仅限 Windows:使用原生 Windows API 写入管道(需要 LuaJIT)。默认禁用
|
||||
direct_io=yes
|
||||
|
||||
# 指定 mpv 可执行文件的自定义路径。默认:mpv
|
||||
mpv_path=mpv
|
||||
|
||||
# 指定需要忽略的视频扩展名黑名单,这些文件无法正常生成缩略图
|
||||
blacklist_ext=bdmv,ifo
|
||||
|
||||
## 指定需忽略的共享盘(挂载盘)的路径/目录(缩略图生成性能差)
|
||||
## windows 示例:excluded_dir=["X:", "Z:", "F:/Download/", "Download"]
|
||||
#excluded_dir=[]
|
||||
@@ -0,0 +1,30 @@
|
||||
# Options are slash-separated lists of words and languages
|
||||
#是否启用脚本,默认 yes
|
||||
enabled=yes
|
||||
#同步选择曲目,与其他脚本一起更好地工作,默认 yes
|
||||
hook=yes
|
||||
#模仿 mpv 的曲目列表信息,以保留用户在文件中选择的曲目,默认 no
|
||||
#注意此项必须设为 no,否则脚本功能无法真正生效
|
||||
fingerprint=no
|
||||
#覆盖用户的显式曲目选择,默认 no
|
||||
force=no
|
||||
#如果 mpv 无法做到这一点,请尝试重新选择最后一个轨道,例如当信息更改时,默认 no
|
||||
smart_keep=no
|
||||
## 指定需忽略的特殊协议
|
||||
special_protocols=["://", "^magnet:"]
|
||||
|
||||
#视频轨道筛选项设置
|
||||
#preferred_video_lang=
|
||||
#excluded_video_words=
|
||||
#expected_video_words=
|
||||
|
||||
#音频轨道筛选项设置
|
||||
preferred_audio_lang=japanese/jpn/jap/ja/jp/english/eng/en
|
||||
preferred_audio_channels=8/6/3/2
|
||||
excluded_audio_words=commentary/cast/staff/dub/guide
|
||||
expected_audio_words=
|
||||
|
||||
#字幕轨道筛选项设置
|
||||
#preferred_sub_lang=chs/sc/zh-CN/zh-Hans/cht/tc/zh-Hant/zh-HK/zh-TW/chi/zh
|
||||
#excluded_sub_words=
|
||||
#expected_sub_words=中日/中英/中上英下/双语/特效/简/繁/中
|
||||
@@ -0,0 +1,241 @@
|
||||
# 时间轴中当前位置的显示样式。可用:line, bar
|
||||
timeline_style=bar
|
||||
# 时间线(line)宽度(窗口/全屏模式)
|
||||
timeline_line_width=2
|
||||
# 进度条完全展开时的时间轴大小,以像素为单位,0 表示禁用
|
||||
timeline_size=30
|
||||
# 背景颜色的顶部边框,有助于在视觉上将时间轴与视频分开
|
||||
timeline_border=1
|
||||
# 指定在时间线上使用鼠标滚轮时,跳转的步进秒数。默认:5
|
||||
# 默认使用快速查找。添加 '!' 后缀以启用精确查找。示例:'5!'
|
||||
timeline_step=5
|
||||
# 是否在时间轴上显示网络内容的渲染缓存指标,默认:yes
|
||||
timeline_cache=yes
|
||||
# 设置时间轴应始终可见的状态。使用逗号分隔,可用:paused, audio, image, video, idle, windowed, fullscreen
|
||||
timeline_persistency=
|
||||
# 设置何时显示始终可见的进度条(最小化时间线)。可以是:windowed(默认值), fullscreen, always, never
|
||||
# 也可以使用 `toggle-progress` 命令按需切换
|
||||
progress=windowed
|
||||
progress_size=2
|
||||
progress_line_width=10
|
||||
|
||||
# 以逗号分隔的项列表,用于构造时间轴上方的控制栏。设置为`never`以禁用
|
||||
# 参数规范:括在`{}`中表示值,括在`[]`中表示可选
|
||||
# 完整的条目语法:`[<[!]{disposition1}[,[!]{dispositionN}]>]{element}[:{paramN}][#{badge}[>{limit}]][?{tooltip}]`
|
||||
#
|
||||
# 常用属性参考:
|
||||
# `{icon}` 指定图标名称的参数(例如 face)这里查询所有可用的值 https://fonts.google.com/icons?icon.platform=web&icon.set=Material+Icons&icon.style=Rounded
|
||||
# `{element}`的参数及介绍:
|
||||
# `{shorthand}` - 以下的可用值都是预配置好的快捷指令,可作为按钮:
|
||||
# play-pause(播放/暂停)menu(菜单)subtitles(字幕轨列表)audio(音轨列表)video(视频轨列表)playlist(播放列表)chapters(章节列表)editions(版本列表)
|
||||
# stream-quality(流式传输品质偏好)open-file(文件浏览器)items(播放列表/文件浏览器)
|
||||
# next(跳转下一个)prev(上一个)first(首位)last(末位)audio-device(音频输出设备列表)
|
||||
# fullscreen(切换全屏)loop-playlist(切换列表循环)loop-file(切换单曲循环)shuffle(切换乱序播放)autoload(自动加载文件)
|
||||
#
|
||||
# speed[:{scale}] (速度滑块 其中控件系数的尺寸,默认 1.3)
|
||||
# command:{icon}:{command} (按下该按钮时执行的指令)
|
||||
# toggle:{icon}:{prop} (切换 mpv 属性的按钮)
|
||||
#
|
||||
# cycle:{default_icon}:{prop}:{value1}[={icon1}][!]/{valueN}[={iconN}][!]
|
||||
# 在不同 mpv 属性的值之间循环的按钮,每个值都可以选择不同的 {icon} 和激活标记。结尾处赋予可选的半角感叹号,将使该按钮成为可激活的样式。
|
||||
#
|
||||
# gap[:{scale}] (留出一个间隔 其中系数的尺寸,默认 0.3)
|
||||
# space(填补上两个控件之间的所有空间,对于将条目右对齐非常有用。用多个 space 可在它们之间分配空间,可用于居中对齐)
|
||||
#
|
||||
# 控件条目的可见性控制:
|
||||
## `<[!]{disposition1}[+[!]{dispositionN}][,{more_dispositions}]>` - 可选的前缀是用于控制 {element} 的可见性
|
||||
# - `+` 创建 AND 条件,`,` 拆分为 OR 组。示例:`<foo,bar+baz>` -> `foo OR (bar AND baz)`
|
||||
# - `{disposition}` 的可用值:
|
||||
## idle 如果 mpv 处于空闲状态则为 true
|
||||
## image 如果当前文件为单帧图片则为 true
|
||||
## audio 如果当前文件为纯音频则为 true
|
||||
## video 如果当前文件存在视频轨则为 true
|
||||
## has_many_video 如果当前文件存在多个视频轨则为 true
|
||||
## has_image 如果当前文件带有封面或其他图像轨道则为 true
|
||||
## has_audio 如果当前文件存在音轨则为 true
|
||||
## has_many_audio 如果当前文件存在多个音轨则为 true
|
||||
## has_sub 如果当前文件存在字幕轨则为 true
|
||||
## has_many_sub 如果当前文件存在多个字幕轨则为 true
|
||||
## has_many_edition 如果当前文件存在多个版本则为 true
|
||||
## has_chapter 如果当前文件存在章节则为 true
|
||||
## stream 如果当前文件为流则为 true
|
||||
## has_playlist 如果当前列表存在多个文件则为 true
|
||||
## {mpv_prop} 任何 mpv 属性(注意:可以在脚本中设置 `user-data/foo` 以添加自定义属性)
|
||||
## 可选的`!`前缀可用来反转所需的处理方式
|
||||
## 示例:
|
||||
## - `<stream>stream-quality` - 仅对流媒体显示“流式传输品质偏好”按钮
|
||||
## - `<has_audio,!audio>audio` - 对所有存在音轨的文件显示“音轨列表”按钮,但不包括纯音频的文件
|
||||
#
|
||||
# 将 `#{badge}[>{limit}]` 放在 `{element}` 参数后,可赋予它一个徽章标记。可用的 `badge` 值:
|
||||
## `sub`, `audio`, `video` - 轨道计数值
|
||||
## `{mpv_prop}` - 如果 mpv 的属性值是一个数组,将显示其大小。可用的属性参见:https://mpv.io/manual/master/#property-list
|
||||
## `>{limit}` 只有当它的数值高于此阈值时,才会显示徽章标记
|
||||
## 示例:`#audio>1`
|
||||
#
|
||||
# 将 `?{tooltip}` 放在 `{element}` 的设置后面,赋予它一个工具提示
|
||||
## 示例:`<stream>stream-quality?Stream quality`
|
||||
#
|
||||
# 一些可用的快捷指令的实现示范:
|
||||
## menu = command:menu:script-binding uosc/menu-blurred?Menu
|
||||
## subtitles = command:subtitles:script-binding uosc/subtitles#sub>1?Subtitles
|
||||
## fullscreen = cycle:crop_free:fullscreen:no/yes=fullscreen_exit!?Fullscreen
|
||||
## loop-playlist = cycle:repeat:loop-playlist:no/inf!?Loop playlist
|
||||
## toggle:{icon}:{prop} = cycle:{icon}:{prop}:no/yes!
|
||||
controls=menu,open-file,<idle>command:history:script-binding recentmenu/open?最近播放,<idle>command:bookmarks:script-binding simplebookmark/open-list?书签菜单,<idle>command:file_copy:script-binding smartcopypaste_II/open-list?剪贴菜单,gap,<!idle>command:analytics:script-binding stats/display-stats-toggle?统计,<stream>stream-quality,<audio,has_image>command:image:script-binding uosc/video#video?封面,<has_many_edition>editions,<video>video,<has_audio+!audio>audio,<video,audio>subtitles,<has_chapter>chapters,space,<has_chapter>command:skip_previous:add chapter -1?上一章节,<video,audio>speed,<has_chapter>command:skip_next:add chapter 1?下一章节,space,loop-file,shuffle,loop-playlist,gap,<has_playlist>prev,<has_playlist>playlist,<has_playlist>next,gap,audio-device,gap,fullscreen
|
||||
controls_size=32
|
||||
controls_margin=8
|
||||
controls_spacing=2
|
||||
controls_persistency=idle
|
||||
|
||||
# 显示音量控制的位置:none, left, right
|
||||
# 设置音量控制条的样式
|
||||
volume=right
|
||||
volume_size=40
|
||||
volume_border=1
|
||||
volume_step=1
|
||||
volume_persistency=
|
||||
|
||||
# 播放速度小部件:鼠标拖动或滚轮更改,单击以重置
|
||||
speed_step=0.1
|
||||
speed_step_is_factor=no
|
||||
speed_persistency=
|
||||
|
||||
# 控制所有菜单,如上下文菜单,字幕加载器/选择器等
|
||||
menu_item_height=36
|
||||
menu_min_width=260
|
||||
menu_padding=1
|
||||
# 确定激活搜索需要`/`或`ctrl+f`或者是否键入任何文本就足够了
|
||||
# 启用后,如果菜单是 unicode 字符,则无法再使用打开菜单的相同键关闭菜单
|
||||
menu_type_to_search=no
|
||||
|
||||
|
||||
# 顶栏的显隐逻辑(仅在无边框和全屏模式下显示),默认 no-border 其它可用的值:never, always
|
||||
top_bar=no-border
|
||||
top_bar_size=40
|
||||
# 启用顶栏的右侧控制按钮,示例即默认值
|
||||
top_bar_controls=yes
|
||||
# 可以是:`no` (隐藏), `yes` (从 mpv.conf 继承标题), 或自定义模板字符串
|
||||
top_bar_title=yes
|
||||
# 使用模板字符串以启用替代顶部栏标题。如果替代标题与主标题匹配,它将被隐藏
|
||||
# 提示:使用 '${media-title}' 表示主标题,使用 '${filename}' 表示替代标题
|
||||
top_bar_alt_title=${?media-title:${media-title}}
|
||||
# 可以是:
|
||||
# `below` => 在主标题下方显示替代标题
|
||||
# `toggle` => 通过单击顶部栏在主标题和 alt 之间切换顶部栏标题文本,或调用`toggle-title`绑定
|
||||
top_bar_alt_title_place=below
|
||||
# 加载以下类型的内容时闪烁顶部栏。可用:audio,image,video,chapter。默认:video,audio,特殊值 none 禁用闪烁
|
||||
top_bar_flash_on=video,audio
|
||||
top_bar_persistency=
|
||||
|
||||
# 边框模式下绘制的内边框和透明度
|
||||
window_border_size=1
|
||||
|
||||
# 如果没有播放列表和文件结束,加载目录中符合 load_types 选项指定的下一个文件,默认:no
|
||||
# 当该选项被启用时 uosc 将主动设置 mpv 选项状态:`keep-open=yes`;`keep-open-pause=no`
|
||||
autoload=no
|
||||
# 启用播放列表/目录导航随机播放,默认:no
|
||||
# 这是实现按预期工作的洗牌所必需的,包括目录导航,因为 mpv 内置的“随机播放”选项基本上无法使用
|
||||
shuffle=no
|
||||
|
||||
# 指定 UI 的缩放比例,请参考显示器的 HIDPI 缩放比例
|
||||
scale=1
|
||||
# 指定 UI 在全屏时的缩放比例。默认值:1.3
|
||||
scale_fullscreen=1.3
|
||||
# 自定义 UI 要使用的字体,推荐使用等宽字体以获得更好的显示效果。默认留空以使用'osd-font'
|
||||
# font=Noto Sans CJK SC,Noto Color Emoji
|
||||
# 调整文字缩放以适合您的字体
|
||||
font_scale=1
|
||||
# 指定直接在视频顶部绘制时文本和图标的边框。默认值:1.2
|
||||
text_border=1.2
|
||||
# 指定按钮、菜单和所有其他矩形的边框半径。默认值:4
|
||||
border_radius=2
|
||||
# 设置以逗号分隔的颜色覆盖列表,采用 RGB 十六进制格式:`rrggbb`
|
||||
# 默认值: foreground=ffffff,foreground_text=000000,background=000000,background_text=ffffff,curtain=111111,match=69c5ff
|
||||
color=foreground=FFFBFE,foreground_text=1C1B1F,background=1C1B1F,background_text=FFFBFE
|
||||
# 设置以逗号分隔的不透明度覆盖列表,用于各种 UI 元素背景和形状。文本始终为 100%
|
||||
# 示例: opacity=timeline=0.5,title=0.5
|
||||
# 默认: timeline=0.9,position=1,chapters=0.8,slider=0.9,slider_gauge=1,controls=0,speed=0.6,menu=1,submenu=0.4,border=1,title=1,
|
||||
# tooltip=1,thumbnail=1,curtain=0.8,idle_indicator=0.8,audio_indicator=0.5,buffering_indicator=0.3,playlist_position=0.8
|
||||
opacity=menu=0.9,submenu=0.7,curtain=0.5
|
||||
# 以逗号分隔的功能列表,以牺牲一些性能影响为代价进行优化。默认:空白
|
||||
# text_width - 使用更准确的文本宽度测量,单独测量每个文本字符串而不是只测量一次已知字母的宽度并将它们相加
|
||||
# sorting - 使用文件名排序可以更好地处理非英语语言,尤其是亚洲语言。目前,此功能仅在 Windows 上可用,对其他平台没有影响
|
||||
refine=sorting
|
||||
# 指定过渡动画的持续时间(以毫秒为单位)。默认值:100
|
||||
animation_duration=100
|
||||
# `flash-{element}`命令使用的闪存持续时间(以毫秒为单位)
|
||||
flash_duration=1000
|
||||
# 以像素为单位的距离,低于该像素的元素完全淡入/淡出
|
||||
proximity_in=40
|
||||
proximity_out=120
|
||||
# 是否在整个 UI 中仅使用粗体字体粗细,默认:no
|
||||
font_bold=no
|
||||
# 指定按何种方式显示时间轴右侧时间:`total`, `playtime-remaining`(按当前速度缩放), `time-remaining` (文件的剩余长度)
|
||||
destination_time=playtime-remaining
|
||||
# 指定显示时间戳的亚秒级精度,精确等效到秒的小数点后的位数。默认 0
|
||||
time_precision=3
|
||||
# 在时间轴中显示流的缓冲时间,如果它低于此秒数,0 表示禁用
|
||||
buffered_time_threshold=60
|
||||
# 是否在 mpv 自动隐藏光标时隐藏 UI,默认:no
|
||||
autohide=no
|
||||
# 指定切换暂停状态时显示的指示器样式
|
||||
# 可以是:none, flash, static, manual (由 flash-pause-indicator 和 decide-pause-indicator 命令控制)
|
||||
pause_indicator=manual
|
||||
# 指定在流质量菜单中列出的大小
|
||||
stream_quality_options=4320,2160,1440,1080,720,480,360,240,144
|
||||
# 指定导航媒体文件时要查找的文件类型
|
||||
video_types=3g2,3gp,asf,avi,bdmv,f4v,flv,h264,h265,iso,ifo,m2ts,m4v,mkv,mov,mp4,mp4v,mpeg,mpg,ogm,ogv,rm,rmvb,ts,vob,webm,wmv,y4m
|
||||
audio_types=aac,ac3,aiff,ape,au,dsf,dts,flac,m4a,mid,midi,mka,mp3,mp4a,oga,ogg,opus,spx,tak,tta,wav,weba,wma,wv
|
||||
image_types=apng,avif,bmp,gif,j2k,jp2,jfif,jpeg,jpg,jxl,mj2,png,svg,tga,tif,tiff,webp
|
||||
playlist_types=m3u,m3u8,pls,url,cue
|
||||
# 指定加载外部字幕时要查找的文件类型
|
||||
subtitle_types=aqt,ass,gsub,idx,jss,lrc,mks,pgs,pjs,psb,rt,slt,smi,sub,sup,sbv,srt,ssa,ssf,ttxt,txt,usf,vt,vtt
|
||||
# 自动加载或请求播放下一个文件时接受哪些类型作为下一个条目
|
||||
# 可选:video,audio,image,playlist,same。特殊值 same 意味着只加载和当前文件属于同一类型的媒体文件
|
||||
load_types=same
|
||||
# 指定打开文件菜单时的默认目录,默认值:~/。使用特殊值 '{drives}' 打开 Windows 上的驱动器菜单(在 unix 上默认为 '/')
|
||||
default_directory={drives}
|
||||
# 读取目录时是否列出隐藏文件,默认:no。由于环境限制,这目前仅隐藏以'.'点开头的文件
|
||||
# 不会隐藏 Windows 上的隐藏文件(我们无法判断它们是隐藏的)
|
||||
show_hidden_files=no
|
||||
# 删除文件时移动到回收站,默认:no
|
||||
use_trash=yes
|
||||
# 根据 UI 元素的可见性调整了 OSD 边距,默认:yes
|
||||
adjust_osd_margins=no
|
||||
|
||||
|
||||
# 将一些常见的章节类型转换为章节范围指标,该章节拥有的时间轴部分基于彩色
|
||||
# 章节范围指标语法是逗号分隔的“{type}:{color}”
|
||||
# `{type}` - 范围类型。目前支持有:
|
||||
# - `openings` - 开场白和动画开场
|
||||
# - `endings` - 外传和动画结局
|
||||
# - `ads` - 由脚本创建的赞助商块:https://github.com/po5/mpv_sponsorblock
|
||||
# `{color}` - 颜色代码,格式为 RRGGBB(AA)
|
||||
#
|
||||
# 要不转换任何范围类型,只需将其从列表中删除即可,全部留空即为不启用此特性
|
||||
# 示例:chapter_ranges=openings:38869680,endings:38869680,ads:a5353580
|
||||
chapter_ranges=openings:30abf964,endings:30abf964,intros:3fb95080,outros:3fb95080,ads:c54e4e80
|
||||
# 补充额外的 lua 模式来识别章节范围的起始点(除`ads`外的所有章节)
|
||||
# 语法:`{type}:{pattern}[,{patternN}][;{type}:{pattern}[,{patternN}]]`
|
||||
# 目前可定义的章节范围`type`有:openings;endings;intros;outros
|
||||
chapter_range_patterns=openings:^Intro%s*Start,オープニング$,^片头$,片头开始$;endings:^end$,^End$,エンディング$;intros:preview$,预告$,予告$;outros:credits$
|
||||
|
||||
# 指定本地化语言优先级,从高到低
|
||||
# 内置语言可以在 'uosc/intl' 中找到。
|
||||
# 'slang' 是从 '--slang' 属性继承值的关键字
|
||||
# 支持自定义 json 文件的路径:`languages=~~/custom.json,slang,en`
|
||||
languages=slang,en
|
||||
|
||||
# 默认情况下,将字幕下载到当前打开的文件的目录中
|
||||
# 如果从 URL 播放文件,我们将使用此目录(扩展到 `{mpv_config_dir}/subtitles`)
|
||||
# 在路径前加上`!`以强制将所有字幕保存在那里,示例:`!~~/subtitles`
|
||||
subtitles_directory=~~/subtitles
|
||||
|
||||
# 指定要禁用的元素 ID 的列表,使用逗号分隔,默认留空。可用 ID:
|
||||
# window_border, top_bar, timeline, controls, volume,
|
||||
# idle_indicator, audio_indicator, buffering_indicator, pause_indicator
|
||||
disable_elements=idle_indicator,audio_indicator
|
||||
|
||||
# 指定`ziggy`的可执行文件的路径。默认:default, 即 `~~/scripts/uosc/bin`
|
||||
# 留空将在系统 PATH 中查找可执行文件,Windows 上还会在 mpv.exe 所在目录中查找
|
||||
# ziggy_path=
|
||||
@@ -0,0 +1,62 @@
|
||||
## 指定弹幕服务器地址,自定义服务需兼容 dandanplay 的 api
|
||||
api_server=https://api.dandanplay.net
|
||||
## 指定 b 站和爱腾优的弹幕获取的兜底服务器地址,主要用于获取非动画弹幕
|
||||
## 服务器可以自托管:https://github.com/lyz05/danmaku
|
||||
#fallback_server=https://fc.lyz05.cn
|
||||
## 设置 tmdb 的 API Key,用于获取非动画条目的中文信息(当搜索内容非中文时)
|
||||
## 可以在 https://www.themoviedb.org 注册后去个人账号设置界面获取
|
||||
## 注意:自定义此参数时还需要对获取到的 API Key 进行 base64 编码
|
||||
#tmdb_api_key=NmJmYjIxOTZkNzIyN2UyMTIzMGM3Y2YzZjQ4MDNkZGM=
|
||||
## 加载更多来自弹幕服务器上第三方的弹幕
|
||||
load_more_danmaku=yes
|
||||
## 自动加载网络弹幕
|
||||
auto_load=no
|
||||
## 自动加载本地弹幕
|
||||
autoload_local_danmaku=yes
|
||||
## 为 URL 串流播放场景自动加载弹幕
|
||||
autoload_for_url=yes
|
||||
## 自动保存网络弹幕到本地(视频同目录下同名 xml 文件)
|
||||
save_danmaku=yes
|
||||
## 启用 fps 视频滤镜让弹幕滚动更平滑
|
||||
##! 性能消耗较大
|
||||
vf_fps=yes
|
||||
## 设置要使用的 fps 滤镜参数
|
||||
fps=60/1.001
|
||||
## 指定合并重复弹幕的时间间隔的容差值,单位为秒。默认值:-1,表示禁用
|
||||
merge_tolerance=0
|
||||
## 限制同屏显示的最大弹幕数量,默认值 0 表示不限制
|
||||
max_screen_danmaku=0
|
||||
## 指定弹幕关联历史记录文件的路径,支持绝对路径和相对路径
|
||||
history_path=~~/files/danmaku-history.json
|
||||
|
||||
## 中文简繁转换。0-不转换,1-转换为简体,2-转换为繁体
|
||||
chConvert=1
|
||||
## 滚动弹幕的显示时间。这会左右滚动速度
|
||||
scrolltime=15
|
||||
## 固定弹幕的显示时间
|
||||
fixtime=5
|
||||
## 字体
|
||||
fontname=Noto Sans CJK SC
|
||||
## 字体大小
|
||||
fontsize=30
|
||||
## 透明度
|
||||
opacity=0.6
|
||||
## 粗体
|
||||
bold=yes
|
||||
## 描边 0-4
|
||||
outline=1
|
||||
## 阴影
|
||||
shadow=0
|
||||
## 全部弹幕的显示范围(0.0-1.0)
|
||||
displayarea=0.85
|
||||
|
||||
## 指定弹幕屏蔽词文件路径(black.txt),支持绝对路径和相对路径。文件内容以换行分隔
|
||||
## 支持 lua 的正则表达式写法
|
||||
blacklist_path=~~/files/danmaku-blacklist.txt
|
||||
## 自定义标题解析中的额外替换规则,内容格式为 JSON 字符串,替换模式为 lua 的 string.gsub 函数
|
||||
##! 注意:由于 mpv 的 lua 版本限制,自定义规则只支持形如 %n 的捕获组写法,即示例用法,不支持直接替换字符的写法
|
||||
title_replace=[{"rules":[{ "^〔(.-)〕": "%1"},{ "^.*《(.-)》": "%1" }]}]
|
||||
## 指定哈希匹配中需忽略的共享盘(挂载盘)的路径/目录。支持绝对路径和相对路径,多个路径用逗号分隔
|
||||
## 示例:["X:", "Z:", "F:/Download/", "Download"]
|
||||
#excluded_path=
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
###不支持参数后注释,须另起一行
|
||||
|
||||
##首选尝试用 ytdl 解析 url(默认 no)。取决于 url 播放场景是否大多需要 ytdl 解析
|
||||
try_ytdl_first=yes
|
||||
|
||||
##url 解析地址黑名单,格式解释见 https://mpv.io/manual/master/#options-exclude
|
||||
##推荐在 try_ytdl_first=yes 的情况下使用,可合理加速网络地址的解析
|
||||
exclude=%.avi$|%.flac$|%.flv$|%.mp3$|%.m3u$|%.m3u8$|%.m4a$|%.m4v$|%.mkv$|%.mp4$|%.ts$|%.VOB$|%.wav$|%.webm$|%.wmw$
|
||||
|
||||
##当 try_ytdl_first 为 no 时 mpv 应尝试优先使用 ytdl 解析的 URL 模式列表。匹配方式与 exclude 相同,示例为默认值
|
||||
include=^%w+%.youtube%.com/|^youtube%.com/|^youtu%.be/|^%w+%.twitch%.tv/|^twitch%.tv/
|
||||
|
||||
##https://mpv.io/manual/master/#options-all-formats
|
||||
#all_formats=no
|
||||
#force_all_formats=yes
|
||||
|
||||
##允许切换源的轨道(出于性能原因默认禁用)
|
||||
#use_manifests=no
|
||||
|
||||
##youtube-dl 最活跃的分支 yt-dlp 大有取代上游的趋势且开发活跃 https://github.com/yt-dlp/yt-dlp/releases
|
||||
##须要 youtube-dl.exe / yt-dlp.exe 在环境变量 PATH 中,或位于 mpv.exe 所在路径的目录下
|
||||
##yt-dlp.exe 更新命令:yt-dlp -U
|
||||
#ytdl_path=yt-dlp
|
||||
Reference in New Issue
Block a user