Closed NotMithical closed 1 month ago
Why do you assume that --vid=1
is the VP9 stream? That is selected with --ytdl-format
.
I'm not assuming. I know with that link --vid=1
gives me the same stream as if I set --ytdl-format
and I used the former because it was faster to type when I was repeatedly testing this. I did also skim through the log file myself and I know MPV opens the VP9 decoder for that stream.
Apologies for the confusion, let me know if it would be better for me to reproduce the log file using --ytdl-format
instead for consistency.
I see. Well I can't reproduce it as stats.lua shows VP9 for me with that command.
Thank you for checking. I've just tried that command on one of my linux machines and was unable to reproduce there as well, although a different command did give me the same result. I noticed another thing though; when I press ` to open the console, on the linux machine I tested "vp9" is shown in the stream information alongside resolution, fps, etc whereas on windows it says "null" as the codec on most of the same streams.
It didn't occur to me that that might be relevant as the console has always shown null on vp9 streams for me while the stats page issue is new.
Maybe you're using different yt-dlp versions?
yt-dlp --version
gives me 2024.05.26 on both systems. However I also ran yt-dlp --list-formats https://www.youtube.com/watch?v=oqsDQ7Zjpnc
on both to ensure I got the same results, which it does for the most part except on windows I get more detailed codec info on the vp9 streams (e.g. vp09.00.50.08
) while on linux it just says vp9
.
Nothing in my system has changed but this appears to have resolved itself completely.
mpv Information
Other Information
Reproduction Steps
--list-formats
on a youtube link, find a format that uses the VP9 codec--script-opts=ytdl_hook-all_formats=yes
, for example:.\mpv.exe --no-config --script-opts=ytdl_hook-all_formats=yes --vid=1 https://www.youtube.com/watch?v=oqsDQ7Zjpnc
Expected Behavior
Stats.lua reports the currently playing video track as using VP9, as can be confirmed by yt-dlp or ffprobe if the video has been downloaded. (MPV also correctly reports it as VP9 if
--script-opts=ytdl_hook-all_formats=yes
is omitted, or if the video URL is acquired throughyt-dlp --get-url
and loaded into MPV that way)Actual Behavior
Stats.lua reports the codec as "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [h264]"
Log File
output.txt
Sample Files
No response
I carefully read all instruction and confirm that I did the following:
--log-file=output.txt
.