Mpv - thumbnail preview, update

Option 1 (doesn’t cache thumbs) ↓

scrot of option1

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) ↓

scrot

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.