fix: correct recommended max_au_size value and add sizing formula

800000 bits (~97 KB/frame, ~46 Mbps at 60fps) is the correct
recommended value for Wi-Fi streaming, not 6400000.

Added formula for users to calculate based on their bandwidth:
  (target_bitrate_mbps / fps / 1.2) * 1000000
where 1.2 accounts for ~20% FEC overhead.
This commit is contained in:
pollopopo authored and ReenigneArcher committed 2026-08-20 23:18:24 -04:00
1 parent 7be86ac13d
commit 8d3f1abe3b
2 files changed
+5 -3

No files matched your search

+4 -2
View File
@@ -2919,7 +2919,9 @@ editing the `conf` file in a text editor. Use the examples as reference.
AV1 does not support this option.}
@note{Works with all rate control modes (CQP, CBR, VBR). Most beneficial with CQP
where frame sizes are otherwise unbounded.}
@note{Value is in bits. To cap at 800 KB, use 6400000 (800000 × 8).}
@note{Value is in bits. To calculate: (target_bitrate_mbps / fps / 1.2) × 1000000,
where 1.2 accounts for ~20% FEC overhead. Examples: 800000 for ~50 Mbps at 60fps,
1600000 for ~100 Mbps at 60fps, 400000 for ~50 Mbps at 120fps.}
</td>
</tr>
<tr>
@@ -2931,7 +2933,7 @@ editing the `conf` file in a text editor. Use the examples as reference.
<tr>
<td>Example</td>
<td colspan="2">@code{}
amd_max_au_size = 6400000
amd_max_au_size = 800000
@endcode</td>
</tr>
</table>
@@ -124,7 +124,7 @@
"amd_enforce_hrd": "AMF Hypothetical Reference Decoder (HRD) Enforcement",
"amd_enforce_hrd_desc": "Increases the constraints on rate control to meet HRD model requirements. This greatly reduces bitrate overflows, but may cause encoding artifacts or reduced quality on certain cards.",
"amd_max_au_size": "AMF Max AU Size (bits)",
"amd_max_au_size_desc": "Maximum Access Unit (frame) size in bits for rate control. Empty or -1 disables. Caps the largest frame the encoder can produce, preventing oversized frames from exceeding FEC limits on Wi-Fi. H.264 and HEVC only (AV1 not supported). Recommended: 6400000 (800 KB) for Wi-Fi streaming.",
"amd_max_au_size_desc": "Maximum Access Unit (frame) size in bits. Empty or -1 disables. Prevents oversized frames from exceeding FEC limits on Wi-Fi. H.264 and HEVC only. Formula: (target_bitrate_mbps / fps / 1.2) * 1000000. Example at 50 Mbps 60fps: (50/60/1.2)*1000000 = 694444. Recommended: 800000 for ~50 Mbps Wi-Fi.",
"amd_preanalysis": "AMF Preanalysis",
"amd_preanalysis_desc": "This enables rate-control preanalysis, which may increase quality at the expense of increased encoding latency.",
"amd_quality": "AMF Quality",