Ask Your Question

Revision history [back]

How to record video with 1 gigE camera and 1 USB camera at different framerates?

Hi I am a newbie to Python and OpenCV, and would like to start using OpenCV and Python to write a GUI to control our experiments. Ideally, we have one high-resolution gigE camera (via ethernet) with 60 fps recording animal's pupil, and another lower-resolution USB camera with 30 fps recording animal's whole body. Our gigE camera can be externally triggered. I know the USB camera wouldn't be triggered, so theoretically they are not really grabbing each frames simultaneously, but I would want both cameras to start at the same time (i.e., t = 0, both cameras start running, and 10 seconds in gigE camera video will be same as 10 seconds in USB camera).

I have seen posts showing how to record video with 2 web cameras simultaneously. However, those cameras usually have same frame rates. I don't know how I can initiate and record with above cameras. Any suggestions or example scripts on how I can do this? Thank you very much!