2
0

mac.dev.conf 907 B

123456789101112131415161718192021222324252627282930313233343536
  1. # no-daemon and write log to console config for srs.
  2. # @see full.conf for detail config.
  3. listen 1935;
  4. max_connections 1000;
  5. daemon off;
  6. srs_log_tank console;
  7. http_api {
  8. enabled on;
  9. listen 1985;
  10. }
  11. http_server {
  12. enabled on;
  13. listen 8080;
  14. }
  15. vhost __defaultVhost__ {
  16. hls {
  17. enabled on;
  18. hls_fragment 10;
  19. hls_window 60;
  20. hls_path ./objs/nginx/html;
  21. }
  22. ingest livestream {
  23. enabled on;
  24. input {
  25. type file;
  26. url ./doc/source.200kbps.768x320.flv;
  27. }
  28. #ffmpeg ./objs/ffmpeg/bin/ffmpeg;
  29. ffmpeg ./objs/research/librtmp/srs_ingest_flv;
  30. engine {
  31. enabled off;
  32. output rtmp://127.0.0.1:[port]/live?vhost=[vhost]/livestream;
  33. }
  34. }
  35. }