Greasy Fork is available in English.

Play with MPV

Play videos and songs on the website via mpv-handler

< Feedback on Play with MPV

Question/comment

§
Posted: 03.08.2021

在b站使用时可以打开,但是多p的视频和在youtube播放时会出现如下的错误
Error: Downloader or player exited with error or termination signal

akiiruiAuthor
§
Posted: 04.08.2021
Edited: 04.08.2021

请问是 Windows 用户么?如果是,你的 mpv 安装目录有 mpv.com 这个可执行文件么。

如果有,那么在 custom.toml 中将 [mpv] - bin 的值改为这个可执行文件。

这样 mpv 会输出信息到终端中,就知道是为何报错退出了。(Windows 构建的 .exe 的不会在终端输出任何信息,不便于观察错误。

§
Posted: 05.08.2021

您好,是的,我用的windows10,mpv和脚本都是最新版本,已经按照您说的截图了

akiiruiAuthor
§
Posted: 05.08.2021

第一行第二行 Playing: URL 下面的红字报错是 mpv-handler 代码中一个判断错误,已在 v0.2.11 中修复。

第三行 Playing: URL 下面的红字报错参见:https://github.com/mpv-player/mpv/issues/8242。 似乎是你的 mpv 有问题,尝试使用 shinchiro 编译的版本。

akiiruiAuthor
§
Posted: 05.08.2021

如果已经使用的是 shinchiro 编译的mpv,那么可以使用安装目录下的 update.bat 更新至最新的构建。 之前某一个版本的 mpv TLS 实现有点问题。

§
Posted: 08.08.2021

更新handler以后我又更改了代理软件的设置,现在可以播放youtube的视频了,但是有一个问题,我用mpv播放视频的时候,加载出来的是清晰度很低的格式,比如480p,强制在本脚本设置里更改1080p后,会显示'Error: The downloader "mpv" quality "1080p" is not found',无法播放,但是网页端是有1080p甚至更高画质的选项

akiiruiAuthor
§
Posted: 08.08.2021

"Error: The downloader "mpv" quality "1080p" is not found"? 你把你的 config.toml 和 custom.toml 贴出来看一下呢。 自带的 config.toml 里有:

[mpv]
quality.1080p = "--ytdl-format=bestvideo[height<=1080]+bestaudio/best[height<=1080]/best"
§
Posted: 18.08.2021

config.toml

Video Downloader

[mpv] bin = "/usr/bin/mpv" cookies = "--ytdl-raw-options-append=cookies=" cookiesprefix = true playmode = "direct" quality.best = "--ytdl-format=bestvideo+bestaudio/best" quality.2160p = "--ytdl-format=bestvideo[height<=2160]+bestaudio/best[height<=2160]/best" quality.1440p = "--ytdl-format=bestvideo[height<=1440]+bestaudio/best[height<=1440]/best" quality.1080p = "--ytdl-format=bestvideo[height<=1080]+bestaudio/best[height<=1080]/best" quality.720p = "--ytdl-format=bestvideo[height<=720]+bestaudio/best[height<=720]/best" quality.480p = "--ytdl-format=bestvideo[height<=480]+bestaudio/best[height<=480]/best" quality.360p = "--ytdl-format=bestvideo[height<=360]+bestaudio/best[height<=360]/best"

custom.toml

[mpv]

bin = "D:\Program Files\mpv\mpv.com"

quality.best = "--ytdl-format=best"

akiiruiAuthor
§
Posted: 19.08.2021

果然,我不是有在 mpv-handler 的 README 中说明,没必要不要修改默认下载器的 quality 项目么。 会丢失其他 quality 选项的。 把 custom.tomlquality.best = "--ytdl-format=best" 这行删掉就好了

§
Posted: 21.08.2021

晕...我看github上的说明,custom.toml模板里面您有带这行代码,我就直接考过去了,没仔细看warning

Post reply

Sign in to post a reply.