mpv-scripts icon indicating copy to clipboard operation
mpv-scripts copied to clipboard

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

Open KonoVitoDa opened this issue 1 year ago • 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?

KonoVitoDa avatar Feb 05 '24 11:02 KonoVitoDa

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

Eisa01 avatar Feb 05 '24 12:02 Eisa01

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. :(

KonoVitoDa avatar Feb 05 '24 20:02 KonoVitoDa

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

Eisa01 avatar Feb 06 '24 07:02 Eisa01

Thanks and please! 🙏

KonoVitoDa avatar Feb 06 '24 17:02 KonoVitoDa

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

KonoVitoDa avatar Feb 06 '24 22:02 KonoVitoDa