Select a camera by its ID (/dev/videoX on Linux, and 0 to N cameras connected on Windows)
InitParameters init_params; // Set initial parameters
init_params.sdk_verbose = 1; // Enable verbose mode
init_params.input.setFromCameraID(0); // Selects the camera with ID = 0
Is there some consistency in camera IDs guaranteed for GMSL cameras in the sense plugged hardware port of GMSL splitter/id mapping?
I expect for USB cameras on Linux it might be random cameras racing for init, is it similar for GMSL or is it deterministic?
Is GMSL camera identification by ID also done by /dev/videoX on Linux (as stated in docs) or is the mechanism different?
Hi @bmegli
with JP5 and driver v1.0.5 the camera ID can change when the Jetson reboots.
This behavior is not present in JP6 starting from ZED X Driver v1.1.1.
With JP5 you can use the serial number to uniquely identify the cameras instead of the ID.