<?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 High CPU usage when using imxcompositor_g2d with i.MX8MMini in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/High-CPU-usage-when-using-imxcompositor-g2d-with-i-MX8MMini/m-p/940768#M140782</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running tests with the i.MX8MMini-EVK and have found that using the imxcompositor_g2d greatly increases CPU usage.&lt;/P&gt;&lt;P&gt;I am comparing the following two pipelines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pipeline #1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;gst-launch-1.0 v4l2src ! vpuenc_h264 gop-size=60 ! rtph264pay pt=96 ! udpsink host=172.20.1.120 port=5000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pipeline #2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;gst-launch-1.0 imxcompositor_g2d name=c sink_1::xpos=160 sink_1::ypos=120 ! video/x-raw,width=1920,height=1080,format=BGRx&amp;nbsp; ! vpuenc_h264&amp;nbsp; gop-size=60&amp;nbsp; ! rtph264pay pt=96 ! udpsink host=172.20.1.120 port=5000 v4l2src ! video/x-raw,width=1920,height=1080,format=YUY2 ! c.sink_0 filesrc location=./test.jpg ! decodebin ! imagefreeze ! c.sink_1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;test.jpg is a 320x240 image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pipeline #1 uses about 6% CPU while pipeline #2 uses about 13% CPU. &lt;EM&gt;&lt;STRONG&gt;Any idea why so much CPU is being used?&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "&amp;nbsp;i.MX Linux® User's Guide" page 50 states that "&lt;EM&gt;imxcompositor_g2d uses corresponding hardware to accelerate video composition&lt;/EM&gt;".&lt;/P&gt;&lt;P&gt;This &lt;A _jive_internal="true" href="https://community.nxp.com/thread/514124"&gt;topic &lt;/A&gt;states that on the i.MX8MQ the overlaysink is implemented using GPU. &lt;EM&gt;&lt;STRONG&gt;Is it the same true with the i.MX8MMini and imxcompositor_g2d?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "i.MX 8M Mini Applications Processor Reference Manual", page 4781 states that "&lt;EM&gt;Preprocessing is pipelined with the encoder and it can be used only with the VPU H1 encoder.&lt;/EM&gt;" However the preprocessing listed does not include overlays, just rotation or scaling. Is this preprocessing accessed using imxvideoconvert_g2d and not i&lt;EM&gt;mxcompositor_g2d &lt;/EM&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Oct 2019 11:04:34 GMT</pubDate>
    <dc:creator>vincentz63</dc:creator>
    <dc:date>2019-10-18T11:04:34Z</dc:date>
    <item>
      <title>High CPU usage when using imxcompositor_g2d with i.MX8MMini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/High-CPU-usage-when-using-imxcompositor-g2d-with-i-MX8MMini/m-p/940768#M140782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running tests with the i.MX8MMini-EVK and have found that using the imxcompositor_g2d greatly increases CPU usage.&lt;/P&gt;&lt;P&gt;I am comparing the following two pipelines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pipeline #1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;gst-launch-1.0 v4l2src ! vpuenc_h264 gop-size=60 ! rtph264pay pt=96 ! udpsink host=172.20.1.120 port=5000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pipeline #2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;gst-launch-1.0 imxcompositor_g2d name=c sink_1::xpos=160 sink_1::ypos=120 ! video/x-raw,width=1920,height=1080,format=BGRx&amp;nbsp; ! vpuenc_h264&amp;nbsp; gop-size=60&amp;nbsp; ! rtph264pay pt=96 ! udpsink host=172.20.1.120 port=5000 v4l2src ! video/x-raw,width=1920,height=1080,format=YUY2 ! c.sink_0 filesrc location=./test.jpg ! decodebin ! imagefreeze ! c.sink_1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;test.jpg is a 320x240 image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pipeline #1 uses about 6% CPU while pipeline #2 uses about 13% CPU. &lt;EM&gt;&lt;STRONG&gt;Any idea why so much CPU is being used?&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "&amp;nbsp;i.MX Linux® User's Guide" page 50 states that "&lt;EM&gt;imxcompositor_g2d uses corresponding hardware to accelerate video composition&lt;/EM&gt;".&lt;/P&gt;&lt;P&gt;This &lt;A _jive_internal="true" href="https://community.nxp.com/thread/514124"&gt;topic &lt;/A&gt;states that on the i.MX8MQ the overlaysink is implemented using GPU. &lt;EM&gt;&lt;STRONG&gt;Is it the same true with the i.MX8MMini and imxcompositor_g2d?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "i.MX 8M Mini Applications Processor Reference Manual", page 4781 states that "&lt;EM&gt;Preprocessing is pipelined with the encoder and it can be used only with the VPU H1 encoder.&lt;/EM&gt;" However the preprocessing listed does not include overlays, just rotation or scaling. Is this preprocessing accessed using imxvideoconvert_g2d and not i&lt;EM&gt;mxcompositor_g2d &lt;/EM&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2019 11:04:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/High-CPU-usage-when-using-imxcompositor-g2d-with-i-MX8MMini/m-p/940768#M140782</guid>
      <dc:creator>vincentz63</dc:creator>
      <dc:date>2019-10-18T11:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: High CPU usage when using imxcompositor_g2d with i.MX8MMini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/High-CPU-usage-when-using-imxcompositor-g2d-with-i-MX8MMini/m-p/940769#M140783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello JP,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6% and 13% I don not think that is much CPU, you can add a profiler is you think is using the CPU instead of GPU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2019 15:03:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/High-CPU-usage-when-using-imxcompositor-g2d-with-i-MX8MMini/m-p/940769#M140783</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2019-10-23T15:03:23Z</dc:date>
    </item>
  </channel>
</rss>

