TransWikia.com

problem with mpv_thumbnail_script from git

Ask Ubuntu Asked on December 1, 2021

I’ll try in lubuntu 20.04 to use mpv_thumbnail_script
my config for this skript

cat .config/mpv/lua-settings/mpv_thumbnail_script.conf 
#Für Vorschaubildchein in mpv
cache_directory=/home/alex/mpv/my_mpv_thumbnails
autogenerate=yes
prefer_mpv=yes
mpv_no_sub=yes
disable_keybinds=yes
thumbnail_width=200
thumbnail_height=200
thumbnail_network=no
thumbnail_count=150
min_delta=5
max_delta=90

My config for mpv

cat .config/mpv/config
#hwdec=vdpau
#vo=vdpau
fullscreen
sub-scale=1
osc=no

But when i start mpv the thumbnails are black.

starting from terminal gives

mpv jd2/downloads/Aang & Tenzin - Clip_ Avatar The Legend of Korra/Aang & Tenzin - Clip_ Avatar The Legend of Korra (360p).mp4 
[mpv_thumbnail_script_server] lua-settings/ is deprecated, use directory script-opts/ 
[mpv_thumbnail_script_client_osc] lua-settings/ is deprecated, use directory script-opts/ 
 (+) Video --vid=1 (*) (h264 624x352 24.000fps)
 (+) Audio --aid=1 --alang=eng (*) (aac 2ch 44100Hz)
[vaapi] libva: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
Using hardware decoding (vaapi).
AO: [pulse] 44100Hz stereo 2ch float
VO: [gpu] 624x352 vaapi[nv12]
AV: 00:00:00 / 00:01:29 (0%) A-V:  0.000
[mpv_thumbnail_script_client_osc] The 'tick' event is deprecated and will be removed.
AV: 00:00:00 / 00:01:29 (0%) A-V:  0.000
[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: /home/alex/mpv/my_mpv_thumbnails/Aang  Tenzin - Clip_ Avatar The Legend of Korra 360p-3829920/000000.bgra.log 
[mpv_thumbnail_script_server] Output file missing! /home/alex/mpv/my_mpv_thumbnails/Aang  Tenzin - Clip_ Avatar The Legend of Korra 360p-3829920/000000.bgra 
(Paused) AV: 00:01:29 / 00:01:29 (100%) A-V:  0.000


Exiting... (End of file) # here dies mpv
[mpv_thumbnail_script_client_osc] 
[mpv_thumbnail_script_client_osc] stack traceback:
[mpv_thumbnail_script_client_osc]       .../.config/mpv/scripts/mpv_thumbnail_script_client_osc.lua:1080: in function 'prop'
[mpv_thumbnail_script_client_osc]       mp.defaults:392: in function 'handler'
[mpv_thumbnail_script_client_osc]       mp.defaults:486: in function 'call_event_handlers'
[mpv_thumbnail_script_client_osc]       mp.defaults:520: in function 'dispatch_events'                                                                     
[mpv_thumbnail_script_client_osc]       mp.defaults:479: in function <mp.defaults:478>                                                                     
[mpv_thumbnail_script_client_osc]       [C]: in ?                                                                                                          
[mpv_thumbnail_script_client_osc]       [C]: in ?                                                                                                          
[mpv_thumbnail_script_client_osc] Lua error: .../.config/mpv/scripts/mpv_thumbnail_script_client_osc.lua:1080: attempt to compare nil with number 

I’m not sure, if i made a mistake, or something is wrong with the scripts itself.

log file

Note: I can not skript.
I found this this question and followed the link in the answer, but I do not know what I have to do.

One Answer

I could solve it by changing in

.config/mpv/lua-settings/mpv_thumbnail_script.conf 

part

prefer_mpv=yes

to

prefer_mpv=no

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=[yes/no]

with ffmpeg for thumbnails, works.

enter image description here

Answered by nobody on December 1, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP