Explorar o código

增加message 和 chunk_size

zhensolid hai 1 ano
pai
achega
f8df99276e
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      nginx.conf

+ 5 - 1
nginx.conf

@@ -7,9 +7,13 @@ events {
 }
 
 rtmp {
+     # 从20M增加到50M,因为4K视频帧可能会更大
+    max_message 50M;
+
     server {
         listen ${RTMP_PORT};
-        chunk_size 4000;
+        # 从4000增加到8192,提高传输效率
+        chunk_size 8192;
 
         application stream {
             live on;