transform.edge.conf 820 B

12345678910111213141516171819202122232425262728293031
  1. # the config for srs origin-edge cluster
  2. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/edge#transform-vhost
  3. # @see full.conf for detail config.
  4. listen 1935;
  5. max_connections 1000;
  6. daemon off;
  7. srs_log_tank console;
  8. vhost __defaultVhost__ {
  9. }
  10. vhost source.srs.com {
  11. ingest livestream {
  12. enabled on;
  13. input {
  14. type file;
  15. url ./doc/source.200kbps.768x320.flv;
  16. }
  17. ffmpeg ./objs/ffmpeg/bin/ffmpeg;
  18. engine {
  19. enabled off;
  20. output rtmp://127.0.0.1:[port]/live/livestream?vhost=[vhost];
  21. }
  22. }
  23. }
  24. vhost transform.srs.edge.com {
  25. cluster {
  26. mode remote;
  27. origin 127.0.0.1:1935;
  28. vhost source.srs.com;
  29. }
  30. }