How to config the Camera's parameters for deepstream??

I just want to use USB camera as video input for deepstream.
And I update file “PGIE-FP16-CarType-CarMake-CarColor.txt” to set Type = 2(CameraV4L2).

I found that the width and height can only be supported upto 640x480, if I set it to 1280x720, the app will crash.

could anyone to tell me how to change the resolution?

Hi Liuhang:
Could you give us your config file?

Thanks
wayne zhu

HI,
for type 2(CameraV4L2) you can not use format other than the camera support, here is the camera format i used,
I tried the format outside, it will generate error, please use format the camera support

ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: ‘YUYV’
Name : YUYV 4:2:2
Size: Discrete 2560x720
Interval: Discrete 0.017s (60.000 fps)
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 1344x376
Interval: Discrete 0.010s (100.000 fps)
Interval: Discrete 0.017s (60.000 fps)
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 3840x1080
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 4416x1242
Interval: Discrete 0.067s (15.000 fps)

HI,
I have the same question as liuhang. How do I configure the config file to use the USB camera? I’m using the release from DS2 and I’m using the DS2/config/nvgstiva-app_yolo_config.txt as the config file. It works fine with URI but when I change the the type into 2 there will be errors when I execute nvgstiva-app -c config/nvgstiva-app_yolo_config.txt. My config file is show below:

[source0]
enable=1
#Type - 1=CameraCSi 2=CameraV4L2 3=URI
type=2
camera-width=480
camera-height=480
camera-fps-n=30
camera-fps-d=1
camera-csi-sensor-id=6
camera-v4l2-dev-node=6
uri=file:///home/nvidia/outdoor.h264

The rest part of the config file is unchanged.

The error I meet is show below as well:

** ERROR: <create_pipeline:1039>: Failed to link ‘multi_src_bin’ and ‘processing_bin_0’
** ERROR: <create_pipeline:1062>: create_pipeline failed
** ERROR: main:384: Failed to create pipeline
Quitting
App run failed

Do I have to fit the resolution exactly as the camera or it can be set to lower res? By the way, how do I check the camera ID for camera-csi-sensor-id and camera-v4l2-dev-node?

Environment :TX2,Jetpack3.3,DS1.5.

HI,
I referred to the development guide and I find some instructions about these config. I used ls /dev/ to list the camera Id and I’m sure the USB camera is installed properly with ID 1.The resolution should be right as well but I still get this error message, could some one give me some suggestions?

[source0]
enable=1
#Type - 1=CameraCSi 2=CameraV4L2 3=URI
type=2
camera-width=640
camera-height=480
camera-fps-n=30
camera-fps-d=1
camera-csi-sensor-id=1
camera-v4l2-dev-node=1
uri=file:///home/nvidia/outdoor.h264

The rest part of the config file is unchanged.

The error I meet is show below as well:

** ERROR: <create_pipeline:1039>: Failed to link ‘multi_src_bin’ and ‘processing_bin_0’
** ERROR: <create_pipeline:1062>: create_pipeline failed
** ERROR: main:384: Failed to create pipeline
Quitting
App run failed

Do I have to fit the resolution exactly as the camera or it can be set to lower res? By the way, how do I check the camera ID for camera-csi-sensor-id and camera-v4l2-dev-node?

Environment :TX2,Jetpack3.3,DS1.5.

Many thanks!

Hi,
With the same modification to ${HOME}/configs/PGIE-FP16-CarType-CarMake-CarColor.txt, we don’t see any issue in running Logitech C930e.

[source0]
enable=1
#Type - 1=CameraCSi 2=CameraV4L2 3=URI
[b]type=2
camera-width=640
camera-height=480[/b]
camera-fps-n=30
camera-fps-d=1
camera-csi-sensor-id=0
<b>camera-v4l2-dev-node=1</b>
uri=file:///home/nvidia/sample_720p.mp4

You may try other USB cameras. The source code is at ${HOME}/nvgstiva-app_sources/ . You can trace into the source and debug further.

I’m also have this problem