fix: correct max_au_size units (bits not bytes), remove AV1 support

Address review feedback:
- max_au_size is in bits per FFmpeg AMF documentation, not bytes
- AV1 encoder (av1_amf) does not support max_au_size, removed
- Updated UI description, docs, and recommended value accordingly
- FFmpeg default is -1 (disabled), aligned placeholder
This commit is contained in:
pollopopo authored and ReenigneArcher committed 2026-08-20 23:18:23 -04:00
1 parent e9ba442cb9
commit 7be86ac13d
4 files changed
+9 -8

No files matched your search

+6 -4
View File
@@ -2910,14 +2910,16 @@ editing the `conf` file in a text editor. Use the examples as reference.
<tr>
<td>Description</td>
<td colspan="2">
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).}
</td>
</tr>
<tr>
@@ -2929,7 +2931,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 = 800000
amd_max_au_size = 6400000
@endcode</td>
</tr>
</table>
-1
View File
@@ -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
@@ -61,7 +61,7 @@ const config = ref(props.config)
<div class="mb-3">
<label for="amd_max_au_size" class="form-label">{{ $t('config.amd_max_au_size') }}</label>
<input type="number" class="form-control" id="amd_max_au_size"
placeholder="0" min="0" v-model="config.amd_max_au_size" />
placeholder="-1" min="-1" v-model="config.amd_max_au_size" />
<div class="form-text">{{ $t('config.amd_max_au_size_desc') }}</div>
</div>
</div>
@@ -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",