Open iameli opened 5 years ago
Here's an example nginx.conf I was using:
worker_processes auto;
# rtmp_auto_push on;
error_log /proc/1/fd/1 info;
events {}
rtmp {
access_log /proc/1/fd/1;
# wait_key on;
# interleave on;
max_message 10M;
chunk_size 16384;
max_streams 128;
server {
listen 1935;
listen [::]:1935 ipv6only=on;
application live {
live on;
record off;
push rtmp://10.9.168.68:1936; # <-- This was my joy4 server
}
}
}
Which I ran with docker run --rm -p 1935:1935 --name nginx-rtmp -v (realpath nginx.conf):/etc/nginx/nginx.conf tiangolo/nginx-rtmp
.
nginx-rtmp in its push mode doesn't play very nicely with joy4. I believe this to be because joy4 signals its chunk size as 128mb, which exceeds the 10mb limit hardcoded in nginx-rtmp; nginx-rtmp shuts down the connection in response.
I don't know the full implications of this change, but here's @j0sh's comment from an internal Livepeer repo: