<?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>i.MX Processorsのトピックi.MX6Q VPU: Enabling intraRefresh encoding</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-Enabling-intraRefresh-encoding/m-p/269013#M28571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am interested in using the i.MX6Q VPU to encode H.264 streams with intra-refresh enabled.&amp;nbsp; For this I looked up in the &lt;SPAN style="text-decoration: underline;"&gt;i.MX 6Dual/6Quad VPU Application Programming Interface Linux Reference Manual, Rev L3.0.35_4.0.0, 05/2013&lt;/SPAN&gt;, page 24 where it states that setting the intraRefresh field to a non-zero value in EncOpenParam structure and passing to the vpu_EncOpen() API will enable intra-refresh:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;intraRefresh where 0 = Intra MB refresh is not used. Otherwise = At least N MB's in every P-frame are encoded as intra MB's. This value is ignored in for STD_MJPG.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, following the above directions, I set intraRefresh to different non-zero values (800, 2400, etc) and encoded 1080 H.264 streams from the camera.&amp;nbsp; Upon examination of the streams, it looks likes there are still I-frames in the video.&amp;nbsp; I am under the impression that when intra-refresh parameter is enabled then there would be no I frames in the video, just P frames with the Intra MBs embedded within.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am modifying vpu_wrapper.c from the 4.0.0 LTIB release.&amp;nbsp; In VPU_EncOpen(), I set sEncOpenParam.intraRefresh = 2400.&amp;nbsp; Also tried other values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is why the VPU is still generating I-frames despite the intra-refresh option set?&lt;/P&gt;&lt;P&gt;Also whether there are other options I need to enable/modify to get this to encode properly?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Aug 2013 23:40:32 GMT</pubDate>
    <dc:creator>rebelalliance</dc:creator>
    <dc:date>2013-08-21T23:40:32Z</dc:date>
    <item>
      <title>i.MX6Q VPU: Enabling intraRefresh encoding</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-Enabling-intraRefresh-encoding/m-p/269013#M28571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am interested in using the i.MX6Q VPU to encode H.264 streams with intra-refresh enabled.&amp;nbsp; For this I looked up in the &lt;SPAN style="text-decoration: underline;"&gt;i.MX 6Dual/6Quad VPU Application Programming Interface Linux Reference Manual, Rev L3.0.35_4.0.0, 05/2013&lt;/SPAN&gt;, page 24 where it states that setting the intraRefresh field to a non-zero value in EncOpenParam structure and passing to the vpu_EncOpen() API will enable intra-refresh:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;intraRefresh where 0 = Intra MB refresh is not used. Otherwise = At least N MB's in every P-frame are encoded as intra MB's. This value is ignored in for STD_MJPG.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, following the above directions, I set intraRefresh to different non-zero values (800, 2400, etc) and encoded 1080 H.264 streams from the camera.&amp;nbsp; Upon examination of the streams, it looks likes there are still I-frames in the video.&amp;nbsp; I am under the impression that when intra-refresh parameter is enabled then there would be no I frames in the video, just P frames with the Intra MBs embedded within.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am modifying vpu_wrapper.c from the 4.0.0 LTIB release.&amp;nbsp; In VPU_EncOpen(), I set sEncOpenParam.intraRefresh = 2400.&amp;nbsp; Also tried other values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is why the VPU is still generating I-frames despite the intra-refresh option set?&lt;/P&gt;&lt;P&gt;Also whether there are other options I need to enable/modify to get this to encode properly?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 23:40:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-Enabling-intraRefresh-encoding/m-p/269013#M28571</guid>
      <dc:creator>rebelalliance</dc:creator>
      <dc:date>2013-08-21T23:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6Q VPU: Enabling intraRefresh encoding</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-Enabling-intraRefresh-encoding/m-p/269014#M28572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, rebelalliance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The parameter intraRefresh only affect the P frame, it isn't related with I frame.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you want to encode clip with rare I frame, you can enlarge the I frame interval through assign one big GOP size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard&lt;/P&gt;&lt;P&gt;Eagle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 07:25:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6Q-VPU-Enabling-intraRefresh-encoding/m-p/269014#M28572</guid>
      <dc:creator>eaglezhou</dc:creator>
      <dc:date>2013-08-22T07:25:06Z</dc:date>
    </item>
  </channel>
</rss>

