2
0

transcode2hls.audio.only.conf 857 B

123456789101112131415161718192021222324252627282930
  1. # the config for srs to delivery hls
  2. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/sample-hls
  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. hls {
  10. enabled on;
  11. hls_fragment 10;
  12. hls_window 60;
  13. hls_path ./objs/nginx/html;
  14. hls_m3u8_file [app]/[stream].m3u8;
  15. hls_ts_file [app]/[stream]-[seq].ts;
  16. }
  17. transcode {
  18. enabled on;
  19. ffmpeg ./objs/ffmpeg/bin/ffmpeg;
  20. engine ff {
  21. enabled on;
  22. vcodec copy;
  23. acodec libfdk_aac;
  24. aparams {
  25. }
  26. output rtmp://127.0.0.1:[port]/[app]?vhost=[vhost]/[stream]_[engine];
  27. }
  28. }
  29. }