DeepStream python apps, error with test sample

Hardware characteristics:

• DeepStream 5.0.1
• JetPack Version 4.4.1
• TensorRT Version 7.1.3.0
• Jetson Nano

I tried to launch several deepstream python apps from (GitHub - NVIDIA-AI-IOT/deepstream_python_apps: DeepStream SDK Python bindings and sample applications).
I could test deepstream-test1 sample and everything was okay. But cannot test this sample deepstream-test1-usbcam.

I got this, when enter the command python3 deepstream_test_1_usb.py /dev/video0:

Error: gst-stream-error-quark: Internal data stream error. (1): gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:usb-cam-source:
streaming stopped, reason not-negotiated (-4)

How about output of v4l2-ctl -d /dev/video0 --list-formats?

Thanks for response.

Here is the result of the command: v4l2-ctl -d /dev/video0 --list-formats

image

Camera detected and seems good.
Can you run with deepstream-app -c samples/configs/deepstream-app/source1_usb_dec_infer_resnet_int8.txt?

The result…

run from here, /opt/nvidia/deepstream/deepstream-5.0

It works! The stream started with about 20 FPS. But what about Python apps?

Please follow python document to setup the environments. deepstream_python_apps/HOWTO.md at master · NVIDIA-AI-IOT/deepstream_python_apps · GitHub

I found the issue. It is necessary to set number of frames per second (FPS) in deepstream-test1-usb.py that is supported by the camera. It turned out that mine supports only 6 FPS for FHD resolution.

Thanks. We can close the issue.