transcode2hls.audio.only.conf 819 B

1234567891011121314151617181920212223242526272829
  1. # the config for srs to delivery hls
  2. # @see https://github.com/simple-rtmp-server/srs/wiki/v1_CN_SampleHLS
  3. # @see full.conf for detail config.
  4. listen 1935;
  5. max_connections 1000;
  6. vhost __defaultVhost__ {
  7. hls {
  8. enabled on;
  9. hls_path ./objs/nginx/html;
  10. hls_fragment 10;
  11. hls_window 60;
  12. }
  13. transcode {
  14. enabled on;
  15. ffmpeg ./objs/ffmpeg/bin/ffmpeg;
  16. engine ff {
  17. enabled on;
  18. vcodec copy;
  19. acodec libaacplus;
  20. abitrate 45;
  21. asample_rate 44100;
  22. achannels 2;
  23. aparams {
  24. }
  25. output rtmp://127.0.0.1:[port]/[app]?vhost=[vhost]/[stream]_[engine];
  26. }
  27. }
  28. }