<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Overlay on camera stream in i.MX8MM in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Overlay-on-camera-stream-in-i-MX8MM/m-p/1736417#M213779</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The CPU utilization was around 20% with Cairo Plugin.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2023 08:47:17 GMT</pubDate>
    <dc:creator>namanthaker</dc:creator>
    <dc:date>2023-10-10T08:47:17Z</dc:date>
    <item>
      <title>Overlay on camera stream in i.MX8MM</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Overlay-on-camera-stream-in-i-MX8MM/m-p/1313963#M177531</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using gstreamer pipeline on i.MX8M Mini dual core platform (OS: Yocto L5.4.24-2.1.0) to capture a 5MP@20FPS camera input and put overlay on it using below command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;gst-launch-1.0 -v v4l2src device=/dev/video0 num-buffers=100 ! video/x-raw,width=2592,height=1944 ! queue ! imxvideoconvert_g2d ! video/x-raw,width=1920,height=1080 ! textoverlay text="Device name[%STATUS] reading : %%%" valignment=top halignment=left shaded-background=true ! textoverlay text="Device %Serial Number : ..%Tag location.." valignment=bottom halignment=left shaded-background=true ! clockoverlay halignment=right valignment=top shaded-background=true time-format="%H:%M:%S %D" ! vpuenc_h264 ! h264parse ! mp4mux ! filesink location=/home/root/video.mp4&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the expected output on the camera stream after applying the overlay.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Expected_Overlay_output.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/150992i3AC172DB12F13401/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Expected_Overlay_output.jpg" alt="Expected_Overlay_output.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I use the above command, CPU utilisation increases to 120% (checked with top command) and the video is recorded at 6FPS. I have debugged that the Gstreamer overlay (which is a SW element) is causing the high CPU utilisation and subsequent FPS drop.&lt;/P&gt;&lt;P&gt;Based on the issue I have below queries:&lt;BR /&gt;1. Going through the i.MX8MM datasheet and Gstreamer documents, I saw that 8MM supports overlay through GPU. If I can use the GPU to offload the SW overlay pipeline, I believe I can get full 20FPS.&lt;/P&gt;&lt;P&gt;Could someone suggest how I can use the GPU overlay feature to perform overlay on the input camera stream?&lt;/P&gt;&lt;P&gt;2. How do I confirm that the dual cores are being utilised or not? Does i.MX8MM L5.4.24-2.1.0 support any load balacing feature ? If yes, how does the load balancing between two cores work on i.MX8MM in L5.4.24-2.1.0?&lt;/P&gt;&lt;P&gt;3. Are there any other module/method available (preferably a HW module) to create overlay on camera stream in i.MX8MM?&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Naman&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 14:51:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Overlay-on-camera-stream-in-i-MX8MM/m-p/1313963#M177531</guid>
      <dc:creator>namanthaker</dc:creator>
      <dc:date>2021-07-27T14:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay on camera stream in i.MX8MM</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Overlay-on-camera-stream-in-i-MX8MM/m-p/1317040#M177777</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This issue is getting critical for us now.&lt;BR /&gt;Could someone please help to update on this thread.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Naman&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 05:21:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Overlay-on-camera-stream-in-i-MX8MM/m-p/1317040#M177777</guid>
      <dc:creator>namanthaker</dc:creator>
      <dc:date>2021-08-03T05:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay on camera stream in i.MX8MM</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Overlay-on-camera-stream-in-i-MX8MM/m-p/1648584#M205684</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Did you find a way to the use the TextOverlay element on the i.MX8M Mini? Was your image built with FPU / NEON support?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 10:03:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Overlay-on-camera-stream-in-i-MX8MM/m-p/1648584#M205684</guid>
      <dc:creator>vincentz63</dc:creator>
      <dc:date>2023-05-11T10:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay on camera stream in i.MX8MM</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Overlay-on-camera-stream-in-i-MX8MM/m-p/1736366#M213771</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We used Cairo Overlay pluging with Gstreamer to get the overlay elements. Our image was not build with FPU/NEON support.&lt;/P&gt;&lt;P&gt;Cairo Overlay : &lt;A href="https://gstreamer.freedesktop.org/documentation/cairo/index.html?gi-language=c" target="_blank"&gt;https://gstreamer.freedesktop.org/documentation/cairo/index.html?gi-language=c&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 08:00:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Overlay-on-camera-stream-in-i-MX8MM/m-p/1736366#M213771</guid>
      <dc:creator>namanthaker</dc:creator>
      <dc:date>2023-10-10T08:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay on camera stream in i.MX8MM</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Overlay-on-camera-stream-in-i-MX8MM/m-p/1736394#M213774</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the info. We ended-up using the imxcompositor in the end for our overlays, which uses nearly no CPU. Out of interest, what is the CPU usage with the Cairo library for your overlays?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 08:25:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Overlay-on-camera-stream-in-i-MX8MM/m-p/1736394#M213774</guid>
      <dc:creator>vincentz63</dc:creator>
      <dc:date>2023-10-10T08:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Overlay on camera stream in i.MX8MM</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Overlay-on-camera-stream-in-i-MX8MM/m-p/1736417#M213779</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The CPU utilization was around 20% with Cairo Plugin.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 08:47:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Overlay-on-camera-stream-in-i-MX8MM/m-p/1736417#M213779</guid>
      <dc:creator>namanthaker</dc:creator>
      <dc:date>2023-10-10T08:47:17Z</dc:date>
    </item>
  </channel>
</rss>

