forked from TheAMM/mpv_thumbnail_script
-
-
Notifications
You must be signed in to change notification settings - Fork 22
Script does not work with network videos on latest version of mpv #8
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
(Bug report template based on Red Hat Bugzilla's)
Description of problem
After updating to the latest version of mpv, 0.34.0, mpv_thumbnail script stopped working.
Version-Release number of selected component (if applicable)
mpv-0.34.0-1.fc35.x86_64 (from RPMFusion)
mpv_thumbnail_script 0.4.4
How reproducible
This issue only occurs with streaming videos. Local files are not effected. Here is my local configuration in case that is relevant:
mpv.conf:
hwdec=vaapi
no-keepaspect-window
#ytdl-format="bestvideo[height<=1080][vcodec!=vp9]+bestaudio/best"
sub-auto=fuzzy
sub-scale=0.75
slang=en,en-US,eng,en*
save-position-on-quit
# Use yt-dlp instead of youtube-dl
script-opts=ytdl_hook-ytdl_path=yt-dlp
# Needed for mpv_thumbnail_script
osc=no
mpv_thumbnail_script.conf:
# Use mpv to generate thumbnail even if ffmpeg is found in PATH
# ffmpeg is slightly faster than mpv but lacks support for ordered chapters in MKVs,
# which can break the resulting thumbnails. You have been warned.
# Defaults to yes (don't use ffmpeg)
prefer_mpv=no
# Allow thumbnailing network paths (naive check for "://")
# Defaults to no
thumbnail_network=yes
# The maximum dimensions of the thumbnails, in pixels
# Defaults to 200 and 200
thumbnail_width=400
thumbnail_height=400Steps to Reproduce
mpv 'https://youtu.be/siEIKFy1Q0I'-- any other YouTube video would work too.
Expected results
Script to generate thumbnails
Actual results
Thumbnailing failed, check console for detailsmessage printed
Output:
$ mpv 'https://youtu.be/siEIKFy1Q0I' --no-resume-playback
(+) Video --vid=1 (*) (vp9 1920x1080 30.000fps)
(+) Audio --aid=1 --alang=eng (*) (opus 2ch 48000Hz)
File tags:
Uploader: Brodie Robertson
Channel_URL: https://www.youtube.com/channel/UCld68syR8Wi-GY_n4CaoJGA
[ffmpeg] AVHWDeviceContext: Failed to query surface attributes: 20 (the requested function is not implemented).
[vo/gpu/vaapi-egl] failed to retrieve libavutil frame constraints
Using hardware decoding (vaapi).
AO: [pulse] 48000Hz stereo 2ch float
VO: [gpu] 1920x1080 vaapi[nv12]
AV: 00:00:00 / 00:13:12 (0%) A-V: 0.000 Cache: 6.7s/871KB
[mpv_thumbnail_script_client_osc] Using playlist workaround due to long source path
[mpv_thumbnail_script_server] Thumbnailing remote path, falling back on mpv.
[mpv_thumbnail_script_server_2] Thumbnailing remote path, falling back on mpv.
AV: 00:00:01 / 00:13:12 (0%) A-V: 0.000 Cache: 16s/3MB
[mpv_thumbnail_script_server] Thumbnailing command failed!
[mpv_thumbnail_script_server] mpv process error: nil
[mpv_thumbnail_script_server] Process stdout:
[mpv_thumbnail_script_server] Debug log: /tmp/mpv_thumbs_cache/siEIKFy1Q0I-0/000000.bgra.log
[mpv_thumbnail_script_server] Output file missing! /tmp/mpv_thumbs_cache/siEIKFy1Q0I-0/000000.bgra
AV: 00:00:01 / 00:13:12 (0%) A-V: 0.000 Cache: 16s/3MB
[mpv_thumbnail_script_server_2] Thumbnailing command failed!
[mpv_thumbnail_script_server_2] mpv process error: nil
[mpv_thumbnail_script_server_2] Process stdout:
[mpv_thumbnail_script_server_2] Debug log: /tmp/mpv_thumbs_cache/siEIKFy1Q0I-0/000032.bgra.log
[mpv_thumbnail_script_server_2] Output file missing! /tmp/mpv_thumbs_cache/siEIKFy1Q0I-0/000032.bgraAdditional info
Here are the debug logs:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working