arut / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
13.46k stars 3.52k forks source link

worker_processes problems #513

Open savskii opened 10 years ago

savskii commented 10 years ago

Hello,

I have 8 cores on my Ubuntu pc and if i use worker_processes 1; i can see all streams in http://127:0:0:1:10001 and the output in HLS and RTMP works ok but high CPU usage

If i change worker_processes to anything above 1 i can see any pulled or published streams and the HLS streams work but the RTMP streams dont work

Any idea where i could be going wrong?

Thanks

ubuntuaddicted commented 9 years ago

post your nginx.conf as well as the log filess. here's mine for reference but mine is only for pushing another rtmp stream to multiple services like hitbox and twitch

user nobody;

worker_processes 1;

error_log logs/error.log; error_log logs/error.log debug; error_log logs/error.log notice; error_log logs/error.log info;

pid logs/nginx.pid;

events { worker_connections 1024; }

rtmp { server { listen 1935; chunk_size 8192;

            application live {
                    live on;
                    record off;
                    push rtmp://live-dfw.twitch.tv/app/STREAMKEY;
                    push rtmp://live.den.hitbox.tv/push/STREAMKEY;
            }
    }

}

ericb-summit commented 2 years ago

FYI if others having this issue, it's probably missing

rtmp_auto_push on