我将尝试在Lubuntu20.04中为这个skript使用mpv_缩略图_脚本我的配置
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
mpv的我的配置
cat .config/mpv/config
#hwdec=vdpau
#vo=vdpau
fullscreen
sub-scale=1
osc=no
但是当我启动mpv时,缩略图是黑色的。
从终端开始
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
我不确定,我是否犯了错误,或者脚本本身有问题。
注:我不能略读。我找到了这个这个问题,并遵循了答案中的链接,但我不知道该做什么。
发布于 2020-08-07 06:54:23
我可以通过改变
.config/mpv/lua-settings/mpv_thumbnail_script.conf
零件
prefer_mpv=yes
至
prefer_mpv=no
使用mpv生成缩略图,即使在路径中找到ffmpeg,ffmpeg比mpv略快,但对MKV中的有序>章节缺乏支持,这会破坏最终的缩略图。你已经被警告过了。默认为yes (不要使用ffmpeg) prefer_mpv=是/否
有缩略图,很有用。
https://askubuntu.com/questions/1261237
复制