Video Camera Testing Issue

Hello Team Toradex,
I am Using the verdin imx8m plus device. in that device I am facing the issue when I am apply the command to test the video camera I am providing the details which command I have applied and what result I got

free -h
total used free shared buff/cache available
Mem: 3.8Gi 467Mi 3.1Gi 11Mi 268Mi 3.2Gi
Swap: 0B 0B 0B
torizon@verdin-imx8mp-15132884:~$ v4l2-ctl --device=/dev/video3 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture Multiplanar

    [0]: 'RGBP' (16-bit RGB 5-6-5)
    [1]: 'RGB3' (24-bit RGB 8-8-8)
    [2]: 'BGR3' (24-bit BGR 8-8-8)
    [3]: 'YUYV' (YUYV 4:2:2)
    [4]: 'YUYV' (YUYV 4:2:2)
    [5]: 'NV12' (Y/CbCr 4:2:0)
    [6]: 'NM12' (Y/CbCr 4:2:0 (N-C))
    [7]: 'YM24' (Planar YUV 4:4:4 (N-C))
    [8]: 'XR24' (32-bit BGRX 8-8-8-8)
    [9]: 'AR24' (32-bit BGRA 8-8-8-8)

torizon@verdin-imx8mp-15132884:~$ gst-launch-1.0 v4l2src device=/dev/video3 ! video/x-raw,format=YUY2 ! kmssink
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
…/git/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.000587005
Setting pipeline to NULL …
Freeing pipeline …
torizon@verdin-imx8mp-15132884:~$ gst-launch-1.0 v4l2src device=/dev/video3 ! video/x-raw,format=YUY2,width=1280,height=800 ! kmssink
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
…/git/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.000894758
Setting pipeline to NULL …
Freeing pipeline …
torizon@verdin-imx8mp-15132884:~$ gst-launch-1.0 v4l2src device=/dev/video3 ! video/x-raw,format=YUY2 ! ximagesink
WARNING: erroneous pipeline: no element “ximagesink”
torizon@verdin-imx8mp-15132884:~$ gst-inspect-1.0 | grep v4l2
video4linux2: v4l2convert: V4L2 Video Converter
video4linux2: v4l2deviceprovider (GstDeviceProviderFactory)
video4linux2: v4l2radio: Radio (video4linux2) Tuner
video4linux2: v4l2sink: Video (video4linux2) Sink
video4linux2: v4l2src: Video (video4linux2) Source
torizon@verdin-imx8mp-15132884:~$ mplayer v4l2:///dev/video3
-sh: mplayer: command not found

and before that I am also applying command
v4l2-ctl --device=/dev/video3 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture Multiplanar

    [0]: 'RGBP' (16-bit RGB 5-6-5)
    [1]: 'RGB3' (24-bit RGB 8-8-8)
    [2]: 'BGR3' (24-bit BGR 8-8-8)
    [3]: 'YUYV' (YUYV 4:2:2)
    [4]: 'YUYV' (YUYV 4:2:2)
    [5]: 'NV12' (Y/CbCr 4:2:0)
    [6]: 'NM12' (Y/CbCr 4:2:0 (N-C))
    [7]: 'YM24' (Planar YUV 4:4:4 (N-C))
    [8]: 'XR24' (32-bit BGRX 8-8-8-8)
    [9]: 'AR24' (32-bit BGRA 8-8-8-8)

So Can you please Provide the proper command to test the video camera

Regards
Ravi Vanand

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello Ravi,

Based on the information provided, it seems you are encountering a “not-negotiated” error when trying to use GStreamer to capture video from your camera on the Verdin iMX8M Plus. This error typically indicates that there is a mismatch in the capabilities between the elements in your GStreamer pipeline.

Here are a few steps and suggestions to help you troubleshoot and resolve the issue:

  1. Check Supported Formats: You have already listed the supported formats for your device using v4l2-ctl. Ensure that the format you are trying to use in your GStreamer pipeline (YUY2) is indeed supported by your camera. From your list, it seems YUYV is supported, which is equivalent to YUY2.

  2. Correct GStreamer Pipeline: Ensure that the format specified in your GStreamer pipeline matches one of the supported formats. You can try the following command:

    gst-launch-1.0 v4l2src device=/dev/video3 ! video/x-raw,format=YUYV ! autovideosink
    

    The autovideosink element is a more flexible sink that automatically selects the best available video sink.

  3. Install Missing Elements: The error “no element ‘ximagesink’” suggests that the ximagesink element is not installed. You can either install it or use autovideosink as mentioned above.

  4. Verify GStreamer Installation: Ensure that your GStreamer installation is complete and includes all necessary plugins. You can check for installed plugins using:

    gst-inspect-1.0 | grep sink
    
  5. Use MPlayer: If you prefer using mplayer, ensure it is installed on your system. You can install it using your package manager.

If these steps do not resolve the issue, you may need to further investigate the specific capabilities of your camera and ensure that all necessary drivers and plugins are correctly installed and configured.

Regards,
[Your Name]

Please, also check if these links can help you solve your problem:

Able to capture RAW image with gst-launch and not with v4l2-ctl.

Hello @ToradexAI
I have apply below command for testing the camera on imx8mp but I am not able to successful testing

gst-inspect-1.0 | grep -i v4l2src
video4linux2: v4l2src: Video (video4linux2) Source
torizon@verdin-imx8mp-15132884:~$ ^C
torizon@verdin-imx8mp-15132884:~$ v4l2-ctl --device=/dev/video3 --list-formats-e xt
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture Multiplanar

    [0]: 'RGBP' (16-bit RGB 5-6-5)
    [1]: 'RGB3' (24-bit RGB 8-8-8)
    [2]: 'BGR3' (24-bit BGR 8-8-8)
    [3]: 'YUYV' (YUYV 4:2:2)
    [4]: 'YUYV' (YUYV 4:2:2)
    [5]: 'NV12' (Y/CbCr 4:2:0)
    [6]: 'NM12' (Y/CbCr 4:2:0 (N-C))
    [7]: 'YM24' (Planar YUV 4:4:4 (N-C))
    [8]: 'XR24' (32-bit BGRX 8-8-8-8)
    [9]: 'AR24' (32-bit BGRA 8-8-8-8)

torizon@verdin-imx8mp-15132884:~$ ^C
torizon@verdin-imx8mp-15132884:~$ gst-launch-1.0 v4l2src device=/dev/video3 ! vi deo/x-raw,format=RGB3 ! autovideosink
WARNING: erroneous pipeline: could not link v4l2src0 to autovideosink0, v4l2src0 can’t handle caps video/x-raw, format=(string)RGB3
torizon@verdin-imx8mp-15132884:~$ gst-launch-1.0 v4l2src device=/dev/video3 ! video/x-raw,format=BGR3 ! autovideosink
WARNING: erroneous pipeline: could not link v4l2src0 to autovideosink0, v4l2src0 can’t handle caps video/x-raw, format=(string)BGR3
torizon@verdin-imx8mp-15132884:~$ gst-launch-1.0 v4l2src device=/dev/video3 ! autovideosink
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.
Additional debug info:
…/git/sys/v4l2/gstv4l2src.c(759): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Buffer pool activation failed
Execution ended after 0:00:00.053360586
Setting pipeline to NULL …
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
…/git/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Freeing pipeline …
torizon@verdin-imx8mp-15132884:~$ gst-launch-1.0 v4l2src device=/dev/video3 ! video/x-raw ! fbdevsink
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.
Additional debug info:
…/git/sys/v4l2/gstv4l2src.c(759): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Buffer pool activation failed
Execution ended after 0:00:00.049967827
Setting pipeline to NULL …
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
…/git/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Freeing pipeline …
torizon@verdin-imx8mp-15132884:~$ ^C
torizon@verdin-imx8mp-15132884:~$ free -h
total used free shared buff/cache available
Mem: 3.8Gi 503Mi 2.2Gi 13Mi 1.2Gi 3.2Gi
Swap: 0B 0B 0B
torizon@verdin-imx8mp-15132884:~$ gst-launch-1.0 v4l2src device=/dev/video3 ! video/x-raw,format=YUYV ! autovideosink
WARNING: erroneous pipeline: could not link v4l2src0 to autovideosink0, v4l2src0 can’t handle caps video/x-raw, format=(string)YUYV
torizon@verdin-imx8mp-15132884:~$ v4l2-ctl --device=/dev/video3 --set-fmt-video=width=640,height=480,pixelformat=YUYV
torizon@verdin-imx8mp-15132884:~$ gst-launch-1.0 v4l2src device=/dev/video3 ! autovideosink
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.
Additional debug info:
…/git/sys/v4l2/gstv4l2src.c(759): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Buffer pool activation failed
Execution ended after 0:00:00.054806443
Setting pipeline to NULL …
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
…/git/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Freeing pipeline …
torizon@verdin-imx8mp-15132884:~$ v4l2-ctl --device=/dev/video3 --set-fmt-video=width=320,height=240,pixelformat=YUYV
torizon@verdin-imx8mp-15132884:~$ gst-launch-1.0 v4l2src device=/dev/video3 ! video/x-raw,format=YUYV ! autovideosink
WARNING: erroneous pipeline: could not link v4l2src0 to autovideosink0, v4l2src0 can’t handle caps video/x-raw, format=(string)YUYV
torizon@verdin-imx8mp-15132884:~$ v4l2-ctl --device=/dev/video3 --stream-mmap --stream-count=10
^C
torizon@verdin-imx8mp-15132884:~$ ls -l /dev/video3
crw-rw---- 1 root video 81, 3 Oct 19 11:32 /dev/video3
torizon@verdin-imx8mp-15132884:~$ sudo usermod -aG video $(whoami)
Password:
torizon@verdin-imx8mp-15132884:~$ GST_DEBUG=3 gst-launch-1.0 v4l2src device=/dev/video3 ! autovideosink
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
0:00:00.173122781 8436 0xaaaac8731520 WARN v4l2 gstv4l2object.c:4683:gst_v4l2_object_probe_caps:v4l2src0:src Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Invalid argument
New clock: GstSystemClock
0:00:00.226540200 8436 0xaaaac8731520 ERROR v4l2bufferpool gstv4l2bufferpool.c:730:gst_v4l2_buffer_pool_streamon:v4l2src0:pool0:src error with STREAMON 22 (Invalid argument)
0:00:00.226724070 8436 0xaaaac8731520 ERROR bufferpool gstbufferpool.c:572:gst_buffer_pool_set_active:v4l2src0:pool0:src start failed
0:00:00.226770319 8436 0xaaaac8731520 WARN v4l2src gstv4l2src.c:759:gst_v4l2src_decide_allocation: error: Failed to allocate required memory.
0:00:00.226794443 8436 0xaaaac8731520 WARN v4l2src gstv4l2src.c:759:gst_v4l2src_decide_allocation: error: Buffer pool activation failed
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.
Additional debug info:
…/git/sys/v4l2/gstv4l2src.c(759): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Buffer pool activation failed
0:00:00.227045436 8436 0xaaaac8731520 WARN basesrc gstbasesrc.c:3347:gst_base_src_prepare_allocation: Subclass failed to decide allocation
Execution ended after 0:00:00.053926030
Setting pipeline to NULL …
0:00:00.227101810 8436 0xaaaac8731520 WARN basesrc gstbasesrc.c:3127:gst_base_src_loop: error: Internal data stream error.
0:00:00.227126309 8436 0xaaaac8731520 WARN basesrc gstbasesrc.c:3127:gst_base_src_loop: error: streaming stopped, reason not-negotiated (-4)
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
…/git/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Freeing pipeline …
torizon@verdin-imx8mp-15132884:~$ ^C
torizon@verdin-imx8mp-15132884:~$ v4l2-ctl --device=/dev/video3 --get-fmt-video
Format Video Capture Multiplanar:
Width/Height : 3840/2160
Pixel Format : ‘AR24’ (32-bit BGRA 8-8-8-8)
Field : None
Number of planes : 1
Flags :
Colorspace : sRGB
Transfer Function : Default
YCbCr/HSV Encoding: ITU-R 601
Quantization : Full Range
Plane 0 :
Bytes per Line : 15360
Size Image : 33177600
torizon@verdin-imx8mp-15132884:~$ gst-launch-1.0 videotestsrc ! autovideosink
WARNING: erroneous pipeline: no element “videotestsrc”
torizon@verdin-imx8mp-15132884:~$ lsof /dev/video3
-sh: lsof: command not found
torizon@verdin-imx8mp-15132884:~$ gst-launch-1.0 v4l2src device=/dev/video3 ! video/x-raw,format=YUYV,width=640,height=480 ! videoconvert ! autovideosink
WARNING: erroneous pipeline: no element “videoconvert”
torizon@verdin-imx8mp-15132884:~$ gst-launch-1.0 v4l2src device=/dev/video3 ! video/x-raw,format=YUYV ! videoconvert ! ximagesink
WARNING: erroneous pipeline: no element “videoconvert”
torizon@verdin-imx8mp-15132884:~$ dmesg | tail -n 50
Advised path = 192.168.0.137 → 192.168.0.196
[ 2430.442512] IPv4: Redirect from 192.168.0.104 on ethernet0 about 192.168.0.196 ignored
Advised path = 192.168.0.137 → 192.168.0.196
[ 2430.659326] isi-capture 32e00000.isi:cap_device: mxc_isi_source_fmt_init: src:(720,240), dst:(3840,2160) Not support upscale
[ 2436.440906] IPv4: Redirect from 192.168.0.104 on ethernet0 about 192.168.0.196 ignored
Advised path = 192.168.0.137 → 192.168.0.196
[ 2441.480615] IPv4: Redirect from 192.168.0.104 on ethernet0 about 192.168.0.196 ignored
Advised path = 192.168.0.137 → 192.168.0.196
[ 2449.165228] IPv4: Redirect from 192.168.0.104 on ethernet0 about 192.168.0.196 ignored
Advised path = 192.168.0.137 → 192.168.0.196
[ 2449.216747] bypass csc
[ 2449.216761] input fmt UYVY
[ 2449.216765] output fmt YUYV
[ 2449.216772] mxc-isi 32e00000.isi: input_size(720,240), output_size(320,240)
[ 2459.255567] IPv4: Redirect from 192.168.0.104 on ethernet0 about 192.168.0.196 ignored
Advised path = 192.168.0.137 → 192.168.0.196
[ 2463.259093] IPv4: Redirect from 192.168.0.104 on ethernet0 about 192.168.0.196 ignored
Advised path = 192.168.0.137 → 192.168.0.196
[ 2473.520639] IPv4: Redirect from 192.168.0.104 on ethernet0 about 192.168.0.196 ignored
Advised path = 192.168.0.137 → 192.168.0.196
[ 2474.751600] IPv4: Redirect from 192.168.0.104 on ethernet0 about 192.168.0.196 ignored
Advised path = 192.168.0.137 → 192.168.0.196
[ 2475.366914] IPv4: Redirect from 192.168.0.104 on ethernet0 about 192.168.0.196 ignored
Advised path = 192.168.0.137 → 192.168.0.196
[ 2485.057432] IPv4: Redirect from 192.168.0.104 on ethernet0 about 192.168.0.196 ignored
Advised path = 192.168.0.137 → 192.168.0.196
[ 2485.277336] isi-capture 32e00000.isi:cap_device: mxc_isi_source_fmt_init: src:(720,240), dst:(3840,2160) Not support upscale
[ 2500.337564] IPv4: Redirect from 192.168.0.104 on ethernet0 about 192.168.0.196 ignored
Advised path = 192.168.0.137 → 192.168.0.196
[ 2512.803982] ieee80211 phy0: mwifiex_cfg80211_sched_scan_start : Invalid Sched_scan parameters
[ 2515.355030] IPv4: Redirect from 192.168.0.104 on ethernet0 about 192.168.0.196 ignored
Advised path = 192.168.0.137 → 192.168.0.196
[ 2522.936514] IPv4: Redirect from 192.168.0.104 on ethernet0 about 192.168.0.196 ignored
Advised path = 192.168.0.137 → 192.168.0.196
[ 2537.952867] IPv4: Redirect from 192.168.0.104 on ethernet0 about 192.168.0.196 ignored
Advised path = 192.168.0.137 → 192.168.0.196
[ 2552.970806] IPv4: Redirect from 192.168.0.104 on ethernet0 about 192.168.0.196 ignored
Advised path = 192.168.0.137 → 192.168.0.196
[ 2561.173348] IPv4: Redirect from 192.168.0.104 on ethernet0 about 192.168.0.196 ignored
Advised path = 192.168.0.137 → 192.168.0.196
[ 2569.911979] IPv4: Redirect from 192.168.0.104 on ethernet0 about 192.168.0.196 ignored
Advised path = 192.168.0.137 → 192.168.0.196
[ 2576.357938] IPv4: Redirect from 192.168.0.104 on ethernet0 about 192.168.0.196 ignored
Advised path = 192.168.0.137 → 192.168.0.196
[ 2584.310913] IPv4: Redirect from 192.168.0.104 on ethernet0 about 192.168.0.196 ignored
Advised path = 192.168.0.137 → 192.168.0.196
[ 2589.913794] IPv4: Redirect from 192.168.0.104 on ethernet0 about 192.168.0.196 ignored
Advised path = 192.168.0.137 → 192.168.0.196
[ 2596.626395] IPv4: Redirect from 192.168.0.104 on ethernet0 about 192.168.0.196 ignored
Advised path = 192.168.0.137 → 192.168.0.196
torizon@verdin-imx8mp-15132884:~$ ^C
torizon@verdin-imx8mp-15132884:~$ ^C
torizon@verdin-imx8mp-15132884:~$ v4l2-ctl --device=/dev/video3 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture Multiplanar

    [0]: 'RGBP' (16-bit RGB 5-6-5)
    [1]: 'RGB3' (24-bit RGB 8-8-8)
    [2]: 'BGR3' (24-bit BGR 8-8-8)
    [3]: 'YUYV' (YUYV 4:2:2)
    [4]: 'YUYV' (YUYV 4:2:2)
    [5]: 'NV12' (Y/CbCr 4:2:0)
    [6]: 'NM12' (Y/CbCr 4:2:0 (N-C))
    [7]: 'YM24' (Planar YUV 4:4:4 (N-C))
    [8]: 'XR24' (32-bit BGRX 8-8-8-8)
    [9]: 'AR24' (32-bit BGRA 8-8-8-8)

torizon@verdin-imx8mp-15132884:~$ gst-launch-1.0 v4l2src device=/dev/video3 ! video/x-raw,format=BGRA,width=3840,height=2160 ! autovideosink
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.
Additional debug info:
…/git/sys/v4l2/gstv4l2src.c(759): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Buffer pool activation failed
Execution ended after 0:00:00.054538349
Setting pipeline to NULL …
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
…/git/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Freeing pipeline …
torizon@verdin-imx8mp-15132884:~$ sudo apt-get install gstreamer1.0-plugins-base gstreamer1.0-plugins-good
sudo: apt-get: command not found
torizon@verdin-imx8mp-15132884:~$ gst-launch-1.0 v4l2src device=/dev/video3 ! video/x-raw,format=BGRA,width=3840,height=2160 ! ximagesink
WARNING: erroneous pipeline: no element “ximagesink”
torizon@verdin-imx8mp-15132884:~$ ls -l /dev/video3
crw-rw---- 1 root video 81, 3 Oct 19 11:32 /dev/video3
torizon@verdin-imx8mp-15132884:~$ v4l2-ctl --device=/dev/video3 --stream-mmap --stream-count=1 --verbose
VIDIOC_QUERYCAP: ok
VIDIOC_REQBUFS returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QUERYBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_QBUF returned 0 (Success)
VIDIOC_STREAMON returned -1 (Invalid argument)
torizon@verdin-imx8mp-15132884:~$ v4l2-ctl --device=/dev/video3 --set-fmt-video=width=640,height=480,pixelformat=YUYV
torizon@verdin-imx8mp-15132884:~$ gst-launch-1.0 v4l2src device=/dev/video3 ! video/x-raw,format=YUYV,width=640,height=480 ! autovideosink
WARNING: erroneous pipeline: could not link v4l2src0 to autovideosink0, v4l2src0 can’t handle caps video/x-raw, format=(string)YUYV, width=(int)640, height=(int)480

Please provide me better solution for that
Regards,
Ravi Vanand

@ToradexAI ,
I am waiting for replay here but no one can answer my question