Author Topic: The total frame number of behavCam and msCam is not identical  (Read 2966 times)

Chenglin

  • Newbie
  • *
  • Karma: +0/-0
    • View Profile
The total frame number of behavCam and msCam is not identical
« on: August 14, 2017, 09:14:35 AM »
I found one strange thing with the video after imaging with the miniscope. The total frame number of behavCam and msCam is not identical. Would you mind to help to tell me is it correct? If it is right, could you help to tell me how could I adjust the time stamps in frame of behavCam and msCam?

Daniel Aharoni

  • Administrator
  • Full Member
  • *****
  • Karma: +15/-0
    • View Profile
Re: The total frame number of behavCam and msCam is not identical
« Reply #1 on: August 14, 2017, 03:05:18 PM »
Hi Chenglin,
The behavior and imaging video streams are not guaranteed to have the same number of frame or same frame rate. Generally, webcams have a frame rate that varies across a recording session while the Miniscope frame rate should be completely stable. Every time a frame is acquired (both for the behavior and imaging video streams) the DAQ Software timestamps that acquisition and saves that information in timestamp.dat. This file allows you to sync up the 2 videos offline by matching up timestamps. I hope this helps.

Chenglin

  • Newbie
  • *
  • Karma: +0/-0
    • View Profile
Re: The total frame number of behavCam and msCam is not identical
« Reply #2 on: August 16, 2017, 08:37:50 AM »
Thank you very much! It is very helpful!  :)