Eisa01/mpv-scripts

[UndoRedo.lua] Any way to make seek more precise?

KonoVitoDa opened this issue · 5 comments

E.g.: If I'm at a keyframe, seek 20 exact and Undo, the frame won't be the original one, there's a imprecision of several centiseconds, wheter forward or backward. Is there any way to make Undo/Redo's precision to be exact, so that I go back to the exact original frame I was before?

Just remove this code from the script it should be exact. Let me know the results.

I'll provide it as an option also to change the milliseconds

if (pause == true) then
		seconds = seconds
	else
		seconds = seconds - 0.5
	end

Just remove this code from the script it should be exact. Let me know the results.

I removed, but it didn't change anything, the Undo behavior remains the same. :(

I'll see if I can optimise it further, no promises though

Thanks and please! 🙏

One more question about SimpleHistory: is it possible to show files extensions in the list?