databrary / datavyu

Desktop video coding/annotation tool
http://datavyu.org/
GNU General Public License v3.0
27 stars 18 forks source link

Video playback with multiple sources loses sync after jogging in reverse #326

Open hvpandya opened 4 years ago

hvpandya commented 4 years ago

Describe the bug I am working with two video files (mp4), added bookmarks to sync and locked them, after jogging in reverse for a few times both videos go out of sync. Was able to repeatedly reproduce this behavior every single time.

To Reproduce Steps to reproduce the behavior:

  1. Add two video files (via Add Data button)
  2. Sync using bookmarks
  3. Lock all data sources
  4. Jog forward and reverse a few times.

Expected behavior Video playback with multiple sources should stay in sync after locking.

Desktop (please complete the following information):

TheoWolf commented 4 years ago

@hvpandya If I understand correctly, the synchronization problem that you are facing is between the video time and the video controller or between videos?

hvpandya commented 4 years ago

Actually I am observing both types of desync:

  1. Between the two videos
  2. The time shown on the controller does not correspond to any of the two video frames after the issue occurs.

To confirm issue 2, I checked light on/off event timing in VLC player and the one displayed on controller, there was a difference of few seconds.

TheoWolf commented 4 years ago

We are using a counter video here and didn't see any synchronization issues between videos. However, sometimes we get a frame difference between the Video Controller and the video. this might be caused by the seeking features that fall on the frame just behind the requested time. I will look into it for the next release