Skip to content

Commit

Permalink
sensor_id issue in README
Browse files Browse the repository at this point in the history
  • Loading branch information
jetsonhacks committed Mar 27, 2020
1 parent 4493285 commit 3f36d39
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,23 @@ To test the camera:
$ gst-launch-1.0 nvarguscamerasrc sensor_id=0 ! nvoverlaysink
# More specific - width, height and framerate are from supported video modes
# Example also shows sensor_mode paramter to nvarguscamerasrc
$ gst-launch-1.0 nvarguscamerasrc sensor_mode=0 ! 'video/x-raw(memory:NVMM),width=3280, height=2464, framerate=21/1, format=NV12' ! nvvidconv flip-method=0 ! 'video/x-raw,width=960, height=720' ! nvvidconv ! nvegltransform ! nveglglessink -e
# Example also shows sensor_mode parameter to nvarguscamerasrc
# See table below for example video modes of example sensor; Displays 1/4 size of video frame
$ gst-launch-1.0 nvarguscamerasrc sensor_id=0 ! \
'video/x-raw(memory:NVMM),width=3280, height=2464, framerate=21/1, format=NV12' ! \
nvvidconv flip-method=0 ! 'video/x-raw,width=960, height=720' ! \
nvvidconv ! nvegltransform ! nveglglessink -e
<em><b>Note: </b>The cameras appear to report differently than show below on some Jetsons. For example:
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3264 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;
You should adjust accordingly, ie for 3264x2464 @ 21 fps on sensor_id 1 of a Jetson Nano B01:
$ gst-launch-1.0 nvarguscamerasrc sensor_id=1 ! \
'video/x-raw(memory:NVMM),width=3264, height=2464, framerate=21/1, format=NV12' ! \
nvvidconv flip-method=0 ! 'video/x-raw,width=816, height=616' ! \
nvvidconv ! nvegltransform ! nveglglessink -e</em>
```

Expand Down

0 comments on commit 3f36d39

Please sign in to comment.