Advertisement
Guest User

Untitled

a guest
Dec 17th, 2014
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. #user nobody;
  2. worker_processes 8;
  3.  
  4. error_log logs/rtmp_error.log debug;
  5. pid logs/nginx.pid;
  6.  
  7. events {
  8. worker_connections 1024;
  9. }
  10.  
  11. http {
  12. allow all;
  13. deny all;
  14.  
  15. access_log logs/rtmp_access.log;
  16. include mime.types;
  17. default_type application/octet-stream;
  18. sendfile on;
  19. keepalive_timeout 65;
  20.  
  21. server {
  22. listen 80;
  23. server_name localhost;
  24.  
  25. # rtmp stat
  26. location /stat {
  27. rtmp_stat all;
  28. rtmp_stat_stylesheet stat.xsl;
  29. }
  30.  
  31. location /stat.xsl {
  32. # you can move stat.xsl to a different location
  33. root html;
  34. }
  35.  
  36. error_page 500 502 503 504 /50x.html;
  37. location = /50x.html {
  38. root html;
  39. }
  40. }
  41. }
  42.  
  43. rtmp {
  44. server {
  45. listen 1935;
  46. chunk_size 4096;
  47. #publish_time_fix on;
  48. #publish_time_fix2 on;
  49.  
  50. # Transcoding
  51. application big {
  52. live on;
  53. record off;
  54. exec ffmpeg -i rtmp://localhost/big/1080p -vcodec libx264 -preset fast -x264opts nal-hrd=cbr:force-cfr=1:keyint=60 -b:v 3500k -maxrate 3500k -bufsize 3500k -s 1280x720 -sws_flags lanczos -r 30 -acodec copy -f flv rtmp://localhost/small/720p
  55. }
  56.  
  57. application small {
  58. live on;
  59. record off;
  60. interleave on;
  61. meta on;
  62. publish_notify on;
  63. wait_key on;
  64. wait_video on;
  65. push rtmp://live-arn.justin.tv/app/<key>; #<stream1>
  66. # push rtmp://live-arn.justin.tv/app/<key>; #<teststream1>
  67. }
  68. }
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement