gb28181.conf 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. listen 1935;
  2. max_connections 1000;
  3. daemon off;
  4. srs_log_tank console;
  5. stream_caster {
  6. enabled on;
  7. caster gb28181;
  8. output rtmp://127.0.0.1/live/[stream];
  9. listen 9000;
  10. sip {
  11. enabled on;
  12. listen 5060;
  13. # @see https://ossrs.net/lts/zh-cn/docs/v5/doc/gb28181#config-candidate
  14. candidate $CANDIDATE;
  15. }
  16. }
  17. http_server {
  18. enabled on;
  19. listen 8080;
  20. dir ./objs/nginx/html;
  21. }
  22. http_api {
  23. enabled on;
  24. listen 1985;
  25. }
  26. stats {
  27. network 0;
  28. }
  29. rtc_server {
  30. enabled on;
  31. listen 8000; # UDP port
  32. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
  33. candidate $CANDIDATE;
  34. }
  35. vhost __defaultVhost__ {
  36. rtc {
  37. enabled on;
  38. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
  39. rtmp_to_rtc on;
  40. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
  41. rtc_to_rtmp on;
  42. }
  43. http_remux {
  44. enabled on;
  45. mount [vhost]/[app]/[stream].flv;
  46. }
  47. hls {
  48. enabled on;
  49. }
  50. }