X221D & X221D-AI TECHNICAL REFERENCE MANUAL
VERSION: 0.3
Page 27 of 40
10.2
Test CSI-Camera functionality
The CSI-Cameras should show up under /dev/video0 and /dev/video1
You can test the CSI-Cameras with the Gstreamer.
This framework should be already included in your Jetpack and can be used as follows:
//CSI-Camera0:
gst
-
launch
-
1.0
nvarguscamerasrc sensor
-
id
=
0
!
'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
//CSI-Camera1:
gst
-
launch
-
1.0
nvarguscamerasrc sensor
-
id
=
1
!
'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
*tested with raspberry pi camera module v2
A window with the camera stream is going to pop up if everything worked out correctly.