<?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>Other NXP ProductsのトピックRe: Issue on using vpudec to decode video in h.264 format (i.MX8MP)</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/Issue-on-using-vpudec-to-decode-video-in-h-264-format-i-MX8MP/m-p/2184943#M30358</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You should try the latest BSP since there is a problem with gstreamer in version 5.xx&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Mon, 13 Oct 2025 14:44:16 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2025-10-13T14:44:16Z</dc:date>
    <item>
      <title>Issue on using vpudec to decode video in h.264 format (i.MX8MP)</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Issue-on-using-vpudec-to-decode-video-in-h-264-format-i-MX8MP/m-p/2184755#M30352</link>
      <description>&lt;P&gt;I have encountered issue of high latency and CPU usage when using vpudec (Gstreamer plugin) to decode h.264 video stream from an IP camera using i.MX8MP board.&lt;/P&gt;&lt;P&gt;the gstreamer script I used to run the application is as follows:&lt;/P&gt;&lt;P&gt;$ gst-launch-1.0 rtspsrc location=&amp;lt;rtsp_source&amp;gt; latency=0 ! rtph264depay ! h264parse ! vpudec ! fakesink&lt;/P&gt;&lt;P&gt;I have used the GST_DEBUG tool to print out the interlatency and cpuusage between each event and the figures below are the results I obtained.&lt;/P&gt;&lt;P&gt;When using vpudec:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vpudec debug log.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360452iE2948B088573B5D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="vpudec debug log.png" alt="vpudec debug log.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When using v4l2h264dec:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="v4l2h264dec debug log.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360453iEE84D62C8CCF26D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="v4l2h264dec debug log.png" alt="v4l2h264dec debug log.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When using avdec_h264:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="avdec_h264 debug log.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/360454i875780E351FF5398/image-size/large?v=v2&amp;amp;px=999" role="button" title="avdec_h264 debug log.png" alt="avdec_h264 debug log.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see from the pictures, when using vpudec, the cpu usage is still very high (20 - 48%), and the latency is about 600ms. When using v4l2h264dec, the cpu usage is between (11 - 41%), the latency is about 500ms. While using avdec_h264, the cpu usage is between (14 - 32%), and the latency is about 80ms.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on my testing, the avdec_h264 has the lowest latency to decode the video, while vpudec has the highest cpuusage and latency which is abnormal.&lt;/P&gt;&lt;P&gt;May I know, is there anything that I need to configure in the meta-layer before building the Yocto image for the vpu to work? For this application, I have built my own custom image using imx-image-core as the base. Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 09:51:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Issue-on-using-vpudec-to-decode-video-in-h-264-format-i-MX8MP/m-p/2184755#M30352</guid>
      <dc:creator>Cheok98</dc:creator>
      <dc:date>2025-10-13T09:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on using vpudec to decode video in h.264 format (i.MX8MP)</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Issue-on-using-vpudec-to-decode-video-in-h-264-format-i-MX8MP/m-p/2184758#M30353</link>
      <description>&lt;P&gt;By the way, the Yocto version I used to build my image is kirkstone 5.15.71_2.2.0 release&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 09:55:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Issue-on-using-vpudec-to-decode-video-in-h-264-format-i-MX8MP/m-p/2184758#M30353</guid>
      <dc:creator>Cheok98</dc:creator>
      <dc:date>2025-10-13T09:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on using vpudec to decode video in h.264 format (i.MX8MP)</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Issue-on-using-vpudec-to-decode-video-in-h-264-format-i-MX8MP/m-p/2184943#M30358</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You should try the latest BSP since there is a problem with gstreamer in version 5.xx&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 14:44:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Issue-on-using-vpudec-to-decode-video-in-h-264-format-i-MX8MP/m-p/2184943#M30358</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2025-10-13T14:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Issue on using vpudec to decode video in h.264 format (i.MX8MP)</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Issue-on-using-vpudec-to-decode-video-in-h-264-format-i-MX8MP/m-p/2186231#M30377</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have tried running the same application with image built by Yocto scarthgap (kernel 5.0). But the vpudec still take very long time (600ms) to decode the h264 video.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 03:53:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Issue-on-using-vpudec-to-decode-video-in-h-264-format-i-MX8MP/m-p/2186231#M30377</guid>
      <dc:creator>Cheok98</dc:creator>
      <dc:date>2025-10-15T03:53:56Z</dc:date>
    </item>
  </channel>
</rss>

