fengalin / media-toc

Build a table of contents from a media file or split a media file into chapters
MIT License
73 stars 3 forks source link

Waveform current cursor is late sometimes #128

Closed fengalin closed 5 years ago

fengalin commented 5 years ago

Waveform current cursor is late sometimes compared to audio.

This is because to the frame time used was actually the time for the last frame displayed.

fengalin commented 5 years ago

Using frame_timing.get_predicted_presentation_time() should mitigate the issue, but there is a bug in the GDK binding currently. I'm working on it. Will post the ref. to the PR when it's ready.

fengalin commented 5 years ago

See https://github.com/gtk-rs/gdk/pull/246

fengalin commented 5 years ago

Can do better by minimizing the lag when setting the base reference.