<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Periodic Intra Video Refresh]]></title><description><![CDATA[<p dir="auto">Hello ModalAI team,</p>
<p dir="auto">I am currently working on optimizing my video pipeline for a low-latency, bandwidth-constrained radio link. To eliminate the massive bandwidth spikes caused by periodic IDR frames, I am implementing Gradual Decoder Refresh (Periodic Intra Refresh) by modifying <code>voxl-camera-server</code>.</p>
<p dir="auto">Here is my current hardware setup:</p>
<ul>
<li>
<p dir="auto"><strong>Compute:</strong> VOXL2 (QRB5165)</p>
</li>
<li>
<p dir="auto"><strong>Image Sensor:</strong> IMX412</p>
</li>
<li>
<p dir="auto"><strong>Target Stream:</strong> Small video stream (H.265 / CBR) while adjusting bitrate dynamically via <code>int OMXVideoEncoder::SetTargetBitrate(uint32_t bps)</code></p>
</li>
</ul>
<p dir="auto">I am planning editing <code>src/venc/OMX.cpp</code> and setting the following parameter: <code>OMX_IndexParamVideoIntraRefresh</code>. Before starting implementation, I had questions about the approach and tuning parameters.</p>
<pre><code class="language-C++">def struct OMX_VIDEO_PARAM_INTRAREFRESHTYPE {
 OMX_U32 nSize;
 OMX_VERSIONTYPE nVersion;
 OMX_U32 nPortIndex;
 OMX_VIDEO_INTRAREFRESHTYPE eRefreshMode;
 OMX_U32 nAirMBs;
 OMX_U32 nAirRef;
 OMX_U32 nCirMBs;
} OMX_VIDEO_PARAM_INTRAREFRESHTYPE; 
</code></pre>
<ul>
<li>
<p dir="auto"><strong>Cyclical vs. Adaptive vs. Hybrid:</strong> According to "The OpenMAX Integration Layer Specification", the QRB5165 supports three different modes for periodic intra refresh. Cyclical keeps a steady bitrate, adaptive can handle rapid motion, and hybrid combines these two approaches. Ideally, the hybrid seems like the best use case for drone FPV but adds a layer of implementation complexity. Which mode would you recommend?</p>
</li>
<li>
<p dir="auto"><strong>Param Tuning</strong>:  What is the suggested approach to tuning <code>nAirMBs</code>, <code>nAirRef</code>, and <code>nCirMBs</code> experimentally? Do you already have a set of recommended values?</p>
</li>
<li>
<p dir="auto">Should <code>nCirMBs</code> scale linearly with the target bitrate when the dynamic bitrate path adjusts <code>mbps</code> at runtime? And for H.265, is the MB count interpreted at 16×16 MB granularity or translated internally to 32×32/64×64 CTUs?</p>
</li>
<li>
<p dir="auto"><strong>Configuration Conflicts:</strong> Are there any known conflicts between setting <code>OMX_IndexParamVideoIntraRefresh</code> and the other default QMMF parameters (like the dynamic bitrate updates) currently set in <code>OMX.cpp</code>?</p>
</li>
<li>
<p dir="auto"><strong>Firmware/HAL quirks:</strong> Are there any specific "gotchas" or undocumented requirements for the QCOM Media HAL on the VOXL2 when using periodic intra refresh?</p>
</li>
</ul>
<p dir="auto">Any advice on tuning these parameters for the QRB5165 would be highly appreciated.</p>
<p dir="auto">Thank you!</p>
]]></description><link>https://forum.modalai.com/topic/5167/periodic-intra-video-refresh</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 11:06:36 GMT</lastBuildDate><atom:link href="https://forum.modalai.com/topic/5167.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 Apr 2026 17:18:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Periodic Intra Video Refresh on Wed, 15 Apr 2026 22:15:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.modalai.com/uid/3716">@Anthony-Kang</a> , we are looking into this. However, initial attempts to enable Intra Refresh on VOXL2 via the OMX api did not succeed either for h264 or h265. Also h265 does not work with fixed Macro Blocks (Coding Tree Units instead), so it seems the OMX structures for this param would not work with h265.</p>
<p dir="auto">Alex</p>
]]></description><link>https://forum.modalai.com/post/25760</link><guid isPermaLink="true">https://forum.modalai.com/post/25760</guid><dc:creator><![CDATA[Alex Kushleyev]]></dc:creator><pubDate>Wed, 15 Apr 2026 22:15:50 GMT</pubDate></item></channel></rss>