arut / nginx-rtmp-module

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

rtmp auto push #773

Open wired420 opened 8 years ago

wired420 commented 8 years ago

rtmp_auto_push on;

Option causes an exit with Signal 11 on push attempt in the newest nginx 1.9.12.

Without it, if you have threading enabled only one person can view/hear stream.

2016/03/09 18:16:27 [notice] 6128#0: start worker process 6160 2016/03/09 18:16:34 [info] 6130#0: 1 client connected 'x.x.x.x' 2016/03/09 18:16:34 [info] 6130#0: 1 connect: app='select' args='' flashver='FMLE/3.0 (compatible; FMSc/1.0)' swf_url='https://stream.rootswitch.com/select' tc_url='https://stream.rootswitch.com/select' page_url='' acodecs=0 vcodecs=0 $ 2016/03/09 18:16:34 [info] 6130#0: 1 createStream, client: x.x.x.x, server: 0.0.0.0:1935 2016/03/09 18:16:34 [info] 6130#0: 1 publish: name='www' args='' type=live silent=0, client: x.x.x.x, server: 0.0.0.0:1935 2016/03/09 18:16:34 [notice] 6128#0: signal 17 (SIGCHLD) received 2016/03/09 18:16:34 [alert] 6128#0: worker process 6130 exited on signal 11 2016/03/09 18:16:34 [notice] 6128#0: start worker process 6161

salemgolemugoo commented 8 years ago

This module can't work with nginx 1.9.2 (dynamical modules support). See here #782

zoring commented 8 years ago

I have the same problem ,Does it work in 1.10.1?

ghost commented 7 years ago

Any news on this? I'm using nginx 1.10.3 and it looks like rtmp_auto_push is not working. :(

hallaj commented 7 years ago

Guys, is this still an issue? I've tried compiling it with nginx 1.11.2 and it would seem that it's working? Below are the sample config. Could someone see if I missed something?

worker_processes auto;

events {
  worker_connections 1024;
}

http {
  include       mime.types;
  default_type  application/octet-stream;

  sendfile        on;
  keepalive_timeout  65;

  server {
    listen       80;
    server_name  localhost;

    location / {
      root   html;
      index  index.html index.htm;
    }

    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
      root   html;
    }

    location /stat {
      rtmp_stat all;
    }
  }
}

rtmp_auto_push on;
rtmp_auto_push_reconnect 1s;

rtmp {
  server {
    listen 1935;

    application live1 {
      live on;
      pull rtmp://<source>;
    }

    application live2 {
      live on;
      pull rtmp://<source>;
    }

    application live3 {
      live on;
    }

    application pushlive {
      live on;
      push rtmp://127.0.0.1/live3;
    }

    application live4 {
      live on;
      exec_pull ffmpeg -re -i http://<source> -c copy -f flv rtmp://127.0.0.1/$app;
    }
  }
}
wired420 commented 7 years ago

Auto push will cause hangs if multiple users attempt to view the stream at once. Also if you use the hls configuration you can embed your flash stream in a html 5 container and run your website without the need for special activation of flash.

On Jun 7, 2017 10:39 PM, "Muhammad Hallaj Subery" notifications@github.com wrote:

Guys, is this still an issue? I've tried compiling it with nginx 1.11.2 and it would seem that it's working? Below are the sample config. Could someone see if I missed something?

worker_processes auto;

events { worker_connections 1024; }

http { include mime.types; default_type application/octet-stream;

sendfile on; keepalive_timeout 65;

server { listen 80; server_name localhost;

location / {
  root   html;
  index  index.html index.htm;
}

error_page   500 502 503 504  /50x.html;
location = /50x.html {
  root   html;
}

location /stat {
  rtmp_stat all;
}

} }

rtmp_auto_push on; rtmp_auto_push_reconnect 1s;

rtmp { server { listen 1935;

application live1 {
  live on;
  pull rtmp://<source>;
}

application live2 {
  live on;
  pull rtmp://<source>;
}

application live3 {
  live on;
}

application pushlive {
  live on;
  push rtmp://127.0.0.1/live3;
}

application live4 {
  live on;
  exec_pull ffmpeg -re -i http://<source> -c copy -f flv rtmp://127.0.0.1/$app;
}

} }

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/arut/nginx-rtmp-module/issues/773#issuecomment-306981826, or mute the thread https://github.com/notifications/unsubscribe-auth/AGHaRYMJFA9cJ8GGTuJzC0Hl5v-nbyQsks5sB17HgaJpZM4HtQc6 .