databrary / datavyu-ffmpegplugin

A Java Media Player based on FFmpeg and SDL2
GNU General Public License v3.0
13 stars 4 forks source link

Subtract 1/frame_rate from seek time #221

Closed TheoWolf closed 4 years ago

TheoWolf commented 4 years ago

The FFmpeg plugin will always add an extra step (jump by one frame) to the requested time in order to refresh the display. one solution to have an accurate seek is to take into consideration that extra step and always subtract 1/frame_rate from the requested time seek.