- a)I have checked RG10 with nvargus it is working fine.
b) When I run the below command
GST_DEBUG=2,GST_CAPS:5 gst-launch-1.0 -v v4l2src ! fakesink
The output I saw is below
GST_DEBUG=2,GST_CAPS:5 gst-launch-1.0 -v v4l2src ! fakesink
0:00:00.064943647 1874 0xaaaad5d61c40 DEBUG GST_CAPS gstutils.c:3057:gst_pad_query_caps:<v4l2src0:src> get pad caps with filter (NULL)
0:00:00.065697282 1874 0xaaaad5d61c40 DEBUG GST_CAPS gstutils.c:3064:gst_pad_query_caps:<v4l2src0:src> query returned image/jpeg; video/mpeg, mpegversion=(int)4, systemstream=(boolean)false; video/mpeg, mpegversion=(int){ 1, 2 }; video/mpegts, systemstream=(boolean)true; video/x-bayer, format=(string){ bggr, gbrg, grbg, rggb }, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-dv, systemstream=(boolean)true; video/x-fwht; video/x-h263, variant=(string)itu; video/x-h264, stream-format=(string){ byte-stream, avc }, alignment=(string)au; video/x-h265, stream-format=(string)byte-stream, alignment=(string)au; video/x-pwc1, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-pwc2, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string){ RGB16, BGR, RGB, GRAY8, GRAY16_LE, GRAY16_BE, YVU9, YV12, YUY2, YVYU, UYVY, Y42B, Y41B, YUV9, NV12_64Z32, NV24, NV61, NV16, NV21, NV12, I420, BGRA, BGRx, ARGB, xRGB, BGR15, RGB15 }, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-sonix, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-vp8; video/x-vp9; video/x-wmv, wmvversion=(int)3, format=(string)WVC1
0:00:00.065839331 1874 0xaaaad5d61c40 DEBUG GST_CAPS gstutils.c:3057:gst_pad_query_caps:<fakesink0:sink> get pad caps with filter (NULL)
0:00:00.065902947 1874 0xaaaad5d61c40 DEBUG GST_CAPS gstutils.c:3064:gst_pad_query_caps:<fakesink0:sink> query returned ANY
0:00:00.065992803 1874 0xaaaad5d61c40 DEBUG GST_CAPS gstutils.c:3057:gst_pad_query_caps:<v4l2src0:src> get pad caps with filter (NULL)
0:00:00.066107620 1874 0xaaaad5d61c40 DEBUG GST_CAPS gstutils.c:3064:gst_pad_query_caps:<v4l2src0:src> query returned image/jpeg; video/mpeg, mpegversion=(int)4, systemstream=(boolean)false; video/mpeg, mpegversion=(int){ 1, 2 }; video/mpegts, systemstream=(boolean)true; video/x-bayer, format=(string){ bggr, gbrg, grbg, rggb }, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-dv, systemstream=(boolean)true; video/x-fwht; video/x-h263, variant=(string)itu; video/x-h264, stream-format=(string){ byte-stream, avc }, alignment=(string)au; video/x-h265, stream-format=(string)byte-stream, alignment=(string)au; video/x-pwc1, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-pwc2, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string){ RGB16, BGR, RGB, GRAY8, GRAY16_LE, GRAY16_BE, YVU9, YV12, YUY2, YVYU, UYVY, Y42B, Y41B, YUV9, NV12_64Z32, NV24, NV61, NV16, NV21, NV12, I420, BGRA, BGRx, ARGB, xRGB, BGR15, RGB15 }, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-sonix, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-vp8; video/x-vp9; video/x-wmv, wmvversion=(int)3, format=(string)WVC1
0:00:00.066227524 1874 0xaaaad5d61c40 DEBUG GST_CAPS gstutils.c:3057:gst_pad_query_caps:<fakesink0:sink> get pad caps with filter (NULL)
0:00:00.066277317 1874 0xaaaad5d61c40 DEBUG GST_CAPS gstutils.c:3064:gst_pad_query_caps:<fakesink0:sink> query returned ANY
0:00:00.066412581 1874 0xaaaad5d61c40 DEBUG GST_CAPS gstpad.c:2277:gst_pad_link_check_compatible_unlocked:<v4l2src0:src> src caps image/jpeg; video/mpeg, mpegversion=(int)4, systemstream=(boolean)false; video/mpeg, mpegversion=(int){ 1, 2 }; video/mpegts, systemstream=(boolean)true; video/x-bayer, format=(string){ bggr, gbrg, grbg, rggb }, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-dv, systemstream=(boolean)true; video/x-fwht; video/x-h263, variant=(string)itu; video/x-h264, stream-format=(string){ byte-stream, avc }, alignment=(string)au; video/x-h265, stream-format=(string)byte-stream, alignment=(string)au; video/x-pwc1, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-pwc2, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-raw, format=(string){ RGB16, BGR, RGB, GRAY8, GRAY16_LE, GRAY16_BE, YVU9, YV12, YUY2, YVYU, UYVY, Y42B, Y41B, YUV9, NV12_64Z32, NV24, NV61, NV16, NV21, NV12, I420, BGRA, BGRx, ARGB, xRGB, BGR15, RGB15 }, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-sonix, width=(int)[ 1, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ]; video/x-vp8; video/x-vp9; video/x-wmv, wmvversion=(int)3, format=(string)WVC1
0:00:00.066560998 1874 0xaaaad5d61c40 DEBUG GST_CAPS gstpad.c:2279:gst_pad_link_check_compatible_unlocked:<fakesink0:sink> sink caps ANY
0:00:00.066604198 1874 0xaaaad5d61c40 DEBUG GST_CAPS gstpad.c:2297:gst_pad_link_check_compatible_unlocked: caps are compatible
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
0:00:00.068163789 1874 0xaaaad5d54d20 DEBUG GST_CAPS gstutils.c:3057:gst_pad_query_caps:<v4l2src0:src> get pad caps with filter (NULL)
0:00:00.068300014 1874 0xaaaad5d54d20 DEBUG GST_CAPS gstutils.c:3064:gst_pad_query_caps:<v4l2src0:src> query returned EMPTY
0:00:00.068345070 1874 0xaaaad5d54d20 DEBUG GST_CAPS gstutils.c:3103:gst_pad_peer_query_caps:<v4l2src0:src> get pad peer caps with filter (NULL)
0:00:00.068384974 1874 0xaaaad5d54d20 DEBUG GST_CAPS gstutils.c:3110:gst_pad_peer_query_caps:<v4l2src0:src> peer query returned ANY
0:00:00.068459950 1874 0xaaaad5d54d20 WARN basesrc gstbasesrc.c:3072:gst_base_src_loop:<v4l2src0> error: Internal data stream error.
0:00:00.068495631 1874 0xaaaad5d54d20 WARN basesrc gstbasesrc.c:3072:gst_base_src_loop:<v4l2src0> error: streaming stopped, reason not-negotiated (-4)
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3072): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
2)How to check whether the patch is effective or not ?
Currently I have made the changes in the source and replaced the Image in my target followed by reboot ,then gave the above command.