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 19:33:00 -07:00
parent 276da2bd6a
commit 1941546a3c

View File

@ -204,7 +204,12 @@ http {
limit_except GET { limit_except GET {
deny all; 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; include proxy.conf;
} }