clion-ingest.conf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. listen 1935;
  2. max_connections 1000;
  3. daemon off;
  4. srs_log_tank console;
  5. http_server {
  6. enabled on;
  7. listen 8080;
  8. dir ./objs/nginx/html;
  9. }
  10. http_api {
  11. enabled on;
  12. listen 8080;
  13. }
  14. stats {
  15. network 0;
  16. }
  17. rtc_server {
  18. enabled on;
  19. # Listen at udp://8000
  20. listen 8000;
  21. #
  22. # The $CANDIDATE means fetch from env, if not configed, use * as default.
  23. #
  24. # The * means retrieving server IP automatically, from all network interfaces,
  25. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
  26. candidate $CANDIDATE;
  27. }
  28. vhost __defaultVhost__ {
  29. rtc {
  30. enabled on;
  31. }
  32. http_remux {
  33. enabled on;
  34. mount [vhost]/[app]/[stream].flv;
  35. }
  36. ingest livestream {
  37. enabled on;
  38. input {
  39. type file;
  40. url ./doc/source.200kbps.768x320.flv;
  41. }
  42. ffmpeg ./objs/ffmpeg/bin/ffmpeg;
  43. engine {
  44. enabled off;
  45. output rtmp://127.0.0.1:[port]/live/livestream;
  46. }
  47. }
  48. }