2
0

srt2ts.conf 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. listen 1935;
  2. max_connections 1000;
  3. daemon off;
  4. srs_log_tank console;
  5. http_api {
  6. enabled on;
  7. listen 1985;
  8. }
  9. http_server {
  10. enabled on;
  11. listen 8080;
  12. dir ./objs/nginx/html;
  13. }
  14. srt_server {
  15. enabled on;
  16. listen 10080;
  17. maxbw 1000000000;
  18. connect_timeout 4000;
  19. peerlatency 0;
  20. recvlatency 0;
  21. }
  22. rtc_server {
  23. enabled on;
  24. # Listen at udp://8000
  25. listen 8000;
  26. #
  27. # The $CANDIDATE means fetch from env, if not configed, use * as default.
  28. #
  29. # The * means retrieving server IP automatically, from all network interfaces,
  30. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
  31. candidate $CANDIDATE;
  32. }
  33. # @doc https://github.com/ossrs/srs/issues/1147#issuecomment-577607026
  34. vhost __defaultVhost__ {
  35. srt {
  36. enabled on;
  37. }
  38. rtc {
  39. enabled on;
  40. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
  41. rtmp_to_rtc on;
  42. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
  43. rtc_to_rtmp on;
  44. }
  45. http_remux {
  46. enabled on;
  47. mount [vhost]/[app]/[stream].ts;
  48. }
  49. }