So one can specify a camera using the sensor-id parameter:
For instance for /dev/video3 one can do: $ gst-launch-1.0 nvarguscamerasrc sensor-id=3 ! 'video/x-raw(memory:NVMM), width=(int)1280, height=(int)1080, format=(string)NV12' ! nvvidconv ! queue ! xvimagesink
Now if my camera’s name is different, how can I get nvarguscamerasrc to point that source?
For instance, if my camera is /dev/mycamera3, what can I do?
Neither: $ gst-launch-1.0 nvarguscamerasrc '/dev/mycamera3' ! 'video/x-raw(memory:NVMM), width=(int)1280, height=(int)1080, format=(string)NV12' ! nvvidconv ! queue ! xvimagesink
However this command does not work: gst-launch-1.0 v4l2src device=/dev/video1 ! 'video/x-raw, format=BG12, width=1280, height=1080, framerate=30/1' ! nvvidconv ! 'video/x-raw(memory:NVMM), format=NV12' ! nvoverlaysink
Error: nvbuf_utils: Could not get EGL display connection WARNING: erroneous pipeline: could not link v4l2src0 to nvvconv0, neither element can handle caps video/x-raw, format=(string)BG12, width=(int)1280, height=(int)1080, framerate=(fraction)30/1
Hi,
Yours is a Bayer sensor and need to use nvarguscamerasrc. If the camera is from NVIDIA camera partners, you can get support from the vendor. Our partners are listed in:
If you use your own camera, please check Camera Development in document for programming driver/device tree.