JetsonHacksNano / CSI-Camera

Simple example of using a CSI-Camera (like the Raspberry Pi Version 2 camera) with the NVIDIA Jetson Developer Kit
Other
817 stars 287 forks source link

How to capture CSI camera from /dev/video1? #23

Closed RyanC1681 closed 4 years ago

RyanC1681 commented 4 years ago

Hi, I can get camera pre-view window for /dev/video0 by the command as below: gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM),width=3820, height=2464, framerate=21/1, format=NV12' ! nvvidconv flip-method=0 ! 'video/x-raw,width=960, height=616' ! nvvidconv ! nvegltransform ! nveglglessink -e

How to capture CSI camera from /dev/video1? Thanks

JetsonHacksNano commented 4 years ago

sensor_id selects the camera: 0 or 1 on Jetson Nano B01

$ gst-launch-1.0 nvarguscamerasrc sensor_id=0 ! nvoverlaysink