portugueslab / stytra

A modular package to control stimulation and track behaviour
http://www.portugueslab.com/stytra/
GNU General Public License v3.0
41 stars 26 forks source link

Video frame mismatch after offline tracking is done. #88

Open antonykiran10 opened 1 year ago

antonykiran10 commented 1 year ago

My input video was made using 5348 snapshots at 120 fps. But after offline tracking, the total frames in the video was 6091. This has created problems in aligning the tracking data from Stytra with tracking data from other packages. What could possibly be happening here?

vigji commented 1 year ago

Hi @antonykiran10! I am suprised, I don't think this behavior has been reported previously - maybe @vilim knows better though. What are you using to export your video? Have you tried what happened if you generate an input video of different sizes? Does it add the same number of frames very time?

antonykiran10 commented 1 year ago

I am using a PIKE camera for recording. It saves snaps of each frame as a BMP image instead of a continuous video. I will then open this as an image sequence using ImageJ and then save it as an AVI file without any compression.

Regarding the video with different sizes, I will check that and get back.

antonykiran10 commented 1 year ago

I checked with a video made of 5384 frames. But the final CSV file had only 5347 frames. During tracking, it showed "Frames Dropped".