When playing youtube videos, the thumb cannot be displayed
Do I need to add some configuration? I see that there is yt-dlp related processing in the code, but it does not display I use the default configuration of uosc Local videos can thumb correctly
./mpv.com 'https://www.youtube.com/watch?v=Ugb80d5lxEM'
You need to enable network, https://github.com/po5/thumbfast?tab=readme-ov-file#configuration
After changing the setting network=yes, a white image is always displayed.
A minimal reproducible structure, only one script is installed, and the default configuration only changes network=yes, but thumb is always white and no error in the terminal
To avoid network problems, I turned off the VPN and played a bilibili video. The same thing happened.
./mpv.com 'https://www.bilibili.com/video/BV1Ba411g7EC'
mpv.conf
script-opts=ytdl_hook-ytdl_path=./portable_config/yt-dlp
ytdl-raw-options=cookies=./portable_config/cookies.txt,mark-watched=
.
├── d3dcompiler_43.dll
├── mpv.com
├── mpv.exe
└── portable_config
├── cookies.txt
├── mpv.conf
├── script-opts
│ └── thumbfast.conf
├── scripts
│ ├── osc.lua
│ └── thumbfast.lua
└── yt-dlp
I have this same problem when codec is vp09. When I switch to avc1 thumbs generate.
When I tried to implement this function using js, I found some areas that could be optimized. I hope this will be helpful.
- yt-dlp usually uses cookies, so it should be set by the user whether to enable --no-config
- The value of --ytdl should be determined by whether the video is remote or not.
- --demuxer-max-bytes Using the default value will be smoother
- The video path should remove ",ytdl_description=", because the presence of line breaks may cause mpv playback failure