livekit / ingress

Ingest streams (RTMP/WHIP) or files (HLS, MP4) to LiveKit WebRTC
Apache License 2.0
66 stars 24 forks source link

Using an NGINX RTMP Module #120

Closed Lyx52 closed 1 year ago

Lyx52 commented 1 year ago

Hi I have a configuration question it seems my configuration dosnt work, I have an RTMP nginx server setup and im pushing streams from external devices to the server then pushing them to ingress server with address 1936 but it dosnt seem to be working,

This is my

rtmp {
        server {
                listen 1935;
                chunk_size 4096;
                # Todo only allow external publishing from specific IPs
                allow publish all;

                application stream {
                        live on;
                        record off;
                        # Push to internal ingress RTMP server
                        push rtmp://127.0.0.1:1936/live/$name;
                        allow play 127.0.0.1;
                }
        }
}

And this is my base url in livekit server config

ingress:
  rtmp_base_url: "rtmp://example.com:1935/stream"

And my ingress config

cpu_cost:
  rtmp_cpu_cost: 2.0
log_level: debug
rtmp_port: 1936
http_relay_port: 9090

From external devices I push to rtmp://example.com:1935/stream using ingress streamkey