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

Modifying device files for resolution and frame rate #40

Open
saglag opened this issue Apr 5, 2021 · 5 comments
Open

Modifying device files for resolution and frame rate #40

saglag opened this issue Apr 5, 2021 · 5 comments

Comments

@saglag
Copy link

saglag commented Apr 5, 2021

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).

@daharoni
Copy link
Member

daharoni commented Apr 5, 2021

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.

@saglag
Copy link
Author

saglag commented Apr 5, 2021

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
Copy link
Author

saglag commented Apr 5, 2021

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

@saglag
Copy link
Author

saglag commented Apr 6, 2021

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

@Mraymon5
Copy link

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.

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