Using usb camera on jetson Nano

Hello,

I’m using an usb camera on jetson nano.
https://developer.nvidia.com/embedded/learn/tutorials/first-picture-csi-usb-camera

I have refered to above url.

Enter the following command to display a core dump.
You can check ls /dev/video0.

How do I use this camera?

~$ nvgstcapture-1.0 --camsrc=0 --cap-dev-node=0
Encoder null, cannot set bitrate!
Encoder Profile = High
Runtime USB Camera Commands:

Help : ‘h’
Quit : ‘q’
Set Capture Mode:
mo:
(1): image
(2): video
Get Capture Mode:
gmo
Capture: enter ‘j’ OR
followed by a timer (e.g., jx5000, capture after 5 seconds) OR
followed by multishot count (e.g., j:6, capture 6 images)
timer/multihot values are optional, capture defaults to single shot with timer=0s
Start Recording : enter ‘1’
Stop Recording : enter ‘0’
Set Preview Resolution:
pcr: e.g., pcr:2
(0) : 176x144
(1) : 320x240
(2) : 640x480
(3) : 1280x720
(4) : 1920x1080
NOTE: Preview/Encode resolution will be same as Capture resolution for USB-Camera
Get Preview Resolution:
gpcr
Get Image Capture Resolution:
gicr
Get Video Capture Resolution:
gvcr
Set Capture Device Node:
cdn: e.g., cdn:0
(0): /dev/video0
(1): /dev/video1
(2): /dev/video2
Get Capture Device Node:
gcdn

Runtime encoder configuration options:

Set Encoding Bit-rate(in bytes):
br: e.g., br:4000000
Get Encoding Bit-rate(in bytes):
gbr
Set Encoding Profile(only for H.264):
ep: e.g., ep:1
(0): Baseline
(1): Main
(2): High
Get Encoding Profile(only for H.264):
gep
Force IDR Frame on video Encoder(only for H.264):
Enter ‘f’

** (nvgstcapture-1.0:13071): ERROR **: 18:46:12.602: <create_img_enc_bin:2818> nvvidconv element could not be created for image encode.

Trace/breakpoint trap (core dumped)

Thank you.

What’s the BSP version? Below command to check the release version.

cat /etc/nv_tegra_release

1 Like

It’s 32.4.4

Could you try on latest release Jetpack 4.6.1

1 Like

Hello,

Yes when I try in 4.6.1
In Ubuntu’s Cheez app, the USB camera video is also displayed.
nvgstcapture-1.0 --camsrc=0 --cap-dev-node=0
nvgstcapture-1.0 --camsrc=0 --cap-dev-node=1

In this way, I confirmed that the video came out of up to two USB cameras.
If more than 3, a message appears indicating that the buffer is insufficient.

Any idea why it doesn’t work in 4.4 and not in 4.6.1?

Thank you.

Current only USB3.0 web cam for above 3 sensor.
Sorry don’t know the detail fix for J4.6.1

1 Like