fix: request H.264 from go2rtc for MSE streams to avoid H.265 PPS decode failures

This commit is contained in:
Abhilash Kishore 2026-04-12 20:55:10 -07:00
parent 335229d0d4
commit f069a98a54

View File

@ -204,7 +204,12 @@ http {
limit_except GET {
deny all;
}
proxy_pass http://go2rtc/api/ws;
# Request H.264 from go2rtc for browser MSE compatibility.
# H.265 cameras with non-standard PPS parameter sets cause Chrome's
# MSE decoder to receive the init segment but stall on media fragments,
# triggering a 6-second timeout and fallback to low-bandwidth JPEG mode.
set $args "${args}&video=h264&audio=aac";
proxy_pass http://go2rtc/api/ws?$args;
include proxy.conf;
}