po5 / thumbfast

High-performance on-the-fly thumbnailer script for mpv
Mozilla Public License 2.0
861 stars 35 forks source link

Exact seek no interval #41

Closed christoph-heinrich closed 1 year ago

christoph-heinrich commented 1 year ago

The idea from https://github.com/tomasklaen/uosc/pull/302 also makes sense here. Basically it's to use keyframe seeking while dragging the mouse around, and then at the end use an exact seek.

With seek commands being throttled, there is no need to limit the thumbnail count anymore. Throwing out all the time interval stuff is essential to making the exact seek effective and as a nice bonus the code becomes shorter and there is less to configure.

christoph-heinrich commented 1 year ago

Currently working on giving the subprocess a script and then seeking by writing to a file instead of via the socket. It's already working, but there is a possible race condition I'll have to solve. With that seeking around doesn't stutter playback at all anymore.