ingest.rtsp.conf 740 B

1234567891011121314151617181920212223242526
  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. vhost __defaultVhost__ {
  7. ingest {
  8. enabled on;
  9. input {
  10. type stream;
  11. url rtsp://admin:12345678@192.168.2.21:554/Streaming/Channels/501?transportmode=unicast;
  12. }
  13. ffmpeg ./objs/ffmpeg/bin/ffmpeg;
  14. engine {
  15. enabled on;
  16. perfile {
  17. rtsp_transport tcp;
  18. }
  19. vcodec copy;
  20. acodec copy;
  21. output rtmp://127.0.0.1:[port]/live?vhost=[vhost]/livestream;
  22. }
  23. }
  24. }