Giter VIP home page Giter VIP logo

mpv-config's Introduction

MPV config (English branch)

项目介绍

本项目为 windows 下 mpv 播放器的配置文件,应放入mpv.exe所在目录的portable_config文件夹内,

或 mpv 配置默认路径%APPDATA%/mpv/下,这种方式全局生效。

使用portable_config时会覆盖全局配置方案。

PS:自行编辑配置文件时,注意编码格式应为 UTF-8,换行符为 Unix,否则 MPV 可能无法识别

mpv 整合包下载Releases

mpv 客户端

脚本着色器说明

本项目使用的 mpv 脚本及功能介绍详见 wiki 内容: 脚本说明-wiki

本项目涉及的着色器见 mpv.conf 中相关内容

预览

image-20231103224421000

image-20231103224540075

image-20231103224557019

拼音搜索(支持首字母) 字幕下载
image image

参考

mpv-config's People

Contributors

dyphire avatar verygoodlee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mpv-config's Issues

autoload.lua 脚本未按预期设置工作

autoload.conf 中预设功能:

##指定额外需要用于加载的图片、视频和音频扩展白名单
additional_image_exts=jfif
additional_video_exts=asf,f4v,rm,ts,vob
additional_audio_exts=dsf,spx

实际工作时,当目录中混合有 mp4、mkv、ts 格式的视频,点击mp4、mkv格式的视频打开mpv后,ts格式视频不会被添加到播放列表。

##禁用所有自动加载相关功能,默认:no
disabled=yes

设置以上参数可使 ts 格式视频被自动添加到播放列表。

版本:mpv_config-2024.03.10
默认配置可复现。

console如何实现中文切换并输入

window 10 22H2 19045.3693
mpv 0.37.0
场景:添加中文章节名

想问下大佬,chapter_make_read.lua是如何实现在console里进行中文切换并输入中文章节名的,脚本内容好像并没有体现
user-input-module.lua和user-input.lua也没有改动

错误操作,这是一个被错误引用的议题,但是我没有权限删除它

          将 [mpv config-2024.03.10](https://github.com/dyphire/mpv-config/releases/tag/mpv_config-2024.03.10) 中的 mpv 更新到 [mpv-x86_64-20240326-git-b3216b0.7z](https://github.com/dyphire/mpv-winbuild/releases/download/mpv_own-2024-03-26/mpv-x86_64-20240326-git-b3216b0.7z) 之后。

部分 HDR 视频播放的时候异常卡顿。
可复现的视频:Samsung Wonderland Demo.ts

mpv config-2024.03.10 中的 mpv 是流畅播放的。

测试了由 mpv-winbuild-cmake 构建的26号和29号的也一样会卡顿

是 mpv 最近对 HDR相关参数作了调整,还是我下载的版本不对呢?我下载的全部是 mpv-x86_64-xxx-git-xxx.7z 版本

Originally posted by @wathper in #65 (comment)

make a 4k version uosc.lua?

the uosc.lua is looking nice! However, in 4k screen the float control buttons too small. Could you make a version for high resolution monitor?
Thanks!

请问 mpv_config-2024.04.06 在播放 WebDAV 中的视频时,会导致win的右键菜单和文件管理器出现异常吗?

出现的问题:
播放 WebDAV网络驱动器 中的视频并切换剧集后,有概率使win系统出现交互功能异常,表现为:在桌面上单击右键后,右键菜单中的选项丢失。同时在文件管理器中无法唤起右键菜单。(此时mpv播放器的功能是正常的,日志中也没有相关的报错)。
关闭mpv播放器后,win系统功能全部恢复正常。

起初我认为是系统的问题。
但是最近我为了使用svp补帧,将notify_media.lua以及MPVMediaControl.exe移除后,发现播放 WebDAV 内容时不会再触发“win系统出现交互功能异常”的问题了。

有可能是“基于 IPC 管道实现的 SMTC 功能”存在什么兼容性的问题吗?

history_bookmark.conf Unable to disable

\portable_config\script-opts\history_bookmark.conf
setting:

是否启用脚本功能,默认:yes

enabled=no

After the above settings
history_dir=/:var%APPDATA%/mpv/files/historybookmarks
Still generating record labels

Record for example
D17BC146BA4330DCA42D5E593E5B0D38.mpv.history

在MPV GUI 界面中通过直接粘贴 pikpak 的 URL 来串流播放视频是不可行的。但是使用命令行却可以正常串流。

版本:03-10
我在 mpv.conf中为 mpv 和 yt-dlp.exe 都设置了本地http代理。

http-proxy=http://127.0.0.1:3256
ytdl-raw-options-append=proxy=http://127.0.0.1:3256

在MPV GUI 界面中通过直接粘贴 pikpak 串流连接来播放视频会直接黑屏。
使用mpv 'https://dl-a10b-0862.mypikpak.com/download/?fid=xxxxxxxxx'则正常播放。

我需要为某个脚本额外配置本地代理吗?还是说是由bug导致的问题?

Questions about the debanding profiles and hdeband shaders

For your three debanding profiles you only change the number of iterations and I had a few suggestions/questions to improve them.

  • Shouldn't the grain be lower for the low/medium profiles as the number of artefacts wouldn't be as noticeable?
  • As the manual states, shouldn't the range decrease with each increase in the number of iterations?
  • Why is the threshold so high for the low/medium profiles, shouldn't it be lower considering that higher numbers reduce image details, also considering someone would use these profiles for low levels of banding anyway?

TLDR: The profiles are not as tuned as they should be.

I came across this discussion about the hdeband shaders a while ago and brought it up with @AN3223, who has since made some updates to the shaders. Have you tested the latest versions yet, if so what are your thoughts?

scanning subfolders

is there any way to enable scanning of subfolders in this script?
using the example of the fuzzydir.lua script
so that you can set --sub-fonts-dir=** and forget about prescribing paths to the fonts folder

低概率、随机性的 uosc 界面功能异常

当我载入了一些其他脚本的时候。在 mpv 中通过鼠标拖拽切换视频时,会有极高概率触发 bug,导致 uosc 的控件全部失效。或者部分失效。
表现为在播放界面点击 uosc 图标元素后不会执行 uosc 图标元素对应的指令,而是直接触发 mpv 图形界面原本的指令(播放和暂停)。
该 bug 在 mpv 重新启动后将消失,通过鼠标拖拽切换视频后有高概率复现。
额外添加的脚本是: load_plus.luainput_plus.lua

推测这是脚本之间不兼容引发的,但是在将额外添加的脚本移除后,依旧有较低的概率会触发该bug。

bug 的表现形式有所改变,触发 bug 后 uosc 的控件不会全部失效,而是部分功能异常:
有时无法用鼠标滚轮在变速控件上面改变播放速度、有时是 uosc 的进度条无法点击、有时是无法唤出 dyn_menu.lua 菜单。

我对 mpv config-2024.03.10 的部分预设做了修改,但是涉及 uosc.conf 的部分修改的相当保守、反复检查后没有发现会导致冲突的地方。也尝试过还原所有与 uosc.conf 相关的更改,但是问题没有解决。

我查看过mpv的日志文件,但是没有与之相关的记录。该 bug 触发的概率较低,找不到什么规律,我也不知道从哪里入手解决。

我想请教作者在配置 mpv 脚本的时候有没有遇到过类似的问题,对此类问题有没有什么好的经验和建议?

mpv.conf中截图模板文件名参数有冗余

conf中截图模板原始参数有冗余,会导致出现多余字段
image
我修改了一下。(路径改成桌面的时候发现的这个bug)
image
重启mpv, 再次截图,现在后缀正常了
image

d3d12va-copy最低系统要求?

d3d12va-copy在我的系统上使用,会回退到软件解码。当然这是因为我的平台硬件过于陈旧,请问作者d3d12va-copy最低系统要求是什么?方便以后升级硬件。多谢!

[ 8.074][v][vd] Looking at hwdec h264-d3d12va-copy...
[ 8.075][w][ffmpeg] av_log callback called with bad parameters (NULL AVClass).
[ 8.075][w][ffmpeg] This is a bug in one of FFmpeg libraries used.
[ 8.075][v][ffmpeg] Using device 1002:15dd (AMD Radeon(TM) Vega 10 Graphics).
[ 8.150][v][vd] Trying hardware decoding via h264-d3d12va-copy.
[ 8.151][v][vd] Pixel formats supported by decoder: vulkan cuda dxva2_vld d3d11va_vld d3d11 d3d12 vaapi yuv420p
[ 8.151][v][vd] Codec profile: High (0x64)
[ 8.151][v][vd] Requesting pixfmt 'd3d12' from decoder.
[ 8.151][e][ffmpeg/video] h264: D3D12 decoder doesn't support on this device
[ 8.151][e][ffmpeg/video] h264: Failed setup for format d3d12: hwaccel initialisation returned error.

关于优化配置

从Lazy的讨论那里过来,大佬给出自己库中的脚本链接,并指出在lua文件后面的备注中表明有优化。

这就让我比较纠结,一方面想用大佬改进过的脚本,又担心如果想在脚本的github中提建议,会不小心找错反馈方。能否在改进后的脚本中记录一下改进的内容,让我这样的伸手党更好选择[捂脸]

Translation request

Hello, I have been using your MPV config for the last year and it has been the best config I used so far in ternes of the image quality or the features, and I was hoping if you could make the interface in the English language.

求一个截取gif的脚本兼容支持

#17
大佬,试了一晚上,您给我的gif lua截不出来gif。。看了一下,发现他的仓库全是待修的issue。。
webp压缩率是好,可是我分享出去,这个格式过于先进,兼容性太差了,手机上看不到。。。我手机上的app试了个便,都打不开这种animated webp. 我对清晰度没啥要求,就是希望内容能分享出去
所以基于分享和兼容性的方面,可以麻烦您集成一个gif脚本吗

Current Situation of English Support

Ref #33 (comment)

English support has always been on my plan list. But currently, less than 50% of the progress has been completed, and a large number of configuration files need to be translated, resulting in slow progress.
image
image
image

But due to @aicynide malicious slander, this plan will be put on hold indefinitely.

secondary-sub-override=no功能失效

我平时有用次字幕来加载ass弹幕,更新了[mpv_config-2023.12.03]后secondary-sub-override=no选项功能失效,启用无法渲染和主字幕使用相同的字幕渲染逻辑,我在你构建的MPV_OWN中查找替换版本测试,从MPV_OWN 2023-11-05 08:41之后的11-06开始的版本都失效了

I want to cancel playing playback history (recent playback history)

I want to cancel playing playback history (recent playback history)

I have modified the following settings but still cannot achieve this function

mpv.conf

log-file="~~/files/mpv.log" # 记录 log
#write-filename-in-watch-later-config # 将文件名写入播放记录缓存文件
save-position-on-quit=no # 退出时记住播放状态。缓存目录默认在设置文件夹中的 "watch_later"

mpv\script-opts
history_bookmark.conf
enabled=no

mpv\script-opts

recentmenu.conf
#path=~~/files/recent.json

微信截图_20240329203933
微信截图_20240329203944

Can you give me a little help? thanks

getting these error in eng branch

1. Error parsing option osdshadow-offset (option not found)
C:/mpv/current/portable_config/mpv.conf:93: setting option osdshadow-offset='0.5' failed.

2. 
Error parsing option osdshadow-color (option not found)
C:/mpv/current/portable_config/mpv.conf:94: setting option osdshadow-color='#FF000000' failed.


3. [input] The show-text option must be an integer: skip
[input] Command show-text: argument 2 can't be parsed: option parameter could not be parsed.
[input] Command was defined at C:/mpv/current/portable_config/input.conf:65.


3. 
[auto_profiles] Profile '8k-fix' condition: [string "profile 8k-fix condition"]:1: malformed number near '7000orp'
[auto_profiles] Profile 'fps-fix' condition: [string "profile fps-fix condition"]:1: malformed number near '47orp'
[auto_profiles] Profile 'video-sync' condition: [string "profile video-sync condition"]:1: malformed number near '0and'
[auto_profiles] Profile 'rot-fix' condition: [string "profile rot-fix condition"]:1: malformed number near '90orp'
[auto_profiles] Profile 'hdr-2390' condition: [string "profile hdr-2390 condition"]:1: '<eof>' expected near 'andp'


5.
[uosc] script-opts/uosc.conf:181 unknown key 'foreground', ignoring
[uosc] script-opts/uosc.conf:182 unknown key 'foreground_text', ignoring
[uosc] script-opts/uosc.conf:183 unknown key 'background', ignoring
[uosc] script-opts/uosc.conf:184 unknown key 'background_text', ignoring

The audio track has always been defaulted to Japanese language

version:mpv_config-2024.03.10
Question:The audio track has always been defaulted to Japanese language
set up file mpv.conf

alang=japanese,jpn,jap,ja,jp,english,eng,en
slang=chs,sc,zh-CN,zh-Hans,cht,tc,zh-Hant,zh-HK,zh-TW,chi,zho,zh

Manually modify by oneself
#指定优先使用音轨(使用ISO-639语言代码,优先级按序递减)
alang=zh,chi,chs,sc,zh-hans,en,eng
#指定优先使用字幕轨(使用ISO-639语言代码,优先级按序递减)
slang=zh,chi,chs,sc,zh-hans,en,eng

But when the video is played, it still defaults to Japanese language

But I tested:
Add code to: https://github.com/mpv-player/mpv/releases/tag/v0.37.0 In this version of the file, these two lines of code are functional

7d5196708d525d195f506fe6b359aa2
ab7cc1b828a001aa12c999fa9dbf8ad

播放YouTube视频很卡,希望适配好aria2

试了一下自己修改youtube-download.lua
第85行,改成了 youtube_dl_exe = "./youtube-dl.exe --external-downloader ./aria2c.exe --external-downloader-args \"-x 16 -s 16\"",
但是播放视频还是很卡,不确定有没有调用aria2,我已经把aria2放到mpv.net的文件夹里了
之前试过给youtube-dl提速,这样子做是可以的。尝试过多种参数组合,都不能够提升播放视频的流畅度
另外,第35行,我改成了video_format = "av01,av1,vp9",还是不能够优先使用av1编码,依旧在请求h264的格式

HDR video playback screen too bright-have already been solved

HDR video playback screen too bright
Modifying Settings

vo=gpu-next
gpu-api=vulkan
#profile=Target
profile=HDR-PASS
fullscreen

Other settings default to [this setting can automatically enable NV HDR] [I don't like OS HDR]
Can play HDR videos. But the brightness of the screen seems too bright
The screen has a lot more volume compared to Potplayer+LAV+MadVR HDR, and the color seems to be slightly incorrect
I'll take a few photos and upload them when I get home from work

无法取消记忆播放

设置了save-position-on-quit=no的前提下,watch_later文件夹依然有记录产生,且会记忆播放位置

can you please update English branch in your free time?🙏

As the development of the project progresses, it is essential to ensure that the English translations are up to date and accurately reflect the latest changes and updates.

Having the most recent and accurate translations is crucial for improving user experience and ensuring that the project reaches a wider audience. It would be greatly appreciated if you could allocate some time and resources to reviewing and updating the English translation branch.

If there are any specific tasks or resources needed to facilitate this update, please let me know so that I can assist in any way possible. Thank you for your attention to this matter, and I look forward to seeing the updated translations in the near future.

关于追加读取指定的配置文件include=的问题

我目前在用您的mpv.net,在mpv.conf设置了一条include = '~~/config/mpvown.conf',在mpv.conf编辑器中有提到这条参数必须位于主配置mpv.conf中的末尾,避免追加配置被覆盖

但是我测试时发现无论include = '~~/config/mpvown.conf'这条参数在mpv.conf首位或末尾,播放器似乎只会加载mpvown.conf里的参数

我是用sub-font设置字幕缺省字体来测试的,无论我在mpv.conf里设置的缺省字体是什么,播放器只会加载mpvown.conf里设置的缺省字体

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.