Modified deepstream-test1 to use a GMSL camera to display a green screen and could not display it properly

Environmental information:

jetson Orin NX

jetson 5.1.1

Deepstream6,2

TensorRT8.5.2.2

This is the code of the deepstream-test1 example I modified, I am using a gmsl camera, and the output format of the camera is UYVY.

The connection logic is:

gst_bin_add_many (GST_BIN (pipeline), source, source_vidconv, streammux, pgie, tracker, tiler, nvvidconv, nvosd, transform_sink, sink, NULL);

The problem I am encountering now is: the code works normally, but the frame rate is abnormal, only about 2fps, and the display screen is a green screen, which cannot be displayed normally.

IIf this camera is supported by v4l2src, please refer to this FAQ.

The pipeline is like this:

v4l2src --> 'video/x-raw, format=UYVY, width=xxx, height=xxx, framerate=xxx/1'  --> nvvideoconvert --> 'video/x-raw(memory:NVMM),format=NV12' --> nvstreammux --> ....

Please first ensure that the v4l2 camera displays correctly when using nv3dsink.