rtmp.conf 706 B

1234567891011121314151617181920212223242526272829
  1. rtmp {
  2. server {
  3. ping 5s;
  4. listen 1935;
  5. chunk_size 4096;
  6. notify_method get;
  7. publish_notify on;
  8. application live {
  9. live on;
  10. on_publish http://localhost:8999/auth;
  11. idle_streams off;
  12. drop_idle_publisher 10s;
  13. push rtmp://localhost/twitch;
  14. push rtmp://localhost/youtube;
  15. include /etc/nginx/rtmp-recordings.conf;
  16. exec_publish bash -c "/etc/nginx/publish_start.sh '${name}' '${path}' '${basename}'";
  17. exec_publish_done bash -c "/etc/nginx/publish_done.sh '${name}' '${path}' '${basename}'";
  18. exec_record_done bash -c "/etc/nginx/record_done.sh '${name}' '${path}' '${basename}'";
  19. }
  20. include /etc/nginx/rtmp-twitch.conf;
  21. include /etc/nginx/rtmp-youtube.conf;
  22. }
  23. }