verygoodlee

Results 38 comments of verygoodlee

换成 #125 中的截取方式没问题,抓异常的方式还是很稳定

mpv的行为好像就是这样的,命令行启动参数会持续生效,外挂轨道也不例外,用起来感觉很怪。 比如用`mpv 1.mp4 --sub-file=test.ass`启动,然后autoload.lua自动添加 2.mp4 3.mp4 ... 到播放列表,外挂字幕test.ass会对播放列表中的所有视频生效。 这个插件能做的很有限,它只是取到播放链接之后通过powershell调用mpv。 可能自己写lua脚本能解决,最好还是改改使用习惯,要看其他视频另开个进程,不共用一个进程就行。

突然想到个解决办法,前不久刚引入的[--input-commands](https://mpv.io/manual/stable/#options-input-commands)选项 mpv-player/mpv@91489c9,启动时运行一次,后续不改动的话不会运行。 启动选项应该都能改成命令的形式丢到`--input-commands`里,例如`--sub-file`选项改成`sub-add`命令, `mpv 1.mp4 --input-commands="sub-add test.ass select"` 这样启动的话就不会影响播放列表中其他视频。 但是此方案不兼容旧版本mpv

好特殊的用法,从来没注意过, 确实可以,但是powershell转义字符比较怪,不是`\` 而是`` ` ``, cmd是不需要转义的 - cmd - `mpv --{ 1.mp4 --sub-file=test.ass --}` 成功 - `mpv --\{ 1.mp4 --sub-file=test.ass --\}` 报错 - powershell - `mpv --{ 1.mp4 --sub-file=test.ass --}`...

还有个问题是基于libmpv的第三方GUI [ImPlay](https://github.com/tsl0922/ImPlay) [mpv.net](https://github.com/mpvnet-player/mpv.net) 等等有可能不支持这种特殊写法,太多了也没法一一测试, 毕竟之前发现mpv.net连List Options都不支持 https://github.com/LuckyPuppy514/Play-With-MPV/issues/130#issuecomment-1860651635 (后续已添加支持 mpvnet-player/mpv.net@86c823b) 代码里应该要判断主程序名是mpv.exe才能用大括号写法。

run `script-binding select/*` command in console takes no effect, you must write the console close command manually, `script-message-to console disable; script-binding select/select-playlist` I think we should auto close console.

why is there no selected style in playlist, even though the current playing file is default item when opened, it's easy to forget which one is currently playing after searching...

I mean this selected style ![屏幕截图 2024-05-15 024647](https://github.com/mpv-player/mpv/assets/45035465/8e7aa558-866d-408c-af18-0afef7262b8b) In playlist I don't know which one is currently playing ![image](https://github.com/mpv-player/mpv/assets/45035465/2e41210c-117e-4b47-9ab3-b097bf5b310f)

another question, is it necessary to observe property changes during menu opening. example: during the track selection menu open, current file reached EOF and next file automatically plays, the track...

> 最近看到这个项目:https://github.com/LuckyPuppy514/Play-With-MPV ,不知是否可以作为参考?大致思路是本地放置一个注册表文件,设置在油猴脚本内。 这个我也早就在用,原理完全不同,系统注册一个`mpv://`协议,浏览器用这个协议打开播放器,\ 他没有后台服务,无法实现复杂功能,比如播放器关闭后触发进度回传,\ embyToLocalPlayer后台有个python服务,浏览器调用python服务,由python调用播放器