Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video being misaligned in timing for 2 Videos #783

Open
Himums opened this issue Aug 19, 2024 · 8 comments
Open

Video being misaligned in timing for 2 Videos #783

Himums opened this issue Aug 19, 2024 · 8 comments

Comments

@Himums
Copy link

Himums commented Aug 19, 2024

Indicate the version of BORIS
Verify you are using the last version (http://www.boris.unito.it/pages/download.html)
8.27.1

Describe the bug
A clear and concise description of what the bug is.
Hey I analyze two videos at once, looking at an animal from two angles. Sometimes the videos the differ i duration by 0.1 or 0.05 seconds. I've noticed consistently that one video is ahead by less than a second. However when I quit the app and come back, it seems to be better. However it seems I need to do this for every video I timestamp. It seems as if videos synchronicity gets a bit off. Anyone have any idea what I can to solve this and what the problem is?
Sometimes I think that the videos start at different times, due to duration differences, but after quitting the app and coming back its fixed, in synced(most times). So I'm wondering what factor is making one video sometimes ahead than the other.

To Reproduce
Steps to reproduce the behavior:
You can get two avi videos of the same thing from different angle. I timestamp movements. So throughout the 2-5 minute videos I'm just skipping by a few frames to slow down for the precise time a movement occurred.

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
One limb of the animal (or frame in video) is .1 second ahead of the other video. So at first their limb did something at time 4:30:550 but then another video has that limb do the same thing at 4:30:650(min:seconds:fraction of second)

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [windows 10, Ubuntu 22.04 ... ]
    Windows 10
  • Type of BORIS instalaltion (setup or portable ...)
    Setup

In case of crash attach or copy the content of the boris.log file (before relaunching BORIS).
(see http://www.boris.unito.it/pages/report_a_bug.html for its location)

@olivierfriard
Copy link
Owner

hi,
did you use a time offset during the observation creation?

@Himums
Copy link
Author

Himums commented Aug 19, 2024

No, I've only done that 5x(Ive gone 100s of videos). Sometimes it actually offsets, but most of the times it didn't offset anything.

@olivierfriard
Copy link
Owner

If your videos begin at a different time you have to use the offset parameter for their synchronization.
See https://www.boris.unito.it/user_guide/observations/#observation-from-media-files for details

@Himums
Copy link
Author

Himums commented Aug 20, 2024

Sometimes the offset doesn't do anything though, am I supposed add in anything when using it?

@christine-barry
Copy link

christine-barry commented Aug 21, 2024

Hey Oli, I am having a similar problem, but with time drift! So a video that is 30 minutes long is showing up as 33 minutes by the end of the observation. I am then exporting 1980 rows to binary data instead of the expected 1800, creating problems when I match behavioural data with movement data from different sensors. Could it be the same problem? I have a short 1 minute video and the timing seemed okay for that? Got any suggestions?

Thanks
Chris

@christine-barry
Copy link

Hey Oli, I've realised my video converter caused the time drift and gave me 35 minute MP4 videos from the 30 minute h265 videos. Sorry! C

@alisabak
Copy link

Hi! I have a similar problem with 2 videos opened in 2 players. When I score them in a frame-by-frame mode, at some point videos become unsynchronized. If I jump to another time point in the video and back, they get synchronized again. The problem is unpredictable, it appears and disappears randomly during scoring frame-by-frame. I do not use the offset; recoding the videos with a lower bitrate did not help.

I am using Windows 10. Videos are quite large (1748x1058, 20 min at 30 fps).

@christine-barry
Copy link

I converted my files to MP4 with 'handbrake' which caused the frame-rate issue. Once I converted them again through VLC my issue was fixed and I didn't have additional problems with BORIS.
C

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants