CSI camera implementation in deepstream-test1-app

I am trying to use the deepstream-test-app.c code with a CSI camera (using recommended CSI camera - Leopard Imaging). I have the raw pipeline working using gst-launch, but cannot figure out the right steps to achieve the same in the example code.

How would I implement the following pipeline in deepstream-test1-app.c example?

gst-launch-1.0 nvarguscamerasrc bufapi-version=1 ! 'video/x-raw(memory:NVMM),width=1280,height=720,format=NV12,framerate=30/1' ! nvvideoconvert ! 'video/x-raw(memory:NVMM)' ! nvdsosd ! nvegltransform ! nveglglessink

I have tried and failed numerous times.

Hi,
You may refer to create_camera_source_bin() in

deepstream_sdk_v4.0.1_jetson\sources\apps\apps-common\src\deepstream_src_bin.c

and integrate it into deepstream-test1.

Hi DaneLLL,
In deepstream_src_bin.c

gst_element_factory_make (NVDS_ELEM_SRC_CAMERA_CSI, "src_elem");

when I use it I get

NVDS_ELEM_SRC_CAMERA_CSI was not declared in this scope

Is there any dependecy for NVDS_ELEM_SRC_CAMERA_CSI?
How to import it?

Hi Danell,

I added “nvarguscamerasrc”. Can you provide a pipeline to use with csi camera for deepstream-test-4-sample app?

Let’s continue in https://devtalk.nvidia.com/default/topic/1066251/