Video Camera Testing Issue

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.