DeepStream 5: deepstream-app yoloV3 with video stream from camera

Im can run this on my jetson:

./deepstream-app -c deepstream_app_config_yoloV3.txt

using a video stream from a file without any problems.

But when I change type to 1 to run a camera (I tried both raspberry pi camera and logitec webcam):
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=1
camera-width=640
camera-height=360
camera-fps-n=30
camera-v4l2-dev-node=0

I get this error:
ERROR from src_elem: Internal data stream error

i got to know “Gstreamer provides different commands for capture images were two is nvarguscamerasrc and v4l2src.” in https://developer.ridgerun.com/wiki/index.php?title=Xavier/Video_Capture_and_Display/Software_Support/GStreamer, and my kernel is
Linux 4.9.140-tegra aarch64,so I can only use nvarguscamerasrc.

my question is : "CameraV4L2 " stand for v4l2src, What stands for nvarguscamerasrc

nvarguscamerasrc is for the camera which camera data go through Jetson SOC internal ISP , that is, CSI interface --> Internal ISP --> nvarguscamerasrc capture --> …

mchi
thanks for reply,I did not express my question clearly,sorry,in the file “/opt/nvidia/deepstream/deepstream-5.0/sources/objectDetector_Yolo/deepstream_app_config_yoloV3.txt” has a opthion named “source0”,content as follow:

[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=3
uri=file://…/…/samples/streams/sample_1080p_h264.mp4
num-sources=1
gpu-id=0

if i set type=3 ,the program without any problems.now,i need to use a local camera input,so i set the type=1,as follow

[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=1
camera-width=1280
camera-height=720
camera-fps-n=21
camera-v4l2-dev-node=0
uri=csi:///dev/video0
#uri=file://…/…/samples/streams/sample_1080p_h264.mp4
num-sources=1
gpu-id=0

got the error

ERROR from src_elem: Internal data stream error

because CameraV4L2 used the plugin v4l2src.

now,i want to use the plugin nvarguscamerasrc,how should i modify the file?

hi mchi, i got the type, NV_DS_SOURCE_CAMERA_CSI,i will close this issue,thanks again!

Hi @406589639,
Thanks! Yes.

Argus camera:
in configure file, the ssource format is “uri=csi:dev_node/sensor_id”, e.g. uri=csi:/dev/video0
the type in code is : NV_DS_SOURCE_CAMERA_CSI

USB camera:
in configure file, the ssource format is “uri=:dev_node/sensor_id”, e.g. uri=usb:/dev/video0
the type in code is : NV_DS_SOURCE_CAMERA_V4L2