fix(macos): drop max_ref_frames=1 for h264_videotoolbox and enable PARALLEL_ENCODING (#5200)

This commit is contained in:
Jason Lu
2026-05-27 08:31:58 -07:00
committed by GitHub
parent 3c7952b2dd
commit 3ee4144a81
+6 -2
View File
@@ -1134,12 +1134,16 @@ namespace video {
},
{
// Common options
// Note: max_ref_frames is intentionally omitted for H.264 because
// VideoToolbox on Apple Silicon produces all-IDR output when
// ReferenceBufferCount=1 is set for H.264, causing massive bandwidth
// inflation (~3x) and frame drops. HEVC and AV1 are unaffected and
// retain max_ref_frames=1. See LizardByte/Sunshine#5013.
{
{"allow_sw"s, &config::video.vt.vt_allow_sw},
{"require_sw"s, &config::video.vt.vt_require_sw},
{"realtime"s, &config::video.vt.vt_realtime},
{"prio_speed"s, 1},
{"max_ref_frames"s, 1},
},
{}, // SDR-specific options
{}, // HDR-specific options
@@ -1151,7 +1155,7 @@ namespace video {
},
"h264_videotoolbox"s,
},
DEFAULT
PARALLEL_ENCODING
};
#endif