Mpv - thumbnail preview, update
28. 9. 2023Option 1 (doesnβt cache thumbs) β
https://github.com/po5/thumbfast
Add/populate your mpv fodler like this:
βββ script-opts
βΒ Β βββ thumbfast.conf
βββ scripts
βΒ Β βββ osc.lua
βΒ Β βββ thumbfast.lua
Profit.
Option 2 (does cache thumbs) β
The source
git clone https://github.com/TheAMM/mpv_thumbnail_script
# run
concat_files.py cat_server.json
concat_files.py cat_osc.json
Two new files with lua extension should appear
mpv_thumbnail_script_server.lua
mpv_thumbnail_script_client_osc.lua
This applies to windows βportableβ mpv install from here on. Make scripts fodler next to mpv.exe and copy the two new files in there
scripts
βββ mpv_thumbnail_script_client_osc.lua
βββ mpv_thumbnail_script_server.lua
Make lua-settings fodler and add a new conf file, like this
lua-settings
βββ mpv_thumbnail_script.conf
Check the example in documentation and populate the conf as you wish, I have changed some
autogenerate_max_duration=10600
thumbnail_width=400
thumbnail_height=400
thumbnail_count=1350
min_delta=0.1
max_delta=90
cache_directory=f:\cache\mpv_thumbs\
In mpv.conf add
# thumbnail script stuff
osc=no
To increase thumbnailing speed, duplicate the server lua script few times
scripts
βββ mpv_thumbnail_script_client_osc.lua
βββ mpv_thumbnail_script_server-1.lua
βββ mpv_thumbnail_script_server-2.lua
βββ mpv_thumbnail_script_server.lua
If the scripts donβt wanna autorun on startup, the magic shortkey is βTβ (that is shift+t).
Cons: Canβt get top part of the ui to show up on mouse over (thatβs the one with close icon X). This is quite cpu intensive, fan loud.