Guest User

Untitled

a guest
May 15th, 2017
51
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. load_module /usr/local/libexec/nginx/ngx_mail_module.so;
  2. load_module /usr/local/libexec/nginx/ngx_stream_module.so;
  3.  
  4. worker_processes 1;
  5.  
  6. error_log /var/log/nginx/error.log;
  7.  
  8. events {
  9. worker_connections 1024;
  10. }
  11.  
  12. rtmp {
  13.  
  14. exec_static /usr/local/bin/ffmpeg -rtsp_transport tcp -i rtsp://shitty.cam:1028/ONVIF/channel3 -vcodec copy -f flv -r 10 -s 640x480 -an rtmp://my.public.ip/live/cam1;
  15.  
  16. server {
  17. listen 1935;
  18.  
  19. application live {
  20. live on;
  21. hls on;
  22. hls_path /tmp/hls;
  23. hls_fragment 10s;
  24. hls_playlist_length 20s;
  25. hls_base_url http://my.public.ip:1953/hls;
  26. allow play all;
  27. wait_key on;
  28. wait_video
  29. }
  30. }
  31. }
  32.  
  33. http {
  34. include mime.types;
  35. default_type application/octet-stream;
  36. sendfile on;
  37.  
  38. server {
  39. server_name my.public.ip;
  40. listen 1953;
  41.  
  42. location /hls {
  43. root /tmp;
  44. add_header Cache-Control no-cache;
  45. add_header Access-Control-Allow-Origin *;
  46. types {
  47. application/vnd.apple.mpegurl m3u8;
  48. video/mp2t ts;
  49. }
  50. }
  51.  
  52. }
  53. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×