Closed debianite-user closed 1 year ago
This is an mpv issue that’s been fixed but a new release hasn’t come out yet, try installing the latest version of mpv from git and see if the problem is still there
I ran into the same issue of not having audio on youtube videos (when played through MPV via yt-dlp) recently, updating to the latest MPV nightly release solved the issue for me. I grabbed the latest release from here. Not sure where to find nightly builds for Linux.
This is mpv issue https://github.com/mpv-player/mpv/issues/11392. The fix is in PR https://github.com/mpv-player/mpv/pull/11398 which has been merged into the mpv master branch. The fix updates the Lua script ytdl_hook.lua to be compatible with the latest version of yt-dlp
(2023.03.04).
As the fix only updates that Lua script a new release of mpv is not required. You can download the latest version of that script and place it in ~/.config/mpv/scripts/
and then set the mpv option ytdl to no
to get mpv to use the new version of the script in the scripts directory instead of the now faulty version embedded in mpv.
More discussion can be found in the IINA issue https://github.com/iina/iina/issues/4253.
I'm looking at yt-dlp
issues because you will see at the end of that issue an IINA user is reporting they are experiencing a 3 minute delay before a video starts streaming.
The bug in mpv was revealed by how our new throttling bypass works. So reverting to the yt-dlp version before it is also a viable workaround if you are unable to update mpv
I'm looking at
yt-dlp
issues because you will see at the end of that issue an IINA user is reporting they are experiencing a 3 minute delay before a video starts streaming.
Could be related to https://github.com/yt-dlp/yt-dlp/issues/6447. I will investigate asap
@pukkandan Thanks for pointing out that other issue.
The user experiencing the slow download has reported that after rebooting macOS the problem no longer reproduced. That user is running macOS Ventura 13.2.1, the latest release at this time. There are definitely still some regressions in Ventura that were not present in macOS Monterey.
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Region
Spain
Provide a description that is worded well enough to be understood
I always change "yt-dlp" binary name to "youtube-dl" and then be able to use it with mpv. Next I install the binary in /usr/local/bin/.
Before it works fine with Youtube URL's:
$ mpv --ytdl-format=bestvideo+bestaudio [Youtube_URL]
$ yt-dlp -f bestvideo+bestaudio [Youtube_URL] -g | xargs mpv
But since 2023.03.04 version doesn't work fine (only plays bestvideo, no audio). Now only plays video+audio with
--ytdl-format=best
:$ mpv --ytdl-format=best [Youtube_URL]
$ yt-dlp -f best [Youtube_URL] -g | xargs mpv
But
--ytdl-format=best
is worst than--ytdl-format=bestvideo+bestaudio
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)'verbose': True
toYoutubeDL
params instead[debug] Command-line config
) and insert it belowComplete Verbose Output