diff --git a/docs/configuration.md b/docs/configuration.md
index cb951c0ba..dd17f08dc 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -2910,14 +2910,16 @@ editing the `conf` file in a text editor. Use the examples as reference.
| Description |
- Maximum encoded frame size (Access Unit) in bytes. When set to a non-zero value, the
- encoder will cap the maximum frame size. This prevents oversized frames from exceeding
+ Maximum Access Unit (frame) size for rate control, in bits. When set, the encoder
+ will cap the maximum encoded frame size. This prevents oversized frames from exceeding
FEC shard limits (DATA_SHARDS_MAX=255), which otherwise causes FEC to be skipped for
those frames. This is especially important for Wi-Fi streaming where packet loss on
large unprotected frames leads to dropped frames and stuttering.
- @note{This option only applies when using amdvce [encoder](#encoder).}
+ @note{This option only applies to H.264 and HEVC when using amdvce [encoder](#encoder).
+ 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).}
|
@@ -2929,7 +2931,7 @@ editing the `conf` file in a text editor. Use the examples as reference.
| Example |
@code{}
- amd_max_au_size = 800000
+ amd_max_au_size = 6400000
@endcode |
diff --git a/src/video.cpp b/src/video.cpp
index 55a1b590c..b6ea56249 100644
--- a/src/video.cpp
+++ b/src/video.cpp
@@ -967,7 +967,6 @@ namespace video {
{"rc"s, &config::video.amd.amd_rc_av1},
{"usage"s, &config::video.amd.amd_usage_av1},
{"enforce_hrd"s, &config::video.amd.amd_enforce_hrd},
- {"max_au_size"s, &config::video.amd.amd_max_au_size},
},
{}, // SDR-specific options
{}, // HDR-specific options
diff --git a/src_assets/common/assets/web/configs/tabs/encoders/AmdAmfEncoder.vue b/src_assets/common/assets/web/configs/tabs/encoders/AmdAmfEncoder.vue
index 86cdb394d..738e27672 100644
--- a/src_assets/common/assets/web/configs/tabs/encoders/AmdAmfEncoder.vue
+++ b/src_assets/common/assets/web/configs/tabs/encoders/AmdAmfEncoder.vue
@@ -61,7 +61,7 @@ const config = ref(props.config)
diff --git a/src_assets/common/assets/web/public/assets/locale/en.json b/src_assets/common/assets/web/public/assets/locale/en.json
index dd5a8f6e3..0aad3347d 100644
--- a/src_assets/common/assets/web/public/assets/locale/en.json
+++ b/src_assets/common/assets/web/public/assets/locale/en.json
@@ -123,8 +123,8 @@
"amd_coder_desc": "Allows you to select the entropy encoding to prioritize quality or encoding speed. H.264 only.",
"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",
- "amd_max_au_size_desc": "Maximum encoded frame size in bytes (0 or empty = disabled). Caps the largest frame the encoder can produce, preventing oversized frames from exceeding FEC limits. Recommended value: 800000 for Wi-Fi streaming with CQP mode.",
+ "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_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",