Skip to content

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

Closed Answered by dyphire
machine-doll asked this question in Q&A
Discussion options

You must be logged in to vote

你搞错脚本功能了,youtube-download.lua是用来下载ytdl视频到本地的脚本,并不是加载时使用的。
quality-menu.lua是ytdl加载后用来选择音视频质量的菜单脚本。

而mpv用来加载http视频的功能实际是使用内置的ytdl-hook.lua脚本实现的,我禁用了内置脚本,并用增强脚本ytdl_hook_plus.lua替代。
如果你想进行进一步修改并增强ytdl功能应该调整ytdl_hook_plus.lua脚本。

另外YouTube视频加载慢很大程度上是因为你使用了youtube-dl.exe,youtube-dl开发已经很不活跃了,release更不积极,一直不更新。建议换用维护更活跃的yt-dlp分支,加载方面会有明显改善。ytdl-hook.lua和ytdl_hook_plus.lua其实默认优先查找yt-dlp,不应选择使用youtube-dl。yt-dlp的每日构建:https://github.com/ytdl-patched/yt-dlp/releases

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by dyphire
Comment options

You must be logged in to vote
1 reply
@zhongfly
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants
Converted from issue

This discussion was converted from issue #5 on July 18, 2022 03:01.