diff --git a/nginx-transcoder/nginx-no-ssl.conf b/nginx-transcoder/nginx-no-ssl.conf index 04cf802..9e67443 100644 --- a/nginx-transcoder/nginx-no-ssl.conf +++ b/nginx-transcoder/nginx-no-ssl.conf @@ -13,6 +13,10 @@ rtmp { listen ${RTMP_PORT}; chunk_size 4000; notify_method get; + # 4K (and larger) H.264 keyframes can exceed nginx-rtmp's 1 MB default + # max_message, which drops the publish with "too big message" before + # ffmpeg ever sees a frame. Raise it well above a realistic keyframe size. + max_message 10M; application live { live on; diff --git a/nginx-transcoder/nginx.conf b/nginx-transcoder/nginx.conf index 95116a4..45eea1f 100644 --- a/nginx-transcoder/nginx.conf +++ b/nginx-transcoder/nginx.conf @@ -13,6 +13,10 @@ rtmp { listen ${RTMP_PORT}; chunk_size 4000; notify_method get; + # 4K (and larger) H.264 keyframes can exceed nginx-rtmp's 1 MB default + # max_message, which drops the publish with "too big message" before + # ffmpeg ever sees a frame. Raise it well above a realistic keyframe size. + max_message 10M; application live { live on;