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

Missing triggerdata.csv #19

Open
harshk95 opened this issue May 26, 2023 · 3 comments
Open

Missing triggerdata.csv #19

harshk95 opened this issue May 26, 2023 · 3 comments

Comments

@harshk95
Copy link

Hi Timo,
We have been using the JARVIS Acquisition tool for some time now (6x FLIR Blackfly as we mentioned in issues in the past) and were able to use it successfully. However, with some recent recordings, we have an aberrant behaviour of the tool. It appears that the number of frames in the video does not match the number of frames from the metdata.csv and neither do either of these match the number of frames that we measure using exposure active pulses from the cameras. The main thing that appears to be predictive of this behaviour was a missing triggerdata.csv file in the recordings that had that and they all are from a single day of recordings. The other strange thing we have not observed before is that in the metadata file, the cameras do not start from frame 0, rather they all start from a different number and all end at a different number (using frame ID).
Running it again now does not reproduce this issue.
We have attached below an example metadata file. We were wondering if given this behavior you could help us diagnose the problem, help us avoid it in the future and if there was some possibility to salvage the current recordings.

metadata.csv

Thanks a lot.

@padok
Copy link
Collaborator

padok commented Jun 25, 2023

Hey there,

I'm not Timo, but maybe I can help you out.
Right now, it's normal that the metadata file ends a bit earlier than the cameras, this is caused by the way of how we sync them up at the moment (not quite optimally). Sometimes the metadata file closes before the cameras are done recording frames, and this causes a small misalignment between the metadata file frame numbers and the video files. Check the frame count of the video files to make sure that they are complete. We know about this and we're working on fixing it.

Your file is pretty weird, though. The start or first frames normally should be in sync, but it looks like the cameras got some noise or something triggered them randomly before you started the acquisition in Jarvis. It could be a problem with your wiring or your microcontroller or your storage medium. Are you using a SSD? It is required, because recording with multiple cameras is causing quite an amount of random writes and HDD are not up to that task.

Let me know if you can reproduce it again.

Louis

@Antorithms
Copy link

Hi Louis,
In our experience so far, we do not experience that the metadata file ends before the cameras and is quite precise. We have not been able to reprodice the glitch that we reported above and it seems to have affected recordings done on that particular day. It does appear there is some degree of randomness in the triggering and the number of frames in each camera are way off and do not seem to be in a manner that we can find the spurious frames from the metadata file. We use M2 SSDs for acquisition and never had this trouble in many recordings in the past or since we reported that issue.

Thanks.

@padok
Copy link
Collaborator

padok commented Jul 28, 2023

Hey Antorithms,

What do you mean by randomness? Is you setup working as expected?
If you experience frame drops, and you are sure it's not related to your hard disk:

  1. What USB-Card are you using? Do you use a one USB-Controller per camera configuration?
  2. Are you useing different USB cables than the ones supplied by Flir?
  3. Have you set the recommended USB configuration (linux)?
  4. Did you verify your camera configurations?

Cheers
Louis

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

3 participants