<?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: [iMX8MM] Memory usage increases overtime while decoding some H.264 RTSP stream by Gstreamer's vp in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-Memory-usage-increases-overtime-while-decoding-some-H-264/m-p/1598440#M201461</link>
    <description>&lt;P&gt;Hello Brian &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/35304"&gt;@brianwu&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;It's been a while but I believe we ran into this or a similar problem (some camera h264 ts leading to huge 20MB/minute leak with vpudec only).&lt;/P&gt;&lt;P&gt;This still happens on the latest 5.15.71_2.2.0 BSP, have you been able to reach some form of resolution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dominique&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2023 00:11:12 GMT</pubDate>
    <dc:creator>martinetd</dc:creator>
    <dc:date>2023-02-14T00:11:12Z</dc:date>
    <item>
      <title>[iMX8MM] Memory usage increases overtime while decoding some H.264 RTSP stream by Gstreamer's vpudec</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-Memory-usage-increases-overtime-while-decoding-some-H-264/m-p/1314206#M177550</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I used the following command to test customer's IP cameras and found that the memory usage increases overtime.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;gst-launch-1.0 rtspsrc latency=20 location="rtsp://192.168.2.111:554/user=admin_password=tlJwpbo6_channel=1_stream=0.sdp?real_stream" ! rtph264depay ! h264parse ! vpudec ! waylandsink window-width=380 window-height=164&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note that, if I replace "vpudec" with "avdec_h264", the memory usage is stable.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;gst-launch-1.0 rtspsrc latency=20 location="rtsp://192.168.2.111:554/user=admin_password=tlJwpbo6_channel=1_stream=0.sdp?real_stream" ! rtph264depay ! h264parse ! avdec_h264 ! waylandsink window-width=380 window-height=164&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone guide me to solve the issue?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE:&lt;/P&gt;&lt;P&gt;I already tested on following Yocto BSP version. All of them have the same problem.&lt;/P&gt;&lt;P&gt;imx_4.14.98_2.3.0&lt;/P&gt;&lt;P&gt;imx_5.4.70_2.3.0&lt;/P&gt;&lt;P&gt;imx_5.10.35_2.0.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jul 2021 03:09:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-Memory-usage-increases-overtime-while-decoding-some-H-264/m-p/1314206#M177550</guid>
      <dc:creator>brianwu</dc:creator>
      <dc:date>2021-07-28T03:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: [iMX8MM] Memory usage increases overtime while decoding some H.264 RTSP stream by Gstreamer's vp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-Memory-usage-increases-overtime-while-decoding-some-H-264/m-p/1328230#M178960</link>
      <description>&lt;P&gt;how about using this patch?&lt;/P&gt;
&lt;PRE&gt;--- a/plugins/vpu/gstvpu.h
+++ b/plugins/vpu/gstvpu.h
@@ -45,7 +45,7 @@ static VPUMapper vpu_mappers[] = {
   {VPU_V_VP9, "video/x-vp9"},
   {VPU_V_VP8, "video/x-vp8"},
   {VPU_V_VP6, "video/x-vp6-flash"},
-  {VPU_V_AVC, "video/x-h264"},
+  {VPU_V_AVC, "video/x-h264,alignment=au"},
   {VPU_V_MPEG2, "video/mpeg, systemstream=(boolean)false, mpegversion=(int){1,2}"},
   {VPU_V_MPEG4, "video/mpeg, mpegversion=(int)4"},
   {VPU_V_H263, "video/x-h263"},
-- &lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Aug 2021 05:48:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-Memory-usage-increases-overtime-while-decoding-some-H-264/m-p/1328230#M178960</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2021-08-24T05:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: [iMX8MM] Memory usage increases overtime while decoding some H.264 RTSP stream by Gstreamer's vp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-Memory-usage-increases-overtime-while-decoding-some-H-264/m-p/1328273#M178965</link>
      <description>&lt;P&gt;Hi Joanxie,&lt;/P&gt;&lt;P&gt;Thanks for your response. I already tried the patch in the past (found in other discussion). The issue still present.&lt;/P&gt;&lt;P&gt;In the past two weeks, I tried to add some debug messages in gstreamer's &lt;STRONG&gt;vpudec&lt;/STRONG&gt;&amp;nbsp;plugin and vpu library. And tried to find out the different between the good camera and bad camera (bad means it has memory leak).&lt;/P&gt;&lt;P&gt;Finally, I found the problem is caused by the frame which contains only one SEI NAL.&amp;nbsp; However, I still don't find out the root cause. (The good camera send one frame which contains both SEI and IDR NAL.)&lt;/P&gt;&lt;P&gt;Current workaround is modify &lt;STRONG&gt;h264parse&lt;/STRONG&gt; plugin to drop SEI NAL message, but I am not sure whether there is any impact for other H264 stream.&lt;/P&gt;&lt;P&gt;I think we should modify &lt;STRONG&gt;vpudec&lt;/STRONG&gt; plugin instead of&amp;nbsp;h264parse plugin to handle this case correctly (just like &lt;STRONG&gt;avdec_h264&lt;/STRONG&gt; plugin).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 06:40:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-Memory-usage-increases-overtime-while-decoding-some-H-264/m-p/1328273#M178965</guid>
      <dc:creator>brianwu</dc:creator>
      <dc:date>2021-08-24T06:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: [iMX8MM] Memory usage increases overtime while decoding some H.264 RTSP stream by Gstreamer's vp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-Memory-usage-increases-overtime-while-decoding-some-H-264/m-p/1393587#M185265</link>
      <description>&lt;P&gt;I already sent to you private message, pls try that again&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jan 2022 14:03:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-Memory-usage-increases-overtime-while-decoding-some-H-264/m-p/1393587#M185265</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2022-01-01T14:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: [iMX8MM] Memory usage increases overtime while decoding some H.264 RTSP stream by Gstreamer's vp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-Memory-usage-increases-overtime-while-decoding-some-H-264/m-p/1598440#M201461</link>
      <description>&lt;P&gt;Hello Brian &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/35304"&gt;@brianwu&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;It's been a while but I believe we ran into this or a similar problem (some camera h264 ts leading to huge 20MB/minute leak with vpudec only).&lt;/P&gt;&lt;P&gt;This still happens on the latest 5.15.71_2.2.0 BSP, have you been able to reach some form of resolution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dominique&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 00:11:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8MM-Memory-usage-increases-overtime-while-decoding-some-H-264/m-p/1598440#M201461</guid>
      <dc:creator>martinetd</dc:creator>
      <dc:date>2023-02-14T00:11:12Z</dc:date>
    </item>
  </channel>
</rss>

