Deepstream5.1 python demo Can't access the csi camera

Please provide complete information as applicable to your setup.

**• Hardware Platform (Jetson / GPU) nano
**• DeepStream Version 5.1
**• JetPack Version (valid for Jetson only) 4.5.1
**• TensorRT Version7.1

When I use python demo deepstream-test1-usbcam to access the csi camera, the following error is displayed:

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 to deal with it?

It’s for usb camera, you can use deepstream-app which support csi camera input. you can specify it in configuration
refer to source1_csi_dec_infer_resnet_int8.txt under samples/configs/deepstream-app about how to set csi camera in configuration.

This method does not solve me calling the csi camera in the deepstream python demo. I need to understand the gstreamer element required by the csi call

You can refer to function create_camera_source_bin in sources/apps/apps-common/src/deepstream_source_bin.c about how to use csi camera source in gstreamer pipeline.

Thank you, I have solved the problem, I will attach a process written by gstreamer for other people to use

gst-launch-1.0 nvarguscamerasrc bufapi-version=1 ! ‘video/x-raw(memory:NVMM), width=1280, height=720, format=(string)NV12, framerate=(fraction)30/1’
! m.sink_0 nvstreammux name=m batch-size=1 live-source=1 width=1280 height=720
! nvinfer config-file-path=dstest1_pgie_config.txt
! nvvideoconvert ! nvdsosd ! nvegltransform ! nveglglessink

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