ffmpeg.transcode.conf 807 B

1234567891011121314151617181920212223242526272829
  1. # the config for srs use ffmpeg to transcode
  2. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/sample-ffmpeg
  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. transcode {
  10. enabled on;
  11. ffmpeg ./objs/ffmpeg/bin/ffmpeg;
  12. engine ff {
  13. enabled on;
  14. vfilter {
  15. }
  16. vcodec libx264;
  17. vthreads 4;
  18. vprofile main;
  19. vpreset medium;
  20. vparams {
  21. }
  22. acodec libfdk_aac;
  23. aparams {
  24. }
  25. output rtmp://127.0.0.1:[port]/[app]?vhost=[vhost]/[stream]_[engine];
  26. }
  27. }
  28. }