2
0

push.mpegts.over.udp.conf 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # push MPEG-TS over UDP to SRS.
  2. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/streamer#push-mpeg-ts-over-udp
  3. # @see https://github.com/ossrs/srs/issues/250#issuecomment-72321769
  4. # @see full.conf for detail config.
  5. listen 1935;
  6. max_connections 1000;
  7. daemon off;
  8. srs_log_tank console;
  9. stream_caster {
  10. enabled on;
  11. caster mpegts_over_udp;
  12. output rtmp://127.0.0.1/live/livestream;
  13. listen 8935;
  14. }
  15. http_server {
  16. enabled on;
  17. listen 8080;
  18. dir ./objs/nginx/html;
  19. }
  20. http_api {
  21. enabled on;
  22. listen 1985;
  23. }
  24. rtc_server {
  25. enabled on;
  26. listen 8000; # UDP port
  27. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
  28. candidate $CANDIDATE;
  29. }
  30. vhost __defaultVhost__ {
  31. rtc {
  32. enabled on;
  33. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
  34. rtmp_to_rtc on;
  35. # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
  36. rtc_to_rtmp on;
  37. }
  38. http_remux {
  39. enabled on;
  40. mount [vhost]/[app]/[stream].flv;
  41. }
  42. hls {
  43. enabled on;
  44. }
  45. }