databrary / datavyu-ffmpegplugin

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

Playback throttling after a precise seek #206

Closed TheoWolf closed 4 years ago

TheoWolf commented 4 years ago

The player precise seek uses the AVSEEK_FLAG_BACKWARD flag to find the closes keyframe to the requested timestamp and enqueue frames until we decode the frame that matches the requested time. REsuming the playback after a precise seek will throttle (play in slow motion!) rendering frames buffered (a few milliseconds) after a seek.

TheoWolf commented 4 years ago

Fixed in https://github.com/databrary/datavyu-ffmpegplugin/pull/210