Nvidia Jetson Nano Segmentation Fault error with IMX219 USB camera or Raspberry Pi module v2 CSI camera

I have been trying some basic image and video tasks e.g. taking images/videos.

nvgstcapture-1.0 --camsrc=0 --cap-dev-node= /dev/video0

I’m following the article: First Picture USB and CSI Camera. When I try to capture an image, I can do it without any issue. But when I try to capture a video using

nvgstcapture-1.0 --mode=2 --camsrc=0 --cap-dev-node= /dev/video0

the command I get a segmentation fault error. Following is the info I’m getting.

Encoder null, cannot set bitrate!
Encoder Profile = High
/dev/video/dev/video0 does not exist
Runtime USB Camera Commands:

//Help Commands 

bitrate = 4000000
Encoder Profile = High
Encoder control-rate = 1
Encoder EnableTwopassCBR = 0
Opening in BLOCKING MODE
Opening in BLOCKING MODE 
Opening in BLOCKING MODE
Segmentation fault (core dumped)

Troubleshooting steps tried:

1. v4l2-ctl --list-devices

USB 2.0 Camera (usb-70090000.xusb-2.1):
/dev/video0

2. v4l2-ctl --list-formats-ext

ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: ‘YUYV’
Name : YUYV 4:2:2
Size: Discrete 3264x2448
Interval: Discrete 0.500s (2.000 fps)
Size: Discrete 2592x1944
Interval: Discrete 0.500s (2.000 fps)
Size: Discrete 2048x1536
Interval: Discrete 0.500s (2.000 fps)
Size: Discrete 1920x1080
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1600x1200
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1280x960
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 800x600
Interval: Discrete 0.050s (20.000 fps)
Size: Discrete 640x480
Interval: Discrete 0.050s (20.000 fps)

Index : 1
Type : Video Capture
Pixel Format: ‘MJPG’ (compressed)
Name : Motion-JPEG
Size: Discrete 3264x2448
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 2592x1944
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 2048x1536
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 1920x1080
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1600x1200
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1280x960
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 800x600
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 640x480
Interval: Discrete 0.033s (30.000 fps)

3. I’m also facing the same Segmentation Fault (Core dumped) issue with the raspberry pi v2 CSI camera module while testing it with Jetson Hacks Nano CSI-Camera. The stream starts but freezes almost immediately. So, can it be an issue with my Jetson Board/OpenCV installation?

I don’t have USB version imx219 but have CSI interface imx219 and verify below command without problem.
What’s your version? I try on r32.5.1

nvgstcapture-1.0 --mode=2 --camsrc=1

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.