DeepStream 4: deepstream-app yoloV2_tiny with video stream from camera

Im can run this on my nano:

deepstream-app -c deepstream_app_config_yoloV2_tiny.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=MultiURL
type=1

I get this error:

** ERROR: <create_camera_source_bin:137>: Failed to link 'nvvidconv2' (video/x-raw, format=(string){ GRAY8, NV12, I420, BGRx }, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ], format=(string){ I420, BGRx, RGBA, NV12, GRAY8 }; video/x-raw, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ], format=(string){ I420, NV12, BGRx, RGBA, GRAY8 }; video/x-raw(memory:NVMM), width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ], format=(string){ I420, NV12, BGRx, RGBA, GRAY8 }) and 'src_cap_filter' (video/x-raw(memory:NVMM), format=(string)NV12, width=(int)0, height=(int)0)
** ERROR: <create_camera_source_bin:182>: create_camera_source_bin failed
** ERROR: <create_pipeline:967>: create_pipeline failed
** ERROR: <main:632>: Failed to create pipeline
Quitting
App run failed

What am I doing wrong?

you need to input camera options to config file.

[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=1
camera-width=640
camera-height=360
camera-fps-n=30
camera-v4l2-dev-node=0

you need to clearify input size with below command in terminal.

vtl2-ctl -d (camera number) -all

Works
Thanks

cane you tell me how to use muti camera with deepstream? when to set type=1 , it only display 1 camera, to set type=3, it only check the file in uri.

thanks

now it is ok, now the problem is that the same configure have different FPS between two usb camera one is 25 FPS,another is 5FPS.

I want to use two cameras with deepstream_app_config_yoloV2_tiny.txt . Can you please tell me how did you make it work ?