2
0

push.gb28181.conf 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. # Deprecated config, moved to sip.candidate, see gb28181.conf
  11. # @see https://ossrs.net/lts/zh-cn/docs/v5/doc/gb28181#config-candidate
  12. host $CANDIDATE;
  13. sip {
  14. enabled on;
  15. listen 5060;
  16. }
  17. }
  18. http_server {
  19. enabled on;
  20. listen 8080;
  21. dir ./objs/nginx/html;
  22. }
  23. http_api {
  24. enabled on;
  25. listen 1985;
  26. }
  27. stats {
  28. network 0;
  29. }
  30. rtc_server {
  31. enabled on;
  32. listen 8000; # UDP port
  33. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
  34. candidate $CANDIDATE;
  35. }
  36. vhost __defaultVhost__ {
  37. rtc {
  38. enabled on;
  39. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
  40. rtmp_to_rtc on;
  41. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
  42. rtc_to_rtmp on;
  43. }
  44. http_remux {
  45. enabled on;
  46. mount [vhost]/[app]/[stream].flv;
  47. }
  48. hls {
  49. enabled on;
  50. }
  51. }