Mpv Thumbnail Script Versions Save

A Lua script to show preview thumbnails in mpv's OSC seekbar, sans external dependencies

0.4.2

6 years ago

Fixes:

  • Pass current headers, user-agent and referrer to worker-mpvs. Fixes network paths that rely on, say, cookies (#14)

Compare all changes

0.4.1

6 years ago

Fixes:

  • Handle filter-chain changes properly (ie. don't assume video-dec-params changing means a new file) - #11
  • Try to wait for workers a bit longer in case we have none when starting the jobs
  • More msg.debug prints!

Compare all changes

0.4.0

6 years ago

⚠️ This release changes the thumbnail timestamp generation slightly, so it's recommended to clear out your old thumbnails.

Features:

  • Improved thumbnail feel - read 2da8546 and #7 for details. In short, the thumbnail timestamp is adjusted slightly so that the visible thumbnail is not already a past event if seeked on.
  • Allow hiding the generation progress
  • Thumbnail vertical offset and background padding, user-configurable: 2018-01-03 03-03-20 with subs 00-00-16 298x212 001 2018-01-03 03-03-20 with subs 00-00-44 296x244 001

Look at src/options.lua for relevant new options.

Fixes:

  • Updated patched_osc.lua to match upstream (cache display changes), and patched in some newer helper functions for older mpv versions.
  • Fix thumbnail jumping horizontally near seekbar center by using raw mouse position

Compare all changes

0.3.4

6 years ago

Fixes:

  • Work around extremely long EDL paths (#8) when need be.

Hm. I should figure out a different release format if I end up doing lots of one-commit fixes like this.

Compare all changes

0.3.3

6 years ago

Fixes:

  • sha256.lua not working on Lua 5.1 (#6). Replaced with another sha1 implementation.

Compare all changes

0.3.2

6 years ago

Fixes:

  • Hash overlong long filenames (urls). You can adjust the length in options under hash_filename_length, default 128 characters. #5

This release was broken on mpv's built with Lua 5.1. See 0.3.3 above.

Compare all changes

0.3.1

6 years ago

Features/fixes:

  • Logfiles for the mpv sub-calls. which are automatically removed on success and kept for failures.
    The logfiles are in the same directory as the thumbnails.
  • Some extra options for disabling the sub-mpv config or forcing a profile. See options.lua for all available script options.

Compare all changes

0.3.0

6 years ago

(If you downloaded a file just as this release was made, you'll have to redownload)

Features:

  • Multiple worker threads! Read the updated Configuration or just read here:
    Simply duplicate the mpv_thumbnail_script_server.lua once or twice, no matter on the name (but remember, script filenames must not contain spaces!)
  • Display active thumbnailing jobs in the progress display (vague green): image
  • Allow disabling subtitles when using mpv for thumbnailing (mpv_no_sub, defaults to no)

Fixes:

  • Optimize away unnecessary overlay-removes (no real impact)
  • Prefer mpv by default even if FFmpeg is in PATH (because of #2)

Compare all changes

0.2.0

6 years ago

(If you downloaded a file just as this release was made, you'll have to redownload)

Features:

  • Thumbnailing network files/streams. Yes, like YouTube. It's slow, it may break on sites other than YouTube, but it's there. Look at the configuration for thumbnail_network and friends.

Fixes:

  • Fix giant font size
  • Fix bad padding
  • Fix a typo

Compare all changes

0.1.0

6 years ago

Woo! 🎉

Be sure to read the README.md!

Note: You will need a rather new version of mpv due to the new binds used in the patched osc.lua. I may failsafe them later.