Deepstream with V4l2 camera src

Hi,

I’m testing a v4l2 camera source:

$ v4l2-ctl --device=/dev/video1 --list-formats
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: ‘YUYV’
Name : YUYV 4:2:2

I can run this camera source through gstreamer as follow:
$ gst-launch-1.0 v4l2src device=/dev/video1 ! xvimagesink

However, I could not add it to [source#[ of deepstream;
attached deepstream config file,

[source3]
enable=1
type=1
camera-width=1920
camera-height=1080
camera-v4l2-dev-node=1
camera-fps-n=30
camera-fps-d=1
gpu-id=0
cudadec-memtype=0

deepstream-app shows whole 8 x black display, without any videos.
Other 7 sources use MultiURI and work well without this v4l2 camera source.

  • DeepStreamSDK is 5.0.0

Any idea to activate this camera with the deepstream app?

You may check further with:

v4l2-ctl --device=/dev/video1 --list-formats-ext

choose one of the supported resolution/fps and set these.

If it doesn’t work out, I’d suggest you try adapting from config samples/configs/deepstream-app/source1_usb_dec_infer_resnet_int8.txt

Honey_Patouceul,

I tested the config file you suggested.
But the outputs are not consistent, sometimes it works, some other times it doesn’t.
Many times, this adapter(GMSL to USB) makes uvc-related errors.
I’m contact the GMSL-to-USB adapter maker.

Thanks,