How do I test the functionality of two cameras

Hello, I have a problem now. I don’t know how to test these two camera interfaces

You can use the following two commands to test two cameras respectively:

gst-launch-1.0 v4l2src device=/dev/video31 ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! videoconvert ! autovideosink

gst-launch-1.0 v4l2src device=/dev/video22 ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! videoconvert ! autovideosink

I execute this command but it still doesn’t work. I can’t preview the camera image.

If you are using an armbian system or an ubuntu system, you first need to add the camera’s device tree file to the overlays. For basic details, please refer to: 设备树设置 | ArmSoM docs

Thank you, the camera is running normally now