Support for YT storyboard#23
Conversation
|
Thanks! This is really nice and allows to display the thumbnails for youtube much faster. |
|
It is super fast, but it's not following mpv_thumbnail_script.conf(remote_max_delta and remote_thumbnail_count). |
|
@paseu yes, I don't think it's a big issue as it doesn't use much CPU. It just uses more bandwidth but that's negligible for youtube streaming. Or what's your reason for wanting less (or more?) thumbnails? |
|
First, thumbnails are saved in /tmp/ so they take memory(playing 10 hour video, it generated 3600 thumbnails over 200MB). Also I got error messages while script generating thumbnails of long videos(maybe several hours.. in my case i got error playing 7hour video) and thumbnail script did not complete generating thumbnails. error message from mpv [youtube address] -v ... After these messages, it stopped generating thumbnails. I made more mpv_thumbnail_script_server-[num].lua files then less errors occured but still did. |
Calls yt-dlp to get URLs with thumbnail atlases("storyboard") if it's a network stream (format "sb0").
Then downloads these atlases and splits them into thumbnails. This allows for much faster thumbnail generation (a few seconds).
Currently yt-dlp only supports storyboards for youtube.
This PR assumes 5x5 atlases (currently yt-dlp doesn't expose atlas dimensions, I'll open a PR to yt-dlp later)