diff --git a/src/Misc/Commands.cs b/src/Misc/Commands.cs index 2993443c..be3c5d4a 100644 --- a/src/Misc/Commands.cs +++ b/src/Misc/Commands.cs @@ -616,11 +616,11 @@ public static void RegisterFileAssociations(string perceivedType) proc.WaitForExit(); if (proc.ExitCode == 0) - Msg.ShowInfo("File associations were successfully " + - (perceivedType == "unreg" ? "removed" : "created") + - ".\n\nFile Explorer icons will refresh after process restart."); + Msg.ShowInfo("文件关联已成功" + + (perceivedType == "注销" ? "移除" : "创建") + + "!\n\n资源管理器的相关图标将在进程重启后刷新"); else - Msg.ShowError("Error creating file associations."); + Msg.ShowError("关联出错!"); } } catch { } } diff --git a/src/Misc/Conf.cs b/src/Misc/Conf.cs index 742f2da6..339d6c40 100644 --- a/src/Misc/Conf.cs +++ b/src/Misc/Conf.cs @@ -37,7 +37,7 @@ public static List LoadConf(string content) opt.Name = i.Value; if (opt.Name == optionSetting.Default) - opt.Text = opt.Name + " (Default)"; + opt.Text = opt.Name + "(默认)"; opt.OptionSetting = optionSetting; optionSetting.Options.Add(opt); diff --git a/src/Misc/CorePlayer.cs b/src/Misc/CorePlayer.cs index 134b10e6..9d4d3be1 100644 --- a/src/Misc/CorePlayer.cs +++ b/src/Misc/CorePlayer.cs @@ -128,7 +128,7 @@ public void Init() SetPropertyString("msg-level", "osd/libass=fatal"); } - SetPropertyString("watch-later-options", "mute"); + SetPropertyString("watch-later-options", "vid,aid,sid"); SetPropertyString("screenshot-directory", "~~desktop/"); SetPropertyString("osd-playing-msg", "${filename}"); SetPropertyString("wid", MainForm.Hwnd.ToString()); @@ -136,11 +136,11 @@ public void Init() SetPropertyString("force-window", "yes"); SetPropertyString("config-dir", ConfigFolder); SetPropertyString("config", "yes"); + SetPropertyString("include", "~~/profiles.conf"); SetPropertyInt("osd-duration", 2000); SetPropertyBool("keep-open", true); - SetPropertyBool("keep-open-pause", false); SetPropertyBool("input-default-bindings", true); SetPropertyBool("input-builtin-bindings", false); diff --git a/src/Misc/MainForm.Designer.cs b/src/Misc/MainForm.Designer.cs index 18135458..4cad1440 100644 --- a/src/Misc/MainForm.Designer.cs +++ b/src/Misc/MainForm.Designer.cs @@ -51,7 +51,7 @@ private void InitializeComponent() this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.BackColor = System.Drawing.Color.Black; this.ClientSize = new System.Drawing.Size(348, 0); - this.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.Name = "MainForm"; diff --git a/src/Misc/MainForm.cs b/src/Misc/MainForm.cs index 12d662b1..a8545408 100644 --- a/src/Misc/MainForm.cs +++ b/src/Misc/MainForm.cs @@ -217,7 +217,7 @@ bool IsMouseInOSC() if (FormBorderStyle == FormBorderStyle.None) top = ClientSize.Height * 0.1f; - return pos.Y > ClientSize.Height * 0.85 || pos.Y < top; + return pos.Y > ClientSize.Height * 0.80 || pos.Y < top; } void UpdateMenu() diff --git a/src/Properties/Resources.resx b/src/Properties/Resources.resx index 0d8d15f2..492803bd 100644 --- a/src/Properties/Resources.resx +++ b/src/Properties/Resources.resx @@ -119,10 +119,10 @@ - ..\Resources\editor_conf.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252 + ..\Resources\editor_conf.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 - ..\Resources\input.conf.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252 + ..\Resources\input.conf.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 ..\Resources\mpvnet.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a diff --git a/src/Resources/editor_conf.txt b/src/Resources/editor_conf.txt index fe422775..07492aba 100644 --- a/src/Resources/editor_conf.txt +++ b/src/Resources/editor_conf.txt @@ -1,693 +1,1356 @@ [setting] -name = vo -file = mpv -default = gpu -filter = Video -help = Video output drivers to be used.\n\nFor more information visit: -url = https://mpv.io/manual/master/#video-output-drivers-vo +name = vo +file = mpv +default = +filter = 基础 +help = 视频输出驱动程序 -option = gpu General purpose, customizable, GPU-accelerated video output driver. It supports extended scaling methods, dithering, color management, custom shaders, HDR, and more. -option = gpu-next Experimental video renderer based on libplacebo. This supports almost the same set of features as --vo=gpu. -option = direct3d Video output driver that uses the Direct3D interface. +option = gpu 通用的基于GPU加速的视频输出驱动(推荐) +option = gpu-next 实验性的基于libplacebo的渲染器 [setting] -name = hwdec -file = mpv +name = gpu-context +file = mpv +default = +filter = 基础 + +option = win 此时--gpu-api=opengl +option = d3d11 此时--gpu-api=d3d11(推荐) +option = winvk 此时--gpu-api=vulkan + +[setting] +name = hwdec +file = mpv default = no -filter = Video -url = https://mpv.io/manual/master/#options-hwdec -help = Specify the hardware video decoding API that should be used if possible. Whether hardware decoding is actually done depends on the video codec. If hardware decoding is not possible, mpv will fall back on software decoding.\n\nFor more information visit: - -option = no always use software decoding -option = auto enable best hw decoder -option = yes exactly the same as auto -option = auto-copy enable best hw decoder with copy-back -option = auto-safe enable any whitelisted hw decoder -option = dxva2 requires vo=gpu with gpu-context=d3d11, gpu-context=angle or gpu-context=dxinterop (Windows only) -option = dxva2-copy copies video back to system RAM (Windows only) -option = d3d11va requires vo=gpu with gpu-context=d3d11 or gpu-context=angle (Windows 8+ only) -option = d3d11va-copy copies video back to system RAM (Windows 8+ only) -option = cuda requires vo=gpu (Any platform CUDA is available) -option = cuda-copy copies video back to system RAM (Any platform CUDA is available) -option = nvdec requires vo=gpu (Any platform CUDA is available) -option = nvdec-copy copies video back to system RAM (Any platform CUDA is available) - -[setting] -name = gpu-api -file = mpv -default = auto -filter = Video -help = Controls which type of graphics APIs will be accepted. Auto uses d3d11, it should only be changed in case of problems, Vulkan is not recommended. +filter = 基础 +help = 解码模式,选择硬解时不支持的格式自动切回软解。非copy的原生硬解模式不支持部分参数和滤镜,硬解优先考虑-copy\nSVP的10bit支持应使用-copy,否则软解 -option = auto Use any available API -option = d3d11 Allow only gpu-context=d3d11 -option = opengl Allow only OpenGL (requires OpenGL 2.1+ or GLES 2.0+) -option = vulkan Allow only Vulkan +option = no 始终软解 +option = auto Native原生硬解优先 +option = nvdec N卡独占的硬解优先(此项不支持--gpu-api=d3d11) +option = auto-copy 兼容性较好的增强硬解模式 +option = nvdec-copy 帕斯卡架构后的N卡首选 [setting] -name = gpu-context -file = mpv -default = auto -filter = Video +name = d3d11-flip +file = mpv +default = yes +filter = 基础 +help = (当--gpu-api=d3d11时)启用翻转模型呈现 -option = auto auto-select -option = d3d11 Win32, with native Direct3D 11 rendering. -option = angle Direct3D11 through the OpenGL ES translation layer ANGLE. This supports almost everything the win backend does (if the ANGLE build is new enough). -option = win Win32/WGL -option = dxinterop (experimental) Win32, using WGL for rendering and Direct3D 9Ex for presentation. Works on Nvidia and AMD. Newer Intel chips with the latest drivers may also work. -option = winvk VK_KHR_win32_surface +option = yes +option = no [setting] -name = video-sync -file = mpv -default = audio -filter = Video -help = How the player synchronizes audio and video.\n\nFor more information visit: -url = https://mpv.io/manual/master/#options-video-sync - -option = audio -option = display-resample -option = display-resample-vdrop -option = display-resample-desync -option = display-vdrop -option = display-adrop -option = display-desync -option = desync - -[setting] -name = scale -file = mpv -default = bilinear -filter = Video -help = The GPU renderer filter function to use when upscaling video. There are some more filters, but most are not as useful. For a complete list, pass help as value, e.g.: mpv --scale=help +name = d3d11-adapter +file = mpv +filter = 基础 +type = string +width = 500 +help = (当--gpu-api=d3d11时)单显卡系统无需填写,双显卡笔记本留空自动选择系统或驱动指定的主渲染显卡,否则应指定具体显卡名\n例:NVIDIA GeForce RTX 2070 Super 或 Intel(R) UHD Graphics + +[setting] +name = vulkan-device +file = mpv +filter = 基础 +type = string +width = 500 +help = (当--gpu-api=vulkan时)单显卡系统无需填写,双显卡笔记本留空自动选择系统或驱动指定的主渲染显卡,否则应指定具体显卡名\n例:NVIDIA GeForce RTX 2070 Super 或 Intel(R) UHD Graphics -option = bilinear Bilinear hardware texture filtering (fastest, very low quality). -option = spline36 Mid quality and speed. This is the default when using gpu-hq. -option = lanczos Lanczos scaling. Provides mid quality and speed. Generally worse than spline36, but it results in a slightly sharper image which is good for some content types. The number of taps can be controlled with scale-radius, but is best left unchanged. (This filter is an alias for sinc-windowed sinc) -option = ewa_lanczos Elliptic weighted average Lanczos scaling. Also known as Jinc. Relatively slow, but very good quality. The radius can be controlled with scale-radius. Increasing the radius makes the filter sharper but adds more ringing. (This filter is an alias for jinc-windowed jinc) -option = ewa_lanczossharp A slightly sharpened version of ewa_lanczos, preconfigured to use an ideal radius and parameter. If your hardware can run it, this is probably what you should use by default. -option = mitchell Mitchell-Netravali. The B and C parameters can be set with scale-param1 and scale-param2. This filter is very good at downscaling (see dscale). -option = oversample A version of nearest neighbour that (naively) oversamples pixels, so that pixels overlapping edges get linearly interpolated instead of rounded. This essentially removes the small imperfections and judder artifacts caused by nearest-neighbour interpolation, in exchange for adding some blur. This filter is good at temporal interpolation, and also known as "smoothmotion" (see tscale). +[setting] +name = icc-cache-dir +file = mpv +filter = 基础 +type = string +width = 500 +help = 指定目录存储和加载从ICC配置文件创建的3D LUT,可提升色彩管理时的加载速度。\n例:"~~/icc_cache" [setting] -name = cscale -file = mpv -default = bilinear -filter = Video -help = As scale, but for interpolating chroma information. If the image is not subsampled, this option is ignored entirely. +name = gpu-shader-cache-dir +file = mpv +filter = 基础 +type = string +width = 500 +help = 在此目录中存储和加载已编译的GLSL着色器缓存,可以提高启动性能。\n例:"~~/shaders_cache" -option = bilinear Bilinear hardware texture filtering (fastest, very low quality). -option = spline36 Mid quality and speed. This is the default when using gpu-hq. -option = lanczos Lanczos scaling. Provides mid quality and speed. Generally worse than spline36, but it results in a slightly sharper image which is good for some content types. The number of taps can be controlled with scale-radius, but is best left unchanged. (This filter is an alias for sinc-windowed sinc) -option = ewa_lanczos Elliptic weighted average Lanczos scaling. Also known as Jinc. Relatively slow, but very good quality. The radius can be controlled with scale-radius. Increasing the radius makes the filter sharper but adds more ringing. (This filter is an alias for jinc-windowed jinc) -option = ewa_lanczossharp A slightly sharpened version of ewa_lanczos, preconfigured to use an ideal radius and parameter. If your hardware can run it, this is probably what you should use by default. -option = mitchell Mitchell-Netravali. The B and C parameters can be set with scale-param1 and scale-param2. This filter is very good at downscaling (see dscale). -option = oversample A version of nearest neighbour that (naively) oversamples pixels, so that pixels overlapping edges get linearly interpolated instead of rounded. This essentially removes the small imperfections and judder artifacts caused by nearest-neighbour interpolation, in exchange for adding some blur. This filter is good at temporal interpolation, and also known as "smoothmotion" (see tscale). +[setting] +name = log-file +file = mpv +filter = 基础 +type = string +width = 500 +help = 输出libmpv的日志,须指定文件名+(可选)相对/绝对路径\n例:~~desktop/mpvnet_CM.log\n(无路径将默认生成在程序目录下) [setting] -name = dscale -file = mpv -default = -filter = Video -help = Like scale, but apply these filters on downscaling instead. \nIf no option is selected, it will keep the same with the upscaler. +name = border +file = mpv +default = yes +filter = 功能 +help = 窗口边框装饰 -option = bilinear Bilinear hardware texture filtering (fastest, very low quality). -option = spline36 Mid quality and speed. This is the default when using gpu-hq. -option = lanczos Lanczos scaling. Provides mid quality and speed. Generally worse than spline36, but it results in a slightly sharper image which is good for some content types. The number of taps can be controlled with scale-radius, but is best left unchanged. (This filter is an alias for sinc-windowed sinc) -option = ewa_lanczos Elliptic weighted average Lanczos scaling. Also known as Jinc. Relatively slow, but very good quality. The radius can be controlled with scale-radius. Increasing the radius makes the filter sharper but adds more ringing. (This filter is an alias for jinc-windowed jinc) -option = ewa_lanczossharp A slightly sharpened version of ewa_lanczos, preconfigured to use an ideal radius and parameter. If your hardware can run it, this is probably what you should use by default. -option = mitchell Mitchell-Netravali. The B and C parameters can be set with scale-param1 and scale-param2. This filter is very good at downscaling (see dscale). -option = oversample A version of nearest neighbour that (naively) oversamples pixels, so that pixels overlapping edges get linearly interpolated instead of rounded. This essentially removes the small imperfections and judder artifacts caused by nearest-neighbour interpolation, in exchange for adding some blur. This filter is good at temporal interpolation, and also known as "smoothmotion" (see tscale). +option = yes +option = no [setting] -name = dither-depth -file = mpv +name = ontop +file = mpv default = no -filter = Video -help = Set dither target depth to N. Note that the depth of the connected video display device cannot be detected. Often, LCD panels will do dithering on their own, which conflicts with this option and leads to ugly output. +filter = 功能 +help = 窗口置顶 -option = no Disable any dithering done by mpv. -option = auto Automatic selection. If output bit depth cannot be detected, 8 bits per component are assumed. -option = 8 Dither to 8 bit output. -option = 10 Dither to 10 bit output. +option = yes +option = no [setting] -name = correct-downscaling -file = mpv -default = no -filter = Video -help = When using convolution based filters, extend the filter size when downscaling. Increases quality, but reduces performance while downscaling.\n\nThis will perform slightly sub-optimally for anamorphic video (but still better than without it) since it will extend the size to match only the milder of the scale factors between the axes. +name = autofit +file = mpv +filter = 功能 +help = <整数> 初始窗口高度(百分比),默认:60 + +[setting] +name = autofit-smaller +file = mpv +filter = 功能 +help = <整数> 初始窗口最小高度(百分比),默认:10 -option = yes -option = no +[setting] +name = autofit-larger +file = mpv +filter = 功能 +help = <整数> 初始窗口最大高度(百分比),默认:80 + +[setting] +name = keepaspect-window +file = mpv +default = yes +filter = 功能 +help = 将窗口尺寸锁定为视频比例 + +option = yes +option = no [setting] -name = sigmoid-upscaling -file = mpv +name = pause +file = mpv default = no -filter = Video -help = When upscaling, use a sigmoidal color transform to avoid emphasizing ringing artifacts. This also implies linear-scaling. +filter = 功能 +help = 暂停状态启动播放器 + +option = yes +option = no + +[setting] +name = loop-playlist +file = mpv +filter = 功能 +help = <数字|inf|force|no> 播放列表循环次数,inf为无限,force类似但不跳过被标记为失效的文件,默认:1 + +[setting] +name = hr-seek-framedrop +file = mpv +default = yes +filter = 功能 +help = 跳转时丢帧 -option = yes -option = no +option = yes 有助于更快的精确跳转 +option = no 可避免在SVP/mvtools补帧时音画失去同步 [setting] -name = deband -file = mpv +name = save-position-on-quit +file = mpv default = no -filter = Video -help = Enable the debanding algorithm. This greatly reduces the amount of visible banding, blocking and other quantization artifacts, at the expense of very slightly blurring some of the finest details. In practice, it's virtually always an improvement - the only reason to disable it would be for performance. +filter = 功能 +help = 退出时记住播放状态 -option = yes -option = no +option = yes +option = no [setting] -name = d3d11va-zero-copy -file = mpv +name = watch-later-options +file = mpv +filter = 功能 +help = 稍后观看的属性白名单(预设只保存vid,aid,sid) +url = https://mpv.io/manual/master/#options-watch-later-options + +[setting] +name = image-display-duration +file = mpv +filter = 功能 +help = <数字|inf> 当前文件为图片时,指定播放的时间(秒),特殊值inf表示无限,默认:1 + +[setting] +name = demuxer-max-bytes +file = mpv +filter = 功能 +type = string +help = 播放网络资源时预缓存的大小,例:150MiB + +[setting] +name = osd-on-seek +file = mpv +default = bar +filter = OSD +help = 跳转时弹出信息 + +option = no +option = bar 显示进度条 +option = msg 显示文字 +option = msg-bar 显示文字和进度条 + +[setting] +name = osd-bar-w +file = mpv +filter = OSD +help = <1-100> OSD进度条长度,默认:75,建议:100 + +[setting] +name = osd-bar-h +file = mpv +filter = OSD +help = <0.1-50> OSD进度条宽度,默认:3.125,建议:2 + +[setting] +name = osd-bar-align-y +file = mpv +filter = OSD +help = <-1-1> OSD进度条的垂直位置,0为居中,建议:-1 + +[setting] +name = osd-border-size +file = mpv +filter = OSD +help = OSD字体边框厚度,0为无,默认:3,建议:1 + +[setting] +name = osd-font-size +file = mpv +filter = OSD +help = OSD字体大小,默认:55,建议:40 + +[setting] +name = osd-fractions +file = mpv default = no -filter = Video -help = By default, when using hardware decoding with --gpu-api=d3d11, the video image will be copied (GPU-to-GPU) from the decoder surface to a shader resource. Set this option to avoid that copy by sampling directly from the decoder image. This may increase performance and reduce power usage, but can cause the image to be sampled incorrectly on the bottom and right edges due to padding, and may invoke driver bugs, since Direct3D 11 technically does not allow sampling from a decoder surface (though most drivers support it.) +filter = OSD +help = 以秒为单位显示OSD时间(毫秒精度),有助于查看视频帧的精确时间戳 -option = yes -option = no +option = yes +option = no [setting] -name = hdr-compute-peak -file = mpv -default = auto -filter = Video -help = Compute the HDR peak and frame average brightness per-frame instead of relying on tagged metadata. These values are averaged over local regions as well as over several frames to prevent the value from jittering around too much. This option basically gives you dynamic, per-scene tone mapping. Requires compute shaders, which is a fairly recent OpenGL feature, and will probably also perform horribly on some drivers, so enable at your own risk. The special value auto (default) will enable HDR peak computation automatically if compute shaders and SSBOs are supported. +name = osd-duration +file = mpv +filter = OSD +help = OSD持续时间(毫秒),默认:2000 -option = auto -option = yes -option = no +[setting] +name = ao +file = mpv +default = +filter = 音频 +help = 指定音频输出驱动 + +option = wasapi (推荐) +option = openal +option = sdl [setting] -name = allow-delayed-peak-detect -file = mpv -default = yes -filter = Video -help = When using --hdr-compute-peak, allow delaying the detected peak by a frame when beneficial for performance. In particular, this is required to avoid an unnecessary FBO indirection when no advanced rendering is required otherwise. Has no effect if there already is an indirect pass, such as when advanced scaling is enabled. (Only affects --vo=gpu-next, note that --vo=gpu always delays the peak.) +name = audio-device +file = mpv +filter = 音频 +type = string +width = 500 +help = 可用的设备名在右键菜单中:工具 > 输出文本 > 音频设备列表,默认:auto\n例:wasapi/aaaa8888-bb44-cc44-dd44-eeeeee121212 +url = https://mpv.io/manual/master/#options-audio-device -option = yes -option = no +[setting] +name = volume +file = mpv +filter = 音频 +help = 启动音量,默认:70,建议:100 [setting] -name = volume -file = mpv -filter = Audio -help = Set the startup volume. 0 means silence, 100 means no volume reduction or amplification. Negative values can be passed for compatibility, but are treated as 0. Since mpv 0.18.1, this always controls the internal mixer (aka "softvol"). Default: 100 +name = volume-max +file = mpv +filter = 音频 +help = <100.0-1000.0> 可调节的最大音量,默认:130\nmpv的音量值并非线性递增,130的响度约为100的两倍 [setting] -name = remember-volume -file = mpvnet +name = audio-file-auto +file = mpv +default = no +filter = 音频 +help = 加载外挂音轨,建议:fuzzy + +option = no +option = all 同目录下所有支持的音频文件 +option = exact 同名(精确名) +option = fuzzy 同名(模糊名) + +[setting] +name = audio-pitch-correction +file = mpv default = yes -filter = Audio -help = Save volume and mute on exit and restore it on start. (mpv.net specific option) +filter = 音频 +help = 变速播放时修正音调 -option = yes -option = no +option = yes +option = no 关闭可获得更好的性能表现,但声音会变得诡异 [setting] -name = alang -file = mpv -filter = Audio -type = string -help = Specify a priority list of audio languages to use. Different container formats employ different language codes. DVDs use ISO 639-1 two-letter language codes, Matroska, MPEG-TS and NUT use ISO 639-2 three-letter language codes, while OGM uses a free-form identifier. See also aid.\n\nExamples\n\nmpv dvd://1 alang=hu,en chooses the Hungarian language track on a DVD and falls back on English if Hungarian is not available.\n\nmpv alang=jpn example.mkv plays a Matroska file with Japanese audio. +name = audio-exclusive +file = mpv +default = no +filter = 音频 +help = 音频通道独占 + +option = yes +option = no + +[setting] +name = audio-channels +file = mpv +default = auto-safe +filter = 音频 +help = 控制输出的音频通道数量 + +option = auto-safe 自动,部分系统无法执行自动下混 +option = stereo 强制下混多声道音源为立体声输出 +option = 5.1,stereo 兼容5.1系统 +option = 7.1,5.1,stereo 兼容7.1系统 [setting] -name = audio-file-auto -file = mpv +name = video-sync +file = mpv +default = audio +filter = 视频 +help = 同步模式 + +option = audio 最佳兼容与性能模式 +option = display-resample 重采样以匹配显示器刷新率 + +[setting] +name = interpolation +file = mpv default = no -filter = Audio -help = Load additional audio files matching the video filename. The parameter specifies how external audio files are matched. +filter = 视频 +help = 减少帧率和刷新率不匹配而引起的抖动,启用前须使用--video-sync=display-resample -option = no Don't automatically load external audio files. -option = exact Load the media filename with audio file extension. -option = fuzzy Load all audio files containing media filename. -option = all Load all audio files in the current and audio-file-paths directories. +option = yes +option = no [setting] -name = audio-device -file = mpv -filter = Audio -type = string -url = https://mpv.io/manual/master/#options-audio-device -help = Use the given audio device. This consists of the audio output name, e.g. alsa, followed by /, followed by the audio output specific device name. The default value for this option is auto, which tries every audio output in preference order with the default device.\nAvailable devices can be found in the mpv.net context menu under:\nView > Show Audio Devices +name = interpolation-preserve +file = mpv +default = yes +filter = 视频 +help = 即使渲染器参数变动也保留前几帧的插值结果,以轻度延迟为代价使动态更新更加顺畅\n(--vo=gpu-next独占) + +option = yes +option = no [setting] -name = slang -file = mpv -filter = Subtitle -type = string -help = Specify a priority list of subtitle languages to use. Different container formats employ different language codes. DVDs use ISO 639-1 two letter language codes, Matroska uses ISO 639-2 three letter language codes while OGM uses a free-form identifier. See also sid. +name = tscale +file = mpv +default = mitchell +filter = 视频 +help = 时间插值算法,启用前须使用--interpolation=yes + +option = bicubic 最平滑(糊) +option = spline16 +option = mitchell 综合下平衡的选择 +option = sphinx +option = oversample 最清晰(卡),类SmoothMotion [setting] -name = sub-auto -file = mpv -default = exact -filter = Subtitle -help = Load additional subtitle files matching the video filename. The parameter specifies how external subtitle files are matched. exact is enabled by default. +name = cscale +file = mpv +default = bilinear +filter = 视频 +help = 色度还原算法(422/420→444) -option = no Don't automatically load external subtitle files. -option = exact Load the media filename with subtitle file extension. -option = fuzzy Load all subs containing media filename. -option = all Load all subs in the current and sub-file-paths directories. +option = bilinear 双线性(最快) +option = catmull_rom +option = spline36 +option = jinc [setting] -name = sub-font -file = mpv -filter = Subtitle -type = string -help = Specify font to use for subtitles that do not themselves specify a particular font. The default is sans-serif. +name = scale +file = mpv +default = bilinear +filter = 视频 +help = 图像放大算法 + +option = nearest 最邻近算法只擅长整数倍缩放 +option = bilinear +option = spline36 +option = lanczos +option = sinc +option = ewa_lanczossharp 类jinc [setting] -name = sub-font-size -file = mpv -filter = Subtitle -help = Specify the sub font size. The unit is the size in scaled pixels at a window height of 720. The actual pixel size is scaled with the window height: if the window height is larger or smaller than 720, the actual size of the text increases or decreases as well. Default: 55 +name = dscale +file = mpv +default = +filter = 视频 +help = 图像缩小算法。\n不选任何选项即(默认)跟随--scale的算法 + +option = bilinear +option = spline36 +option = mitchell +option = catmull_rom +option = lanczos [setting] -name = sub-color -file = mpv -type = color -filter = Subtitle -help = Specify the color used for unstyled text subtitles.\n\nThe color is specified in the form r/g/b, where each color component is specified as number in the range 0.0 to 1.0. It's also possible to specify the transparency by using r/g/b/a, where the alpha value 0 means fully transparent, and 1.0 means opaque. If the alpha component is not given, the color is 100% opaque.\n\nPassing a single number to the option sets the sub to gray, and the form gray/a lets you specify alpha additionally.\n\nExamples\n\n1.0/0.0/0.0 set sub to opaque red\n1.0/0.0/0.0/0.75 set sub to opaque red with 75% alpha\n0.5/0.75 set sub to 50% gray with 75% alpha\n\nAlternatively, the color can be specified as a RGB hex triplet in the form #RRGGBB, where each 2-digit group expresses a color value in the range 0 (00) to 255 (FF). For example, #FF0000 is red. This is similar to web colors. Alpha is given with #AARRGGBB.\n\nExamples\n\n#FF0000 set sub to opaque red\n#C0808080 set sub to 50% gray with 75% alpha +name = sigmoid-upscaling +file = mpv +default = no +filter = 视频 +help = 放大时非线性的颜色转换,可避免强振铃伪影\n使用adaptive-sharpen.glsl时须关闭 + +option = yes +option = no [setting] -name = sub-border-color -file = mpv -type = color -filter = Subtitle -help = See sub-color. Color used for the sub font border. Ignored when sub-back-color is specified (or more exactly: when that option is not set to completely transparent). +name = linear-downscaling +file = mpv +default = no +filter = 视频 +help = 在缩小算法中线性处理可以提升颜色对比度的精确性\n使用SSimDownscaler.glsl时须关闭 + +option = yes +option = no [setting] -name = sub-back-color -file = mpv -type = color -filter = Subtitle -help = See sub-color. Color used for sub text background. You can use sub-shadow-offset to change its size relative to the text. +name = correct-downscaling +file = mpv +default = no +filter = 视频 +help = 增强缩小算法的质量,对于异形比例视频可能产生微小失真(当--dscale=bilinear时无效) + +option = yes +option = no [setting] -name = fullscreen -file = mpv +name = dither-depth +file = mpv default = no -filter = Screen -help = Start the player in fullscreen mode. +filter = 视频 +help = 色深抖动以弥补色彩转换损失(--gpu-api=vulkan时无法进行自动判断)\n手动指定的数值等于显示驱动中设定的值,非原生10bit的显示器根据实际画面效果更改 -option = yes -option = no +option = no +option = auto +option = 8 抖动到8位输出 +option = 10 抖动到10位输出 [setting] -name = border -file = mpv -default = yes -filter = Screen -help = Show window with decoration (titlebar, border). +name = dither +file = mpv +default = fruit +filter = 视频 +help = 抖动算法 -option = yes -option = no +option = no 通常由--dither-depth=no控制关闭抖动,此项可能无效 +option = fruit +option = ordered +option = error-diffusion 性能要求较高,共享内存不足时将自动切换回fruit [setting] -name = screen -file = mpv -filter = Screen -help = <0-32> In multi-monitor configurations (i.e. a single desktop that spans across multiple displays), this option tells mpv which screen to display the video on. +name = deband +file = mpv +default = no +filter = 视频 +help = 去色带(受解码模式影响实际效果) + +option = yes +option = no [setting] -name = osd-playing-msg -file = mpv -width = 300 -filter = Screen -type = string -help = Show a message on OSD when playback starts. The string is expanded for properties, e.g. osd-playing-msg='file: ${filename}' will show the message file: followed by a space and the currently played filename. For more information visit: -url = https://mpv.io/manual/master/#property-expansion +name = icc-profile-auto +file = mpv +default = no +filter = 色彩管理 +help = 自动使用系统当前的ICC文件 + +option = yes +option = no [setting] -name = osd-font-size -file = mpv -filter = Screen -help = Specify the OSD font size. See sub-font-size for details. Default: 55 +name = icc-profile +file = mpv +filter = 色彩管理 +type = string +width = 500 +help = (当--icc-profile-auto=no时)手动指定ICC文件 [setting] -name = osd-duration -file = mpv -filter = Screen -help = Set the duration of the OSD messages in ms. Default: 1000 +name = icc-3dlut-size +file = mpv +filter = 色彩管理 +help = <2-512> 根据ICC文件生成3dlut的每通道数量,默认:64x64x64\n(实际最大有效值由ICC视频卡伽马表的上限决定) [setting] -name = osd-scale-by-window -file = mpv -default = yes -filter = Screen -help = Whether to scale the OSD with the window size. If this is disabled, osd-font-size and other OSD options that use scaled pixels are always in actual pixels. The effect is that changing the window size won't change the OSD font size. +name = icc-force-contrast +file = mpv +filter = 色彩管理 +type = string +help = 覆盖ICC文件内的静态对比度数据,默认no为不覆盖,oled可以设置为inf即无限(如果ICC中此项数据丢失则自动回落到1000)\n此项只影响BT.1886的内容显示 -option = yes -option = no +[setting] +name = icc-intent +file = mpv +default = 1 +filter = 色彩管理 +help = ICC的色彩转换映射意图 + +option = 0 感知 +option = 1 相对色度 +option = 2 饱和度 +option = 3 绝对色度 [setting] -name = autofit -file = mpv -filter = Screen -help = Initial window height in percent. Default: 60 +name = image-lut +file = mpv +filter = 色彩管理 +type = string +width = 500 +help = 加载自定义的LUT文件(Adobe.cube格式),在图像解码时应用于颜色\n(--vo=gpu-next独占) [setting] -name = autofit-smaller -file = mpv -filter = Screen -help = Minimum window height in percent. Default: 10 +name = image-lut-type +file = mpv +default = auto +filter = 色彩管理 +help = 选择--image-lut的LUT转换模式\n(--vo=gpu-next独占) + +option = auto 自动。从标记的元数据中选择,否则回退到native +option = native 在解码为RGB之前,在其原始色彩空间中应用于原始图像内容 +option = normalized 应用于规范化的RGB图像内容,从其原始色彩编码解码后,但在线性化之前 +option = conversion 完全取代颜色解码 [setting] -name = autofit-larger -file = mpv -filter = Screen -help = Maximum window height in percent. Default: 80 +name = lut +file = mpv +filter = 色彩管理 +type = string +width = 500 +help = 加载自定义的LUT文件(Adobe.cube格式),作为颜色转换的一部分应用于颜色\n(--vo=gpu-next独占) [setting] -name = start-size -file = mpvnet -default = height-session -filter = Screen -help = Setting to remember the window size. (mpv.net specific option) +name = lut-type +file = mpv +default = auto +filter = 色彩管理 +help = 选择--lut的LUT转换模式\n(--vo=gpu-next独占) + +option = auto 自动。从标记的元数据中选择,否则回退到native +option = native 在转换到输出的色彩空间之前,应用于原始RGB色彩空间的原始图像内容(非线性光) +option = normalized 在转换到输出色彩空间之前,应用于线性光下的标准化RGB图像内容 +option = conversion 完全取代从图像颜色空间到输出颜色空间的转换。它具有最高的优先权,并优先于任何ICC配置文件,以及与色调映射和输出测色有关的选项(--target-prim--target-trc等) + +[setting] +name = target-prim +file = mpv +default = auto +filter = 色彩管理 +help = 当不使用ICC文件时,视频将适应此色彩空间 + +option = auto SRGB屏无需更改 +option = adobe Adobe RGB +option = bt.2020 +option = display-p3 + +[setting] +name = target-trc +file = mpv +filter = 色彩管理 +type = string +help = 当不使用ICC文件时,指定显示器的伽马,视频将适应此曲线\n通常无需改动默认值auto即推荐值 +url = https://mpv.io/manual/master/#options-target-trc + +[setting] +name = target-lut +file = mpv +filter = 色彩管理 +type = string +width = 500 +help = 加载自定义的LUT文件(Adobe.cube格式),在编码到目标色彩空间和应用--target-trc后,在屏幕上显示前应用于颜色\n(--vo=gpu-next独占) + +[setting] +name = input-ipc-server +file = mpv +filter = 高级 +type = string +width = 500 +help = IPC支持,输入监听路径\n例:如需开启SVP Manager支持,填写:mpvpipe + +[setting] +name = osc +file = mpv +default = yes +filter = 高级 +help = 使用内置OSC脚本的功能 -option = width-session Window width is remembered in the current session -option = width-always Window width is always remembered -option = height-session Window height is remembered in the current session -option = height-always Window height is always remembered -option = video Window size is set to video resolution -option = session Window size is remembered in the current session -option = always Window size is always remembered +option = yes +option = no [setting] -name = keepaspect-window -file = mpv +name = load-scripts +file = mpv default = yes -filter = Screen -help = keepaspect-window will lock the window size to the video aspect. Default: yes +filter = 高级 +help = 自动挂载设置目录/scripts/中的外挂脚本 -option = yes -option = no +option = yes +option = no [setting] -name = start-threshold -file = mpvnet -filter = Screen -help = Threshold in milliseconds to wait for libmpv returning the video resolution before the window is shown, otherwise default dimensions are used as defined by autofit and start-size. Default: 1500 (mpv.net specific option) +name = vf +file = mpv +filter = 高级 +type = string +width = 500 +help = 跟随程序启动时加载的视频滤镜(很多不支持非-copy的硬解模式) +url = https://mpv.io/manual/master/#video-filters-vf [setting] -name = minimum-aspect-ratio -file = mpvnet -filter = Screen -help = Minimum aspect ratio, if the AR is smaller than the defined value then the window AR is set to 16/9. This avoids a square window for Music with cover art. Default: 1.2 (mpv.net specific option) +name = glsl-shaders +file = mpv +filter = 高级 +type = string +width = 500 +help = 跟随程序启动时加载的着色器 +url = https://mpv.io/manual/master/#options-glsl-shaders [setting] -name = remember-window-position -file = mpvnet -default = no -filter = Screen -help = Save the window position on exit. (mpv.net specific option) +name = sub-auto +file = mpv +default = exact +filter = 字幕 +help = 加载外挂字幕,建议:fuzzy -option = yes -option = no +option = no +option = all 同目录下所有支持的字幕文件 +option = exact 同名(精确名) +option = fuzzy 同名(模糊名) [setting] -name = window-maximized -file = mpv +name = sub-file-paths +file = mpv +filter = 字幕 +type = string +width = 500 +help = 指定额外目录搜索与视频匹配的字幕,例:sub;subtitles;字幕 +url = https://mpv.io/manual/master/#options-sub-file-paths + +[setting] +name = slang +file = mpv +filter = 字幕 +type = string +help = 字幕语言优先,例:chs,sc,zh,chi,zho + +[setting] +name = blend-subtitles +file = mpv default = no -filter = Screen -help = Start with a maximized window. +filter = 字幕 +help = 混合字幕到视频帧上,字幕被限制在画面内 -option = yes -option = no +option = yes 当--interpolation=yes时还会增强高级字幕的渲染性能 +option = video 类似yes,字幕将先以原始分辨率绘制,后与视频共同缩放 +option = no 适用于HDR片源,避免检测字幕亮度 [setting] -name = screenshot-directory -file = mpv -width = 500 -type = folder -filter = Screen -help = Store screenshots in this directory. This path is joined with the filename generated by screenshot-template. If the template filename is already absolute, the directory is ignored.\n\nIf the directory does not exist, it is created on the first screenshot. If it is not a directory, an error is generated when trying to write a screenshot. +name = sub-font +file = mpv +filter = 字幕 +type = string +help = 文本字幕缺省字体的替代,默认:sans-serif,例:YouYuan [setting] -name = screenshot-format -file = mpv -default = jpg -filter = Screen -help = Set the image file type used for saving screenshots. +name = sub-font-size +file = mpv +filter = 字幕 +help = 纯文本字幕的字体大小,默认:55 -option = jpg -option = png +[setting] +name = sub-color +file = mpv +type = color +filter = 字幕 +help = 纯文本字幕的字体颜色 + +[setting] +name = sub-back-color +file = mpv +type = color +filter = 字幕 +help = 纯文本字幕的底纹颜色,例:#641C1C1C [setting] -name = screenshot-tag-colorspace -file = mpv +name = sub-use-margins +file = mpv +default = yes +filter = 字幕 +help = 纯文本字幕输出在黑边 + +option = yes +option = no + +[setting] +name = sub-ass-force-margins +file = mpv default = no -filter = Screen -help = Tag screenshots with the appropriate colorspace. Note that not all formats are supported. +filter = 字幕 +help = ASS/SSA高级字幕尽可能输出黑边(当--blend-subtitles=yes/video时无效) -option = yes -option = no +option = yes +option = no + +[setting] +name = sub-ass-force-style +file = mpv +type = string +width = 500 +filter = 字幕 +help = 强制预更改ass/ssa字幕样式\n例如无视标记而不缩放边框和阴影(模仿vsfilter):ScaledBorderAndShadow=no [setting] -name = screenshot-high-bit-depth -file = mpv +name = sub-ass-vsfilter-aspect-compat +file = mpv default = yes -filter = Screen -help = If possible, write screenshots with a bit depth similar to the source video. This is interesting in particular for PNG, as this sometimes triggers writing 16 bit PNGs with huge file sizes. This will also include an unused alpha channel in the resulting files if 16 bit is used. +filter = 字幕 +help = 播放非常规比例视频时拉伸ass/ssa字幕(模仿vsfilter) -option = yes -option = no +option = yes +option = no [setting] -name = screenshot-jpeg-source-chroma -file = mpv +name = sub-ass-vsfilter-blur-compat +file = mpv default = yes -filter = Screen -help = Write JPEG files with the same chroma subsampling as the video. If disabled, the libjpeg default is used. +filter = 字幕 +help = 通过视频分辨率而不是ass/ssa字幕指定的分辨率缩放/blur标签(模仿vsfilter) -option = yes -option = no +option = yes +option = no [setting] -name = screenshot-template -file = mpv -filter = Screen -type = string -help = Specify the filename template used to save screenshots. The template specifies the filename without file extension, and can contain format specifiers, which will be substituted when taking a screenshot. By default, the template is mpv-shot%n, which results in filenames like mpv-shot0012.png for example.\n\nFind the full documentation here: -url = https://mpv.io/manual/master/#options-screenshot-template +name = sub-ass-vsfilter-color-compat +file = mpv +default = basic +filter = 字幕 +help = ASS字幕色彩处理(模仿vsfilter) +url = https://mpv.io/manual/master/#options-sub-ass-vsfilter-color-compat + +option = basic +option = full +option = force-601 +option = no [setting] -name = screenshot-jpeg-quality -file = mpv -filter = Screen -help = <0-100> Set the JPEG quality level. Higher means better quality. The default is 90. +name = stretch-image-subs-to-screen +file = mpv +default = no +filter = 字幕 +help = PGS/SUP图形字幕尽可能输出在黑边,强制拉伸图形字幕到缩放分辨率而不是参考视频分辨率(可能破坏显示效果) + +option = yes +option = no [setting] -name = screenshot-png-compression -file = mpv -filter = Screen -help = <0-9> Set the PNG compression level. Higher means better compression. This will affect the file size of the written screenshot file and the time it takes to write a screenshot. Too high compression might occupy enough CPU time to interrupt playback. The default is 7. +name = screenshot-template +file = mpv +filter = 截图 +type = string +width = 500 +help = 截图保存模板,在模板中写入路径,否则将保存在桌面\n推荐:~~desktop/MPV-%P-N%n +url = https://mpv.io/manual/master/#options-screenshot-template [setting] -name = screenshot-png-filter -file = mpv -filter = Screen -help = <0-5> Set the filter applied prior to PNG compression. 0 is none, 1 is 'sub', 2 is 'up', 3 is 'average', 4 is 'Paeth', and 5 is 'mixed'. This affects the level of compression that can be achieved. For most images, 'mixed' achieves the best compression ratio, hence it is the default. +name = screenshot-format +file = mpv +default = jpg +filter = 截图 +help = 截图输出格式 + +option = jpg +option = png +option = webp [setting] -name = taskbar-progress -file = mpv +name = screenshot-jpeg-quality +file = mpv +filter = 截图 +help = <0-100> JPEG质量等级,默认:90,建议:100 + +[setting] +name = screenshot-jpeg-source-chroma +file = mpv default = yes -filter = Playback -help = Show progress in taskbar. +filter = 截图 +help = JPEG使用与视频相同的色度半采样 -option = yes -option = no +option = yes +option = no [setting] -name = keep-open-pause -file = mpv -default = yes -filter = Playback -help = If set to no, instead of pausing when keep-open is active, just stop at end of file and continue playing forward when you seek backwards until end where it stops again. +name = screenshot-png-compression +file = mpv +filter = 截图 +help = <0-9> PNG压缩等级,默认:7,建议:5\n无损压缩不影响质量,越高的等级可让生成的文件越小,但需要更高性能和更多时间 -option = yes -option = no +[setting] +name = screenshot-png-filter +file = mpv +filter = 截图 +help = <0-5> PNG压缩过滤器,默认值已实现最佳压缩率:5 [setting] -name = keep-open -file = mpv +name = screenshot-webp-lossless +file = mpv default = no -filter = Playback -help = Using no, mpv would terminate after the last file but mpv.net never terminates automatically. +filter = 截图 +help = WEBP采用无损 -option = yes If the current file ends, go to the next file, keep the last file open. -option = no If the current file ends, go to the next file. -option = always Playback will never automatically advance to the next file. +option = yes +option = no [setting] -name = auto-play -file = mpvnet +name = screenshot-webp-quality +file = mpv +filter = 截图 +help = <0-100> WEBP质量等级(--screenshot-webp-lossless=no时生效),默认:75,建议:100 + +[setting] +name = screenshot-webp-compression +file = mpv +filter = 截图 +help = <0-6> WEBP压缩等级,默认:4,建议:0\n当采用有损WEBP时,此项也会影响质量 + +[setting] +name = screenshot-tag-colorspace +file = mpv default = no -filter = Playback -help = Sets pause=no on file load and selecting from the playlist. (mpv.net specific option) +filter = 截图 +help = 使用合适的色彩空间标记屏幕截图(不完全支持所有格式) -option = yes -option = no +option = yes +option = no [setting] -name = loop-file -file = mpv -filter = Playback -help = Loop a single file N times. inf means forever, no means normal playback.\n\nThe difference to loop-playlist is that this doesn't loop the playlist, just the file itself. If the playlist contains only a single file, the difference between the two option is that this option performs a seek on loop, instead of reloading the file. loop is an alias for this option. +name = screenshot-high-bit-depth +file = mpv +default = yes +filter = 截图 +help = 尽可能以高位深输出截图(对PNG尤其有效) + +option = yes +option = no [setting] -name = save-position-on-quit -file = mpv +name = d3d11-output-csp +file = mpv +default = auto +filter = HDR +help = HDR输出模式 + +option = auto 转换为SDR输出 +option = pq (实验性)直出,需要预先开启win10hdr并将播放器切换到全屏状态 + +[setting] +name = target-colorspace-hint +file = mpv default = no -filter = Playback -help = Always save the current playback position on quit. When this file is played again later, the player will seek to the old playback position on start. This does not happen if playback of a file is stopped in any other way than quitting. For example, going to the next file in the playlist will not save the position, and start playback at beginning the next time the file is played.\n\nThis behavior is disabled by default, but is always available when quitting the player with Shift+Q. +filter = HDR +help = 自动配置显示器的输出色彩空间实现HDR直通(需要驱动支持,建议在--gpu-api=vulkan下使用)\n(--vo=gpu-next独占) -option = yes -option = no +option = yes +option = no [setting] -name = watch-later-options -file = mpv -filter = Playback -help = The options that are saved in "watch later" files if they have been changed since when mpv started. These values will be restored the next time the files are played. This is a string list option. For more information visit: -url = https://mpv.io/manual/master/#options-watch-later-options +name = tone-mapping +file = mpv +default = auto +filter = HDR +help = 色调映射算法 + +option = auto 自动 +option = clip 硬性裁切 +option = mobius 倾向于保留对比度与色彩 +option = reinhard 保留整体亮度但使用非线性对比度 +option = hable 倾向于保留细节 +option = bt.2390 综合的平衡选择 +option = gamma 拟合对数 +option = linear 线性拉伸色域 +option = spline 感知线性(--vo=gpu-next独占) +option = bt.2446a 适用于精心制作的源(--vo=gpu-next独占) + +[setting] +name = tone-mapping-param +file = mpv +filter = HDR +url = https://mpv.io/manual/master/#options-tone-mapping-param + +[setting] +name = tone-mapping-mode +file = mpv +default = auto +filter = HDR +help = 色调映射模式 + +option = auto +option = rgb +option = max +option = hybrid +option = luma (--vo=gpu-next独占) [setting] -name = hr-seek -file = mpv -default = absolute -filter = Playback -help = Select when to use precise seeks that are not limited to keyframes. Such seeks require decoding video from the previous keyframe up to the target position and so can take some time depending on decoding performance. For some video formats, precise seeks are disabled. This option selects the default choice to use for seeks; it is possible to explicitly override that default in the definition of key bindings and in input commands. +name = hdr-compute-peak +file = mpv +default = auto +filter = HDR +help = 计算每帧的HDR峰值和帧平均亮度,它提供了基础的场景动态色调映射\n此功能需要支持OpenGL4.3及之后版本的显卡 -option = yes Use precise seeks whenever possible. -option = no Never use precise seeks. -option = absolute Use precise seeks if the seek is to an absolute position in the file, such as a chapter seek, but not for relative seeks like the default behavior of arrow keys. -option = always Same as yes (for compatibility). +option = auto +option = yes +option = no [setting] -name = track-auto-selection -file = mpv +name = allow-delayed-peak-detect +file = mpv default = yes -filter = Playback -help = Enable the default track auto-selection. Enabling this will make the player select streams according to aid, alang, and others. If it is disabled, no tracks are selected. In addition, the player will not exit if no tracks are selected, and wait instead (this wait mode is similar to pausing, but the pause option is not set).\n\nThis is useful with lavfi-complex: you can start playback in this mode, and then set select tracks at runtime by setting the filter graph. Note that if lavfi-complex is set before playback is started, the referenced tracks are always selected. +filter = HDR +help = 当--hdr-compute-peak=yes时,如果对性能有利,允许将检测到的峰值延迟一帧。当不需要高级渲染时可避免不必要的FBO间接寻址\n(--vo=gpu-next独占) -option = yes -option = no +option = yes +option = no [setting] -name = loop-playlist -file = mpv -filter = Playback -help = Loops playback N times. A value of 1 plays it one time (default), 2 two times, etc. inf means forever. no is the same as 1 and disables looping. If several files are specified on command line, the entire playlist is looped. The force mode is like inf, but does not skip playlist entries which have been marked as failing. This means the player might waste CPU time trying to loop a file that doesn't exist. But it might be useful for playing webradios under very bad network conditions. +name = gamut-mapping-mode +file = mpv +default = auto +filter = HDR +help = 完成色调映射后的色域裁剪方式 + +option = auto +option = clip +option = warn +option = desaturate +option = darken (--vo=gpu-next独占) [setting] -name = auto-load-folder -file = mpvnet -default = yes -filter = Playback -help = For single files automatically load the entire directory into the playlist. Can be suppressed via shift key. (mpv.net specific option) +name = tone-mapping-max-boost +file = mpv +filter = HDR +help = <1.0-10.0> 平均亮度的最大曝光倍数,默认:1.0\n增大此值可显示暗处隐藏的细节,过高会使暗处看起来不自然地明亮\n(--vo=gpu独占) + +[setting] +name = tone-mapping-crosstalk +file = mpv +filter = HDR +help = <0.0-0.30> 设为非零有助于改善强饱和单色高光的外观,默认:0.04\n(--vo=gpu-next独占) -option = yes -option = no [setting] -name = input-ar-delay -file = mpv -filter = Input -help = Delay in milliseconds before we start to autorepeat a key (0 to disable). +name = tscale-param1 +file = mpv +filter = 专业 [setting] -name = input-ar-rate -file = mpv -filter = Input -help = Number of key presses to generate per second on autorepeat. +name = tscale-param2 +file = mpv +filter = 专业 [setting] -name = process-instance -file = mpvnet -default = single -filter = General -help = Defines if more then one mpv.net process is allowed. (mpv.net specific option)\n\nTip: Whenever the control key is pressed when files or URLs are opened, the playlist is not cleared but the files or URLs are appended to the playlist. This not only works on process startup but in all mpv.net features that open files and URLs. +name = tscale-blur +file = mpv +filter = 专业 + +[setting] +name = tscale-wblur +file = mpv +filter = 专业 + +[setting] +name = tscale-clamp +file = mpv +filter = 专业 + +[setting] +name = tscale-taper +file = mpv +filter = 专业 + +[setting] +name = tscale-wtaper +file = mpv +filter = 专业 + +[setting] +name = tscale-radius +file = mpv +filter = 专业 + +[setting] +name = tscale-antiring +file = mpv +filter = 专业 + +[setting] +name = tscale-window +file = mpv +filter = 专业 + +[setting] +name = tscale-wparam +file = mpv +filter = 专业 + +[setting] +name = cscale-param1 +file = mpv +filter = 专业 + +[setting] +name = cscale-param2 +file = mpv +filter = 专业 + +[setting] +name = cscale-blur +file = mpv +filter = 专业 + +[setting] +name = cscale-wblur +file = mpv +filter = 专业 + +[setting] +name = cscale-clamp +file = mpv +filter = 专业 + +[setting] +name = cscale-cutoff +file = mpv +filter = 专业 + +[setting] +name = cscale-taper +file = mpv +filter = 专业 + +[setting] +name = cscale-wtaper +file = mpv +filter = 专业 + +[setting] +name = cscale-radius +file = mpv +filter = 专业 + +[setting] +name = cscale-antiring +file = mpv +filter = 专业 + +[setting] +name = cscale-window +file = mpv +filter = 专业 + +[setting] +name = cscale-wparam +file = mpv +filter = 专业 + +[setting] +name = scale-param1 +file = mpv +filter = 专业 + +[setting] +name = scale-param2 +file = mpv +filter = 专业 + +[setting] +name = scale-blur +file = mpv +filter = 专业 + +[setting] +name = scale-wblur +file = mpv +filter = 专业 + +[setting] +name = scale-clamp +file = mpv +filter = 专业 + +[setting] +name = scale-cutoff +file = mpv +filter = 专业 + +[setting] +name = scale-taper +file = mpv +filter = 专业 + +[setting] +name = scale-wtaper +file = mpv +filter = 专业 + +[setting] +name = scale-radius +file = mpv +filter = 专业 + +[setting] +name = scale-antiring +file = mpv +filter = 专业 + +[setting] +name = scale-window +file = mpv +filter = 专业 -option = multi Create a new process everytime the shell starts mpv.net -option = single Force a single process everytime the shell starts mpv.net -option = queue Force a single process and add files to playlist +[setting] +name = scale-wparam +file = mpv +filter = 专业 + +[setting] +name = dscale-param1 +file = mpv +filter = 专业 + +[setting] +name = dscale-param2 +file = mpv +filter = 专业 + +[setting] +name = dscale-blur +file = mpv +filter = 专业 + +[setting] +name = dscale-wblur +file = mpv +filter = 专业 [setting] -name = recent-count -file = mpvnet -filter = General -help = Amount of recent files to be remembered. Default: 15 (mpv.net specific option) +name = dscale-clamp +file = mpv +filter = 专业 [setting] -name = video-file-extensions -file = mpvnet -filter = General -width = 500 -help = Video file extensions used to create file associations and used by the auto-load-folder feature. (mpv.net specific option) +name = dscale-cutoff +file = mpv +filter = 专业 + +[setting] +name = dscale-taper +file = mpv +filter = 专业 + +[setting] +name = dscale-wtaper +file = mpv +filter = 专业 + +[setting] +name = dscale-radius +file = mpv +filter = 专业 + +[setting] +name = dscale-antiring +file = mpv +filter = 专业 + +[setting] +name = dscale-window +file = mpv +filter = 专业 + +[setting] +name = dscale-wparam +file = mpv +filter = 专业 + +[setting] +name = dither-size-fruit +file = mpv +filter = 专业 + +[setting] +name = error-diffusion +file = mpv +default = sierra-lite +filter = 专业 + +option = simple +option = sierra-lite +option = floyd-steinberg +option = atkinson + + [setting] -name = audio-file-extensions -file = mpvnet -filter = General -width = 500 -help = Audio file extensions used to create file associations and used by the auto-load-folder feature. (mpv.net specific option) +name = show-logo +file = mpvnet +default = yes +filter = .NET专属 +help = 在mpv的原图标上绘制mpvnet的图标 + +option = yes +option = no [setting] -name = image-file-extensions -file = mpvnet -filter = General -width = 500 -help = Image file extensions used to create file associations and used by the auto-load-folder feature. (mpv.net specific option) +name = remember-volume +file = mpvnet +default = yes +filter = .NET专属 +help = 记住程序退出前的音量 + +option = yes +option = no [setting] -name = debug-mode -file = mpvnet +name = remember-window-position +file = mpvnet default = no -filter = General -help = Enable this only when a developer asks for it. (mpv.net specific option) +filter = .NET专属 +help = 记住窗口位置 -option = yes -option = no +option = yes +option = no [setting] -name = dark-mode -file = mpvnet -default = always -filter = UI -help = Changes between a light and dark theme.\nmpv.net must be restarted after a change.\nmpv.net specific option. +name = recent-count +file = mpvnet +filter = .NET专属 +help = <整数> 最近观看记录中保存的数量,默认:15 + +[setting] +name = start-size +file = mpvnet +default = height-session +filter = .NET专属 +help = 启动窗口大小,受--auto-fit限制 -option = always -option = system Available on Windows 10 or higher -option = never +option = width-session 记住当前宽度,退出后不保存 +option = width-always 始终记住当前宽度 +option = height-session 记住当前高度,退出后不保存 +option = height-always 始终记住当前高度 +option = video 源文件分辨率 +option = session 记住当前尺寸 +option = always 始终记住 [setting] -name = dark-theme -file = mpvnet -filter = UI -url = https://github.com/stax76/mpv.net/blob/master/docs/Manual.md#color-theme -help = Color theme used in dark mode.\nmpv.net must be restarted after a change.\nmpv.net specific option. Default: dark +name = start-threshold +file = mpvnet +filter = .NET专属 +help = 在显示窗口之前等待libmpv返回视频分辨率的阈值(毫秒),否则使用--autofit和--start-size定义的默认尺寸,默认:1500 [setting] -name = light-theme -file = mpvnet -filter = UI -url = https://github.com/stax76/mpv.net/blob/master/docs/Manual.md#color-theme -help = Color theme used in light mode.\nmpv.net must be restarted after a change.\nmpv.net specific option. Default: light +name = minimum-aspect-ratio +file = mpvnet +filter = .NET专属 +help = <小数> 最小纵横比,如果源纵横比小于定义值,则窗口纵横比设置为16比9,默认:1.2\n避免在显示音乐封面时使用方形窗口 [setting] -name = show-logo -file = mpvnet +name = auto-play +file = mpvnet +default = no +filter = .NET专属 +help = 强制自动播放,此项设置将覆盖程序启动时--pause选项的值 +option = yes +option = no + +[setting] +name = auto-load-folder +file = mpvnet default = yes -filter = UI -help = Draws the blue mpv.net logo ontop of the native OSC logo. +filter = .NET专属 +help = 打开单文件时自动挂载同目录其它文件到当前播放列表(点击确定按钮时可按Shift键阻止) + +option = yes +option = no + +[setting] +name = process-instance +file = mpvnet +default = single +filter = .NET专属 +help = 是否允许多个mpv.net进程 + +option = multi 每次启动mpv.net时创建一个新进程 +option = single 每次启动mpv.net时强制单进程 +option = queue 每次启动mpv.net时强制单进程,将后续文件添加到播放列表 -option = yes -option = no +[setting] +name = video-file-extensions +file = mpvnet +filter = .NET专属 +width = 500 +help = 视频文件扩展名列表,用于创建文件关联,并由自动加载文件夹功能使用 + +[setting] +name = audio-file-extensions +file = mpvnet +filter = .NET专属 +width = 500 +help = 音频文件扩展名列表,用于创建文件关联,并由自动加载文件夹功能使用 + +[setting] +name = image-file-extensions +file = mpvnet +filter = .NET专属 +width = 500 +help = 图片文件扩展名列表,用于创建文件关联,并由自动加载文件夹功能使用 + +[setting] +name = debug-mode +file = mpvnet +default = no +filter = .NET专属 + +option = yes +option = no + +[setting] +name = dark-mode +file = mpvnet +default = always +filter = .NET专属 +help = 深色模式(重启程序以完全生效) + +option = always 始终开启 +option = never 始终关闭 +option = system 跟随系统设置 + +[setting] +name = dark-theme +file = mpvnet +filter = .NET专属 +help = 深色模式中使用的颜色主题(重启程序以完全生效),默认:dark\n可选:bili +url = https://github.com/stax76/mpv.net/blob/master/docs/Manual_chs.md#配色主题 + +[setting] +name = light-theme +file = mpvnet +filter = .NET专属 +help = 浅色模式中使用的颜色主题(重启程序以完全生效),默认:light +url = https://github.com/stax76/mpv.net/blob/master/docs/Manual_chs.md#配色主题 diff --git a/src/Resources/input.conf.txt b/src/Resources/input.conf.txt index 453eec19..b2718bfa 100644 --- a/src/Resources/input.conf.txt +++ b/src/Resources/input.conf.txt @@ -1,210 +1,219 @@ -# https://github.com/stax76/mpv.net/blob/master/docs/Manual.md#input-and-context-menu - -o script-message mpv.net open-files #menu: Open > Open Files... -Ctrl+v script-message mpv.net open-clipboard #menu: Open > Open URL or file from clipboard -_ script-message mpv.net open-optical-media #menu: Open > Open DVD/Blu-ray Drive/Folder... -_ ignore #menu: Open > - -Alt+a script-message mpv.net load-audio #menu: Open > Load external audio files... -Alt+s script-message mpv.net load-sub #menu: Open > Load external subtitle files... -_ ignore #menu: Open > - -_ script-message mpv.net open-files append #menu: Open > Add files to playlist... -_ ignore #menu: Open > - -_ ignore #menu: Open > Recent - -_ ignore #menu: - -Space script-message mpv.net play-pause #menu: Play/Pause -Ctrl+s stop #menu: Stop -_ ignore #menu: - -Enter cycle fullscreen #menu: Toggle Fullscreen - -F11 playlist-prev; set pause no #menu: Navigate > Previous File -F12 playlist-next; set pause no #menu: Navigate > Next File -_ ignore #menu: Navigate > - -Home script-message mpv.net playlist-first #menu: Navigate > First File -End script-message mpv.net playlist-last #menu: Navigate > Last File -_ ignore #menu: Navigate > - -PGUP add chapter 1 #menu: Navigate > Next Chapter -PGDWN add chapter -1 #menu: Navigate > Previous Chapter -_ ignore #menu: Navigate > - -. frame-step #menu: Navigate > Jump Next Frame -, frame-back-step #menu: Navigate > Jump Previous Frame -_ ignore #menu: Navigate > - -Right seek 5 #menu: Navigate > Jump 5 sec forward -Left seek -5 #menu: Navigate > Jump 5 sec backward -_ ignore #menu: Navigate > - -Up seek 30 #menu: Navigate > Jump 30 sec forward -Down seek -30 #menu: Navigate > Jump 30 sec backward -_ ignore #menu: Navigate > - -Ctrl+Right seek 300 #menu: Navigate > Jump 5 min forward -Ctrl+Left seek -300 #menu: Navigate > Jump 5 min backward -_ ignore #menu: Navigate > - -_ ignore #menu: Navigate > Titles -_ ignore #menu: Navigate > Chapters - -Ctrl++ add video-zoom 0.1 #menu: Pan & Scan > Increase Size -Ctrl+- add video-zoom -0.1 #menu: Pan & Scan > Decrease Size -_ ignore #menu: Pan & Scan > - -Ctrl+KP4 add video-pan-x -0.01 #menu: Pan & Scan > Move Left -Ctrl+KP6 add video-pan-x 0.01 #menu: Pan & Scan > Move Right -_ ignore #menu: Pan & Scan > - -Ctrl+KP8 add video-pan-y -0.01 #menu: Pan & Scan > Move Up -Ctrl+KP2 add video-pan-y 0.01 #menu: Pan & Scan > Move Down -_ ignore #menu: Pan & Scan > - -w add panscan -0.1 #menu: Pan & Scan > Decrease Height -W add panscan 0.1 #menu: Pan & Scan > Increase Height -_ ignore #menu: Pan & Scan > - -Ctrl+BS set video-zoom 0; set video-pan-x 0; set video-pan-y 0 #menu: Pan & Scan > Reset - -Ctrl+1 add contrast -1 #menu: Video > Decrease Contrast -Ctrl+2 add contrast 1 #menu: Video > Increase Contrast -_ ignore #menu: Video > - -Ctrl+3 add brightness -1 #menu: Video > Decrease Brightness -Ctrl+4 add brightness 1 #menu: Video > Increase Brightness -_ ignore #menu: Video > - -Ctrl+5 add gamma -1 #menu: Video > Decrease Gamma -Ctrl+6 add gamma 1 #menu: Video > Increase Gamma -_ ignore #menu: Video > - -Ctrl+7 add saturation -1 #menu: Video > Decrease Saturation -Ctrl+8 add saturation 1 #menu: Video > Increase Saturation -_ ignore #menu: Video > - -s async screenshot #menu: Video > Take Screenshot -d cycle deinterlace #menu: Video > Toggle Deinterlace -a cycle-values video-aspect 16:9 4:3 2.35:1 -1 #menu: Video > Cycle Aspect Ratio -Ctrl+r cycle-values video-rotate 90 180 270 0 #menu: Video > Rotate Video - -KP7 script-message mpv.net cycle-audio #menu: Audio > Cycle/Next -_ ignore #menu: Audio > - -Ctrl+d add audio-delay 0.1 #menu: Audio > Delay +0.1 -Ctrl+D add audio-delay -0.1 #menu: Audio > Delay -0.1 - -KP8 cycle sub #menu: Subtitle > Cycle/Next -v cycle sub-visibility #menu: Subtitle > Toggle Visibility -_ ignore #menu: Subtitle > - -z add sub-delay -0.1 #menu: Subtitle > Delay -0.1 -Z add sub-delay 0.1 #menu: Subtitle > Delay +0.1 -_ ignore #menu: Subtitle > - -r add sub-pos -1 #menu: Subtitle > Move Up -R add sub-pos +1 #menu: Subtitle > Move Down -_ ignore #menu: Subtitle > - -F add sub-scale -0.1 #menu: Subtitle > Decrease Subtitle Font Size -G add sub-scale 0.1 #menu: Subtitle > Increase Subtitle Font Size - -_ ignore #menu: Track - -+ add volume 2 #menu: Volume > Up -- add volume -2 #menu: Volume > Down -_ ignore #menu: Volume > - -m cycle mute #menu: Volume > Mute - -[ multiply speed 1/1.1 #menu: Speed > -10% -] multiply speed 1.1 #menu: Speed > +10% -_ ignore #menu: Speed > - -{ multiply speed 0.5 #menu: Speed > Half -} multiply speed 2.0 #menu: Speed > Double -_ ignore #menu: Speed > - -BS set speed 1 #menu: Speed > Reset - -Alt++ script-message mpv.net scale-window 1.2 #menu: View > Zoom > Enlarge -Alt+- script-message mpv.net scale-window 0.8 #menu: View > Zoom > Shrink -_ ignore #menu: View > Zoom > - -Alt+0 script-message mpv.net window-scale 0.5 #menu: View > Zoom > 50 % -Alt+1 script-message mpv.net window-scale 1.0 #menu: View > Zoom > 100 % -Alt+2 script-message mpv.net window-scale 2.0 #menu: View > Zoom > 200 % -Alt+3 script-message mpv.net window-scale 3.0 #menu: View > Zoom > 300 % - -F8 script-message mpv.net show-playlist #menu: View > Show Playlist -Ctrl+7 script-message mpv.net show-audio-tracks #menu: View > Show Audio Tracks -Ctrl+8 script-message mpv.net show-subtitle-tracks #menu: View > Show Subtitle Tracks -b cycle border #menu: View > Toggle Border -Ctrl+t cycle ontop #menu: View > Toggle On Top -t script-binding stats/display-stats-toggle #menu: View > Toggle Statistics -Del script-binding osc/visibility #menu: View > Toggle OSC Visibility -i script-message mpv.net show-info #menu: View > Show File/Stream Info -p show-progress #menu: View > Show Progress -Ctrl+p script-message mpv.net show-profiles #menu: View > Show Profiles -F9 show-text ${track-list} 5000 #menu: View > Show Tracks -Ctrl+m script-message mpv.net show-media-info #menu: View > Show Media Info -Alt+r script-message mpv.net show-recent #menu: View > Show Recent - -` script-binding console/enable #menu: View > Advanced > Show Console -_ script-message mpv.net show-audio-devices #menu: View > Advanced > Show Audio Devices -P script-message mpv.net show-properties #menu: View > Advanced > Show Properties -C script-message mpv.net show-commands #menu: View > Advanced > Show Commands -_ script-message mpv.net show-demuxers #menu: View > Advanced > Show Demuxers -_ script-message mpv.net show-decoders #menu: View > Advanced > Show Decoders -_ script-message mpv.net show-protocols #menu: View > Advanced > Show Protocols -_ script-message mpv.net show-keys #menu: View > Advanced > Show Keys - -_ ignore #menu: Profile - -c script-message mpv.net show-conf-editor #menu: Settings > Show Config Editor -Ctrl+i script-message mpv.net show-input-editor #menu: Settings > Show Input Editor -Ctrl+f script-message mpv.net open-conf-folder #menu: Settings > Open Config Folder - -_ script-message mpv.net reg-file-assoc video #menu: Settings > Setup > Register video file associations -_ script-message mpv.net reg-file-assoc audio #menu: Settings > Setup > Register audio file associations -_ script-message mpv.net reg-file-assoc image #menu: Settings > Setup > Register image file associations -_ script-message mpv.net reg-file-assoc unreg #menu: Settings > Setup > Unregister file associations - -h script-message mpv.net show-history #menu: Tools > Show History -l ab-loop #menu: Tools > Set/clear A-B loop points -L cycle-values loop-file inf no #menu: Tools > Toggle infinite file looping -_ playlist-shuffle #menu: Tools > Shuffle Playlist -Ctrl+h cycle-values hwdec auto no #menu: Tools > Toggle Hardware Decoding -Q quit-watch-later #menu: Tools > Exit Watch Later - -_ script-message mpv.net shell-execute https://mpv.io #menu: Help > Website mpv -_ script-message mpv.net shell-execute https://github.com/stax76/mpv.net #menu: Help > Website mpv.net -_ ignore #menu: Help > - -_ script-message mpv.net shell-execute https://mpv.io/manual/stable/ #menu: Help > Manual mpv -_ script-message mpv.net shell-execute https://github.com/stax76/mpv.net/blob/master/docs/Manual.md #menu: Help > Manual mpv.net -_ ignore #menu: Help > - -_ script-message mpv.net show-about #menu: Help > About mpv.net - -F1 script-message mpv.net show-command-palette #menu: Command Palette -_ ignore #menu: - -Esc quit #menu: Exit - -MBTN_Right script-message mpv.net show-menu -6 script-message mpv.net show-progress -KP6 script-message mpv.net show-progress -7 script-message mpv.net cycle-audio -Sharp script-message mpv.net cycle-audio -8 cycle sub -j cycle sub -q quit -Power quit -Play cycle pause -Pause cycle pause -PlayPause cycle pause -MBTN_Mid cycle pause -Stop stop -Forward seek 60 -Rewind seek -60 -Wheel_Up add volume 2 -Wheel_Down add volume -2 -Wheel_Left add volume -2 -Wheel_Right add volume 2 -Prev playlist-prev -Next playlist-next -MBTN_Forward playlist-next -MBTN_Back playlist-prev -> playlist-next -< playlist-prev -MBTN_Left ignore -f cycle fullscreen -MBTN_Left_DBL cycle fullscreen -KP_Enter cycle fullscreen -Shift+Right no-osd seek 1 exact -Shift+Left no-osd seek -1 exact -Shift+Up no-osd seek 5 exact -Shift+Down no-osd seek -5 exact -Shift+BS revert-seek # undo the previous (or marked) seek -Shift+Ctrl+BS revert-seek mark # mark the position for revert-seek -Shift+g add sub-scale +0.1 # increase the subtitle font size -Shift+f add sub-scale -0.1 # decrease the subtitle font size -Ctrl+Shift+Left no-osd sub-seek -1 # seek to the previous subtitle -Ctrl+Shift+Right no-osd sub-seek 1 # seek to the next subtitle -Ctrl+Wheel_Up no-osd seek 7 -Ctrl+Wheel_Down no-osd seek -7 + # 此文件定义mpvnet的快捷键绑定和右键菜单项目 + # 可以在右键菜单的“设置”中找到 input.conf 和 mpv.conf 编辑器 + + # 每一行都以空格字符开头以便于搜索 + # 如果您想知道“o”键位是否已经被绑定,可以搜索“o” + # 不要绑定 "_" 键位,不要重命名 "Recent;Track;Titles;Chapters;Profile" 这些特殊的注释 + # 可以通过 `script-message mpv.net show-menu` 该项重绑定上下文菜单的快捷键 + + # 命令行的输入测试模式的命令: + # mpvnet --input-test + + # 下列被绑定的键位可以在右键菜单的这个选项中查看:工具 > input 编辑器 + + + o script-message mpv.net open-files #menu: 加载 > 文件 + _ script-message mpv.net open-clipboard #menu: 加载 > 链接 + _ script-message mpv.net open-optical-media #menu: 加载 > 光盘目录 + _ ignore #menu: 加载 > - + _ script-message mpv.net load-audio #menu: 加载 > 其它音轨 + _ script-message mpv.net load-sub #menu: 加载 > 其它字幕 + _ ignore #menu: 加载 > - + _ script-message mpv.net open-files append #menu: 加载 > 添加到当前列表 + _ playlist-shuffle #menu: 加载 > 播放列表乱序重排 + _ ignore #menu: 加载 > - + F7 script-message mpv.net show-recent #menu: 加载 > 最近文件列表 + _ ignore #menu: 加载 > Recent + _ ignore #menu: - + + SPACE cycle pause #menu: 文件 > 播放/暂停 + CTRL+SPACE script-message mpv.net play-pause #menu: 文件 > 播放/暂停(自动填充列表) + _ stop #menu: 文件 > 停止 + _ no-osd cycle-values osd-level 3 1 #menu: 文件 > 开/关 OSD时间轴 +#i script-message mpv.net show-info #menu: 文件 > OSD简要信息 +# script-message mpv.net show-progress #menu: 文件 > OSD简要进度 + l ab-loop #menu: 文件 > 设定/清除 片段循环 + L cycle-values loop-file inf no #menu: 文件 > 开/关 循环播放 + I script-binding stats/display-stats-toggle #menu: 文件 > 开/关 统计数据 + _ ignore #menu: 文件 > - + [ add speed -0.1 #menu: 文件 > 速度 -0.1 + ] add speed 0.1 #menu: 文件 > 速度 +0.1 + BS set speed 1 #menu: 文件 > 速度 重置 + _ ignore #menu: Track + + F8 script-message mpv.net show-playlist #menu: 导航 > .NET播放列表 + _ script-message mpv.net show-audio-tracks #menu: 导航 > .NET音轨列表 + _ script-message mpv.net show-subtitle-tracks #menu: 导航 > .NET字幕轨列表 + CTRL+F8 script-binding playlistmanager/showplaylist #menu: 导航 > OSD高级播放列表 + F9 show-text ${track-list} 5000 #menu: 导航 > OSD轨道信息 + _ ignore #menu: 导航 > - + _ playlist-prev #menu: 导航 > 上个文件 + _ playlist-next #menu: 导航 > 下个文件 + _ script-message mpv.net playlist-first #menu: 导航 > 首位的文件 + _ script-message mpv.net playlist-last #menu: 导航 > 末位的文件 + , frame-back-step #menu: 导航 > 上一帧 + . frame-step #menu: 导航 > 下一帧 + LEFT seek -5 #menu: 导航 > 后退 5 秒 + RIGHT seek 5 #menu: 导航 > 前进 5 秒 + PGUP add chapter -1 #menu: 导航 > 上一章节 + PGDWN add chapter 1 #menu: 导航 > 下一章节 + _ ignore #menu: 导航 > - + _ ignore #menu: 导航 > Titles + _ ignore #menu: 导航 > Chapters + + T cycle ontop #menu: 画面 > 开/关 置顶状态 + ENTER cycle fullscreen #menu: 画面 > 切换 全屏 + CTRL+- add video-zoom -0.1 #menu: 画面 > 缩小 + CTRL+= add video-zoom 0.1 #menu: 画面 > 放大 + p cycle-values panscan 0.0 1.0 #menu: 画面 > 开/关 裁切填充 + _ cycle-values video-rotate 0 270 180 90 #menu: 画面 > 左旋转 + _ cycle-values video-rotate 0 90 180 270 #menu: 画面 > 右旋转 + CTRL+BS set video-zoom 0; set panscan 0; set video-rotate 0 #menu: 画面 > 重置 + _ ignore #menu: 画面 > - + a cycle-values video-aspect-override 16:9 4:3 2.35:1 -1 #menu: 画面 > 切换 宽高比 + _ ignore #menu: 画面 > - + ALT+` script-message mpv.net window-scale 0.5 #menu: 画面 > 窗口缩放 > 50% + ALT+1 script-message mpv.net window-scale 1.0 #menu: 画面 > 窗口缩放 > 100% + ALT+2 script-message mpv.net window-scale 1.5 #menu: 画面 > 窗口缩放 > 150% + ALT+3 script-message mpv.net window-scale 2.0 #menu: 画面 > 窗口缩放 > 200% + ALT+- script-message mpv.net scale-window 0.8 #menu: 画面 > 窗口缩放 > 递减 + ALT+= script-message mpv.net scale-window 1.2 #menu: 画面 > 窗口缩放 > 递增 + _ ignore #menu: - + + CTRL+h cycle-values hwdec no yes auto-copy #menu: 视频 > 切换 软解/硬解/硬解增强 + _ cycle icc-profile-auto #menu: 视频 > 开/关 自动ICC校色 + 1 add contrast -1 #menu: 视频 > 调色 > 对比度 -1 + 2 add contrast 1 #menu: 视频 > 调色 > 对比度 +1 + 3 add brightness -1 #menu: 视频 > 调色 > 亮度 -1 + 4 add brightness 1 #menu: 视频 > 调色 > 亮度 +1 + 5 add gamma -1 #menu: 视频 > 调色 > 伽马 -1 + 6 add gamma 1 #menu: 视频 > 调色 > 伽马 +1 + 7 add saturation -1 #menu: 视频 > 调色 > 饱和度 -1 + 8 add saturation 1 #menu: 视频 > 调色 > 饱和度 +1 + 9 add hue -1 #menu: 视频 > 调色 > 色相 -1 + 0 add hue 1 #menu: 视频 > 调色 > 色相 +1 + _ ignore #menu: 视频 > 调色 > - + SHIFT+BS set contrast 0; set brightness 0; set gamma 0; set saturation 0; set hue 0 #menu: 视频 > 调色 > 重置 + s screenshot subtitles #menu: 视频 > 截屏 > 源分辨率 + S screenshot video #menu: 视频 > 截屏 > 同上(无字幕OSD) + CTRL+s screenshot window #menu: 视频 > 截屏 > 实际画面 + d cycle deinterlace #menu: 视频 > 开/关 去隔行扫描 + D cycle deband #menu: 视频 > 开/关 去色带 + + _ script-message mpv.net cycle-audio #menu: 音频 > 切换 下一个 + _ ignore #menu: 音频 > - + - add volume -1 #menu: 音频 > 音量 -1 + = add volume 1 #menu: 音频 > 音量 +1 + m cycle mute #menu: 音频 > 开/关 静音 + _ ignore #menu: 音频 > - + c add audio-delay -0.1 #menu: 音频 > 延迟 -0.1 + v add audio-delay 0.1 #menu: 音频 > 延迟 +0.1 + _ set audio-delay 0 #menu: 音频 > 延迟 重置 + _ ignore #menu: 音频 > - + CTRL+a script-binding cycle_adevice/back #menu: 音频 > 上个输出设备 + ALT+a script-binding cycle_adevice/next #menu: 音频 > 下个输出设备 + + _ cycle sub #menu: 字幕 > 切换 下一个 + _ cycle sub-visibility #menu: 字幕 > 切换 可见性 + _ ignore #menu: 字幕 > - + z add sub-delay -0.1 #menu: 字幕 > 延迟 -0.1 + x add sub-delay 0.1 #menu: 字幕 > 延迟 +0.1 + CTRL+z add sub-pos -1 #menu: 字幕 > 上移 + CTRL+x add sub-pos +1 #menu: 字幕 > 下移 + Z add sub-scale -0.1 #menu: 字幕 > 字号 -0.1 + X add sub-scale 0.1 #menu: 字幕 > 字号 +0.1 + _ ignore #menu: 字幕 > - + _ set sub-delay 0; set sub-pos 100; set sub-scale 1.0 #menu: 字幕 > 恢复初始 + _ cycle sub-ass-vsfilter-blur-compat #menu: 字幕 > 开/关 尝试修复异常拉伸 + _ ignore #menu: - + + ~ vf clr "" #menu: 视频滤镜 > 清空 + _ vf set vapoursynth="~~/vs/mvtools-fast.vpy" #menu: 视频滤镜 > 预设组 > mvtools补帧 2x_8b + _ vf set vapoursynth="~~/vs/mvtools-std.vpy" #menu: 视频滤镜 > 预设组 > mvtools补帧 60 + _ ignore #menu: 视频滤镜 > - + _ vf toggle format=colorlevels=limited #menu: 视频滤镜 > 开/关 动态范围限制 + _ vf toggle vflip #menu: 视频滤镜 > 开/关 垂直翻转 + _ vf toggle hflip #menu: 视频滤镜 > 开/关 水平翻转 + _ vf toggle rotate=angle=180*PI/180 #menu: 视频滤镜 > 开/关 画面旋转180° + _ vf toggle pad=aspect=16/9:x=-1:y=-1 #menu: 视频滤镜 > 开/关 填充16:9的黑边 + _ vf toggle format=gamma=gamma2.2 #menu: 视频滤镜 > 开/关 伽马修正2.2 + _ vf toggle fps=fps=60/1.001 #menu: 视频滤镜 > 开/关 强制帧数59.94 + _ vf toggle colortemperature=temperature=6500 #menu: 视频滤镜 > 开/关 色温修正6500k + + CTRL+` change-list glsl-shaders clr "" #menu: 着色器 > 清空 + _ change-list glsl-shaders set "~~/shaders/Anime4K_Clamp_Highlights.glsl;~~/shaders/Anime4K_Restore_CNN_VL.glsl;~~/shaders/Anime4K_Upscale_CNN_x2_VL.glsl;~~/shaders/Anime4K_AutoDownscalePre_x2.glsl;~~/shaders/Anime4K_AutoDownscalePre_x4.glsl;~~/shaders/Anime4K_Upscale_CNN_x2_M.glsl" #menu: 着色器 > 预设组 > A4k-Mode-A(HQ) + _ change-list glsl-shaders set "~~/shaders/Anime4K_Darken_HQ.glsl;~~/shaders/Anime4K_Thin_HQ.glsl;~~/shaders/Anime4K_Denoise_Bilateral_Mode.glsl;~~/shaders/Anime4K_Deblur_DoG.glsl" #menu: 着色器 > 预设组 > A4k-DTDD + _ change-list glsl-shaders set "~~/shaders/SSimSuperRes.glsl;~~/shaders/SSimDownscaler.glsl" #menu: 着色器 > 预设组 > SSim-SR&DS + _ ignore #menu: 着色器 > - + _ change-list glsl-shaders toggle "~~/shaders/KrigBilateral.glsl" #menu: 着色器 > 开/关 KrigBilateral + _ change-list glsl-shaders toggle "~~/shaders/AMD-FSR.glsl" #menu: 着色器 > 开/关 AMD-FSR + _ change-list glsl-shaders toggle "~~/shaders/ravu-zoom-r3.glsl" #menu: 着色器 > 开/关 ravu-zoom-r3 + _ change-list glsl-shaders toggle "~~/shaders/Anime4K_Restore_CNN_M.glsl" #menu: 着色器 > 开/关 Anime4K_Restore_CNN_M + _ change-list glsl-shaders toggle "~~/shaders/Anime4K_Upscale_GAN_x2_M.glsl" #menu: 着色器 > 开/关 Anime4K_Upscale_GAN_x2_M + _ change-list glsl-shaders toggle "~~/shaders/FSRCNNX_x2_8-0-4-1.glsl" #menu: 着色器 > 开/关 FSRCNNX_x2_8-0-4-1 + _ change-list glsl-shaders toggle "~~/shaders/adaptive-sharpen.glsl" #menu: 着色器 > 开/关 自适应锐化 + _ change-list glsl-shaders toggle "~~/shaders/nnedi3-nns64-win8x4.glsl" #menu: 着色器 > 开/关 nnedi3-nns64-win8x4 + _ change-list glsl-shaders toggle "~~/shaders/ACNet_HDN_L1.glsl" #menu: 着色器 > 开/关 ACNet_HDN_L1 + _ change-list glsl-shaders toggle "~~/shaders/NVScaler.glsl" #menu: 着色器 > 开/关 NVScaler + + _ ignore #menu: - + _ ignore #menu: 其它 > Profile + b cycle border #menu: 其它 > 切换 边框模式 + _ script-binding osc/visibility #menu: 其它 > 切换 OSC可见性 + ` script-binding console/enable #menu: 其它 > 打开 控制台 + + CTRL+M script-message mpv.net show-conf-editor #menu: 工具 > mpv 选项设置 + CTRL+I script-message mpv.net show-input-editor #menu: 工具 > input 编辑器 + _ script-message mpv.net open-conf-folder #menu: 工具 > 打开 设置文件夹 + F1 script-message mpv.net show-command-palette #menu: 工具 > 命令面板 + F2 script-message mpv.net show-properties #menu: 工具 > 属性列表 + _ script-message mpv.net show-media-info #menu: 工具 > 其它面板 > MediaInfo + _ script-message mpv.net show-protocols #menu: 工具 > 其它面板 > 协议列表 + _ script-message mpv.net show-decoders #menu: 工具 > 其它面板 > 所有解码器 + _ script-message mpv.net show-demuxers #menu: 工具 > 其它面板 > 所有分离器 + _ script-message mpv.net show-keys #menu: 工具 > 其它面板 > 所有键值 + _ script-message mpv.net show-audio-devices #menu: 工具 > 输出文本 > 音频设备列表 + _ script-message mpv.net show-commands #menu: 工具 > 输出文本 > 命令列表 + _ script-message mpv.net show-profiles #menu: 工具 > 输出文本 > 可用配置组 + _ script-message mpv.net show-history #menu: 工具 > 输出文本 > 历史记录 + _ script-message mpv.net reg-file-assoc video #menu: 工具 > 注册 > 关联视频 + _ script-message mpv.net reg-file-assoc audio #menu: 工具 > 注册 > 关联音频 + _ script-message mpv.net reg-file-assoc image #menu: 工具 > 注册 > 关联图片 + _ script-message mpv.net reg-file-assoc unreg #menu: 工具 > 注册 > 注销所有关联格式 + + _ script-message mpv.net shell-execute https://github.com/hooke007/mpv.net_CM #menu: 帮助 > 项目主页 + _ script-message mpv.net shell-execute https://hooke007.github.io #menu: 帮助 > 作者主页 + _ script-message mpv.net shell-execute https://mpv.io/manual/master/ #menu: 帮助 > mpv手册 + _ script-message mpv.net shell-execute https://github.com/stax76/mpv.net/blob/master/docs/Manual_chs.md #menu: 帮助 > mpv.net手册 + _ ignore #menu: 帮助 > - + _ script-message mpv.net show-about #menu: 帮助 > 关于 + + _ ignore #menu: - + CTRL+q quit #menu: 退出程序 + Q quit-watch-later #menu: 退出并保存当前状态 + + + + POWER quit + PLAY cycle pause + PAUSE cycle pause + PLAYPAUSE cycle pause + STOP stop + FORWARD seek 30 + REWIND seek -30 + NEXT playlist-next + PREV playlist-prev + + MBTN_FORWARD playlist-next + MBTN_BACK playlist-prev + MBTN_LEFT ignore + MBTN_LEFT_DBL cycle fullscreen + MBTN_RIGHT script-message mpv.net show-menu + Wheel_UP add volume 1 + Wheel_DOWN add volume -1 + + ESC set fullscreen no + DOWN seek -30 + UP seek 30 + diff --git a/src/Resources/theme.txt b/src/Resources/theme.txt index 629d98ac..82242738 100644 --- a/src/Resources/theme.txt +++ b/src/Resources/theme.txt @@ -1,25 +1,40 @@  [dark] -heading = #3C8CC8 -foreground = #DDDDDD -foreground2 = #AAAAAA -background = #323232 -highlight = #404040 +heading = #3C8CC8 +foreground = #DDDDDD +foreground2 = #AAAAAA +background = #323232 +highlight = #404040 menu-foreground = #DDDDDD menu-background = #323232 menu-highlight = #505050 + [light] -heading = #0068B2 -foreground = #000000 -foreground2 = #4C4C4C -background = #F7F7F7 -highlight = #DFDFDF +heading = #0068B2 +foreground = #000000 +foreground2 = #4C4C4C +background = #F7F7F7 +highlight = #DFDFDF menu-foreground = #000000 menu-background = #DFDFDF menu-highlight = #BFBFBF + + + +[bili] + +heading = #FFC0CB +foreground = #FFFFFF +foreground2 = #87CEFA +background = #1C1C1C +highlight = #404040 + +menu-foreground = #FFFFFF +menu-background = #000000 +menu-highlight = #D3D3D3 diff --git a/src/WPF/AboutWindow.xaml b/src/WPF/AboutWindow.xaml index 79a98a52..f8e9e70b 100644 --- a/src/WPF/AboutWindow.xaml +++ b/src/WPF/AboutWindow.xaml @@ -6,7 +6,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" - Title="About mpv.net" + Title="关于 mpv.net_CM" FontSize="16" ShowInTaskbar="False" WindowStartupLocation="CenterOwner" @@ -18,7 +18,7 @@ - mpv.net + mpv.net的中文模组 diff --git a/src/WPF/CommandPaletteControl.xaml b/src/WPF/CommandPaletteControl.xaml index c67b3480..65d13c79 100644 --- a/src/WPF/CommandPaletteControl.xaml +++ b/src/WPF/CommandPaletteControl.xaml @@ -6,7 +6,8 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" mc:Ignorable="d" - + + FontFamily="微软雅黑" FontSize="13" Loaded="OnLoaded" Background="#111111" @@ -39,7 +40,7 @@ > - + - Show mpv.net specific options - Open config folder - Preview mpv.conf - Show mpv manual - Show support forum + 打开 设置目录 + 预览mpv.conf + mpv 手册 + 上游支持 \ No newline at end of file diff --git a/src/WPF/ConfWindow.xaml.cs b/src/WPF/ConfWindow.xaml.cs index 717087a8..eebcd0f1 100644 --- a/src/WPF/ConfWindow.xaml.cs +++ b/src/WPF/ConfWindow.xaml.cs @@ -109,7 +109,7 @@ protected override void OnClosed(EventArgs e) App.UpdateWpfColors(); if (ThemeConf != GetThemeConf()) - MessageBox.Show("Changed theme settings require mpv.net being restarted.", "Info"); + MessageBox.Show("重启程序使更改后的主题完全生效!", "Info"); } string GetCompareString() diff --git a/src/WPF/InputWindow.xaml b/src/WPF/InputWindow.xaml index a1856fda..2115b36f 100644 --- a/src/WPF/InputWindow.xaml +++ b/src/WPF/InputWindow.xaml @@ -7,7 +7,7 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" mc:Ignorable="d" - Title="Input Editor" + Title="input.conf 编辑器" Height="500" Width="750" FontSize="13" @@ -80,7 +80,7 @@ - + - + - + + \ No newline at end of file diff --git a/src/WPF/MsgBox/MessageBoxExStatic.cs b/src/WPF/MsgBox/MessageBoxExStatic.cs index e6bc9988..320ac993 100644 --- a/src/WPF/MsgBox/MessageBoxExStatic.cs +++ b/src/WPF/MsgBox/MessageBoxExStatic.cs @@ -57,7 +57,7 @@ public partial class MessageBoxEx : Window, INotifyPropertyChanged public static MsgBoxExCheckBoxData CheckBoxData { get; set; } = null; - public static FontFamily MsgFontFamily { get; set; } = new FontFamily("Segoe UI"); + public static FontFamily MsgFontFamily { get; set; } = new FontFamily("微软雅黑"); public static double MsgFontSize { get; set; } = 12; @@ -172,7 +172,7 @@ public static void SetMaxFormWidth(double value) public static void ResetToDefaults() { MsgFontSize = 12d; - MsgFontFamily = new System.Windows.Media.FontFamily("Segoe UI"); + MsgFontFamily = new System.Windows.Media.FontFamily("微软雅黑"); DelegateObj = null; DetailsText = null; MessageForeground = null; diff --git a/src/WPF/SearchTextBoxUserControl.xaml b/src/WPF/SearchTextBoxUserControl.xaml index 15f933f2..8a6481a0 100644 --- a/src/WPF/SearchTextBoxUserControl.xaml +++ b/src/WPF/SearchTextBoxUserControl.xaml @@ -38,7 +38,7 @@ Name="SearchClearButton" Background="Transparent" HorizontalAlignment="Right" - FontFamily="Marlett" + FontFamily="微软雅黑" FontSize="10" Width="17" Height="17"