ingest.rtsp.conf 795 B

12345678910111213141516171819202122232425262728
  1. # use ffmpeg to ingest file/stream/device to SRS
  2. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/sample-ingest
  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 {
  10. enabled on;
  11. input {
  12. type stream;
  13. url rtsp://admin:12345678@192.168.2.21:554/Streaming/Channels/501?transportmode=unicast;
  14. }
  15. ffmpeg ./objs/ffmpeg/bin/ffmpeg;
  16. engine {
  17. enabled on;
  18. perfile {
  19. rtsp_transport tcp;
  20. }
  21. vcodec copy;
  22. acodec copy;
  23. output rtmp://127.0.0.1:[port]/live?vhost=[vhost]/livestream;
  24. }
  25. }
  26. }