ingest.conf 630 B

12345678910111213141516171819202122
  1. # use ffmpeg to ingest file/stream/device to SRS
  2. # @see https://github.com/ossrs/srs/wiki/v1_CN_SampleIngest
  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. ingest livestream {
  10. enabled on;
  11. input {
  12. type file;
  13. url ./doc/source.200kbps.768x320.flv;
  14. }
  15. ffmpeg ./objs/ffmpeg/bin/ffmpeg;
  16. engine {
  17. enabled off;
  18. output rtmp://127.0.0.1:[port]/live?vhost=[vhost]/livestream;
  19. }
  20. }
  21. }