Camera not working while streaming with Deepstream 6.0

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Jetson TX2
• DeepStream Version 6.0
• JetPack Version (valid for Jetson only) 4.6
• TensorRT Version 8.0.1
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs) bugs
• How to reproduce the issue? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for the new requirement. Including the module name-for which plugin or for which sample application, the function description)

I tried deepstream 6.0 in jetson TX2 board for USB camera with config file /opt/nvidia/deepstream/deepstream-6.0/samples/configs/deepstream-app/source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt with below modification.

[source0]
enable=1

Type – 1=CameraV4L2 2=URI 3=MultiURI

type=1
camera-width=640
camera-height=480
camera-fps-n=60
camera-fps-d=1
camera-v4l2-dev-node=0
num-sources=1

We faced an issue with the black screen opening and closing in a fraction of seconds.
It shows error as below


**PERF: FPS 0 (Avg)
**PERF: 0.00 (0.00)
** INFO: <bus_callback:194>: Pipeline ready

ERROR from src_elem: Internal data stream error.
Debug info: gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin0/GstV4l2Src:src_elem:
streaming stopped, reason not-negotiated (-4)
** INFO: <bus_callback:160>: incorrect camera parameters provided, please provide supported resolution and frame rate

** INFO: <bus_callback:180>: Pipeline running

** INFO: <bus_callback:217>: Received EOS. Exiting …

Quitting
App run failed


When we used deepstream 4.0 we didn’t get any issue as we use the same configuration with the same camera module.

I tried the below reference link to solve the problem. But still, I get the same error.

Hi,
You set the camera mode to 640x480 60fps. Please run $ v4l2-ctl --list-formats-ext and confirm if the USB camera supports the mode.

Hi DaneLLL, Thanks for reply

I had cross-checked with v4l2-ctl --list-formats-ext. I changed the camera mode to 640x360 with 60 fps. Still, I faced the same issue.
Even the mode 640x480 with 60fps configuration works for Deepstream 4.0 but facing issues only in the Deepstream version 6.0

Below are supported formats by my USB camera. I tried all the below formats and modes but can’t get the stream.

ioctl: VIDIOC_ENUM_FMT
Index       : 0
Type        : Video Capture
Pixel Format: 'UYVY'
Name        : UYVY 4:2:2
	Size: Discrete 640x360
		Interval: Discrete 0.019s (52.000 fps)
	Size: Discrete 1280x720
		Interval: Discrete 0.077s (13.000 fps)
	Size: Discrete 1920x1080
		Interval: Discrete 0.200s (5.000 fps)


Index       : 1
Type        : Video Capture
Pixel Format: 'MJPG' (compressed)
Name        : Motion-JPEG
	Size: Discrete 1280x720
		Interval: Discrete 0.017s (60.000 fps)
		Interval: Discrete 0.020s (50.000 fps)
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.040s (25.000 fps)
	Size: Discrete 640x352
		Interval: Discrete 0.017s (60.000 fps)
		Interval: Discrete 0.020s (50.000 fps)
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.040s (25.000 fps)
	Size: Discrete 1920x1072
		Interval: Discrete 0.017s (60.000 fps)
		Interval: Discrete 0.020s (50.000 fps)
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.040s (25.000 fps)

Index       : 2
Type        : Video Capture
Pixel Format: 'H264' (compressed)
Name        : H.264
	Size: Discrete 640x360
		Interval: Discrete 0.017s (60.000 fps)
		Interval: Discrete 0.020s (50.000 fps)
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.040s (25.000 fps)
	Size: Discrete 1280x720
		Interval: Discrete 0.017s (60.000 fps)
		Interval: Discrete 0.020s (50.000 fps)
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.040s (25.000 fps)
	Size: Discrete 1920x1080
		Interval: Discrete 0.017s (60.000 fps)
		Interval: Discrete 0.020s (50.000 fps)
		Interval: Discrete 0.033s (30.000 fps)
		Interval: Discrete 0.040s (25.000 fps)

Hi,
Please try 640x360 52fps. This is the listed mode.

@DaneLLL Thanks for the update. Now it’s working.

1 Like

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