databrary / datavyu-ffmpegplugin

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

Video playback slower than normal speed at 1x #165

Closed sh0sh1n closed 5 years ago

sh0sh1n commented 5 years ago

While testing Datavyu v1.5.0-rc2: FFMPEG playback is slower than the NativeOSX plugin for the same video when playing at 1x speed.

Adding multiple instances of the same video using the FFMPEG further slows down the playback performance. This is not the case for the NativeOSX plugin.

TheoWolf commented 5 years ago

This is due to the canvas drawImage method that is not as fast as the FFmpeg engine, and this makes the Java side skip some frames and causes the lagging.

TheoWolf commented 5 years ago

This is fixed in #166