Miniscope-DAQ-QT-Software icon indicating copy to clipboard operation
Miniscope-DAQ-QT-Software copied to clipboard

Modifying device files for resolution and frame rate

Open saglag opened this issue 3 years ago • 5 comments

Until I get my FLIR camera to work with acquisition software, I'm working with a Logitech Brio.

I've tried modifying the device config file for webcams to include 1920x1080 resolution.

Whenever I try to run this resolution the software crashes.

Also, when I adjust the framerate in the behaviorCams.json it still runs at 30 FPS in the software. And the avi output runs a 30 FPS movie at 60 FPS (independent whether the device file states 30 or 60).

saglag avatar Apr 05 '21 19:04 saglag

Hi @saglag,

  • It should be possible to add a new WebCam device type within the videoDevices.json file (the behaviorCams.json has been replaced with the videoDevices.json file) to support this framerate as long as it is also natively supported by your webcam. Can you post exactly what you edits so far?
  • Pretty much all webcams do not support FPS adjustment. They basically will run as fast as your USB bus will allow while also keeping the exposure time long enough to get a decent signal. All saved AVI files from the Miniscope software default to a playback FPS of 60. This is for a couple reasons including that most webcams do not produce a very stable FPS on their own so the playback FPS of the saved file should be ignored. You can look at the timestamp file saved along with the AVI to extract timing of each acquired frame.

daharoni avatar Apr 05 '21 20:04 daharoni

Made the change in the videoDevices.json image Was able to get the higher resolution, but not the frame rate increase. I can run the camera separately at 1920x1080 at 60 FPS and it seems fine (but do not know if it drops frames).

I've also tried modifying it in the userconfig file: image Unfortunately, still doesn't acquire at 60 FPS

saglag avatar Apr 05 '21 20:04 saglag

Ah, I need to check timestamps to verify FPS. I'll look tomorrow morning

saglag avatar Apr 05 '21 22:04 saglag

Indeed it runs at 30 FPS although all json files specify running at 60 FPS (both the videoDevices.json and the userconfig file) image

Verified 30FPS with timestamp so that frame 30 is approximately at 1000 ms image

saglag avatar Apr 06 '21 19:04 saglag

I'm running into a similar problem; our video signal keeps getting saturated, and I'm trying to increase framerate as one method of dimming the video, but I can't set the acquisition FPS higher than 30.

Mraymon5 avatar May 16 '23 21:05 Mraymon5