From 1941546a3c2e8740bf06fa209118b6c7f9f77f60 Mon Sep 17 00:00:00 2001 From: Abhilash Kishore Date: Sun, 12 Apr 2026 19:33:00 -0700 Subject: [PATCH] fix: request H.264 from go2rtc for MSE streams to avoid H.265 PPS decode failures --- docker/main/rootfs/usr/local/nginx/conf/nginx.conf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker/main/rootfs/usr/local/nginx/conf/nginx.conf b/docker/main/rootfs/usr/local/nginx/conf/nginx.conf index d954bdcd52..f7c6114bb4 100644 --- a/docker/main/rootfs/usr/local/nginx/conf/nginx.conf +++ b/docker/main/rootfs/usr/local/nginx/conf/nginx.conf @@ -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; }