thumbfast icon indicating copy to clipboard operation
thumbfast copied to clipboard

When playing youtube videos, the thumb cannot be displayed

Open ahaoboy opened this issue 1 year ago • 5 comments

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'

ahaoboy avatar Jul 14 '24 13:07 ahaoboy

You need to enable network, https://github.com/po5/thumbfast?tab=readme-ov-file#configuration

N-R-K avatar Jul 14 '24 18:07 N-R-K

image

After changing the setting network=yes, a white image is always displayed.

ahaoboy avatar Jul 15 '24 02:07 ahaoboy

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

ahaoboy avatar Jul 16 '24 14:07 ahaoboy

I have this same problem when codec is vp09. When I switch to avc1 thumbs generate.

lirtle avatar Dec 06 '24 00:12 lirtle

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

ahaoboy avatar Aug 07 '25 01:08 ahaoboy