Dear NXP Support Team,
I am writing to seek urgent assistance regarding critical issues I am experiencing with an i.MX8MM platform running kernel version 5.15. The problems involve video capture and real-time display using GStreamer pipelines with a Hi846 camera module, and I would greatly appreciate your expertise in resolving them.
Platform: i.MX8MM
Kernel: 5.15
Camera: Hi846 with minimum resolution of 1280x720
I can capture raw data using the following command: v4l2-ctl -d /dev/video0 --set-fmt-video width=1280,height=720,pixelformat=BA10 --stream-mmap --stream-count=10 --stream-to=test.raw
I can also capture a single PNG image with this GStreamer command: gst-launch-1.0 -vvv v4l2src device=/dev/video0 num-buffers=1 ! "video/x-bayer,width=1280,height=720,framerate=(fraction)15/1,format=(string)grbg" ! bayer2rgb ! pngenc ! filesink location=test.png
However, when attempting real-time display with the following pipeline: gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-bayer,format=grbg,width=1280,height=720,framerate=15/1 ! queue ! bayer2rgb ! videoconvert ! videoscale ! video/x-raw,width=640,height=480,pixel-aspect-ratio=1/1 ! glimagesink
I encounter significant lag and the following warning:
WARNING: from element /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLImageSink:sink: A lot of buffers are being dropped.
Additional debug info:
../git/libs/gst/base/gstbasesink.c(3143): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstGLImageSinkBin:glimagesinkbin0/GstGLImageSink:sink:
There may be a timestamping problem, or this computer is too slow.
The display is choppy, indicating performance issues.
During the real-time display attempt, CPU usage spikes to nearly 100%, as shown in the top output:

I have tried adding queue elements and adjusting frame rates, but the issue persists
This high CPU usage and frame dropping are severely impacting real-time performance, which is critical for my application. I suspect the issue may be related to inefficient buffer handling, lack of hardware acceleration, or a configuration mismatch with the i.MX8MM’s GPU/VPU capabilities. Could you please:
- Provide guidance on optimizing the GStreamer pipeline to leverage hardware acceleration ?
- Suggest kernel or driver patches to improve DMA buffer handling or reduce CPU load?
- Recommend debugging steps to identify the exact bottleneck (e.g., enabling specific GStreamer debug levels or kernel logs)?
I am available to provide additional logs, such as GST_DEBUG=3 output or kernel traces, upon request. This is an urgent matter, and your prompt support would be greatly appreciated.
Thank you for your attention to this issue.
Best regards,