Eisa01 / mpv-scripts

This repository contain scripts I have made for mpv media player...
BSD 2-Clause "Simplified" License
590 stars 37 forks source link

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

Open KonoVitoDa opened 9 months ago

KonoVitoDa commented 9 months ago

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?

Eisa01 commented 9 months ago

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
KonoVitoDa commented 9 months ago

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

Eisa01 commented 9 months ago

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

KonoVitoDa commented 9 months ago

Thanks and please! 🙏

KonoVitoDa commented 9 months ago

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