Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2018
655
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; [stream-name]
  2. ; type = rtp|live|ondemand|rtsp
  3. ;        rtp = stream originated by an external tool (e.g., gstreamer or
  4. ;              ffmpeg) and sent to the plugin via RTP
  5. ;        live = local file streamed live to multiple listeners
  6. ;               (multiple listeners = same streaming context)
  7. ;        ondemand = local file streamed on-demand to a single listener
  8. ;                   (multiple listeners = different streaming contexts)
  9. ;        rtsp = stream originated by an external RTSP feed (only
  10. ;               available if libcurl support was compiled)
  11. ; id = <unique numeric ID> (if missing, a random one will be generated)
  12. ; description = This is my awesome stream
  13. ; is_private = yes|no (private streams don't appear when you do a 'list'
  14. ;           request)
  15. ; secret = <optional password needed for manipulating (e.g., destroying
  16. ;           or enabling/disabling) the stream>
  17. ; pin = <optional password needed for watching the stream>
  18. ; filename = path to the local file to stream (only for live/ondemand)
  19. ; audio = yes|no (do/don't stream audio)
  20. ; video = yes|no (do/don't stream video)
  21. ;    The following options are only valid for the 'rtp' type:
  22. ; data = yes|no (do/don't stream text via datachannels)
  23. ; audioport = local port for receiving audio frames
  24. ; audiomcast = multicast group port for receiving audio frames, if any
  25. ; audioiface = network interface or IP address to bind to, if any (binds to all otherwise)
  26. ; audiopt = <audio RTP payload type> (e.g., 111)
  27. ; audiortpmap = RTP map of the audio codec (e.g., opus/48000/2)
  28. ; audioskew = yes|no (whether the plugin should perform skew
  29. ;       analisys and compensation on incoming audio RTP stream, EXPERIMENTAL)
  30. ; videoport = local port for receiving video frames
  31. ; videomcast = multicast group port for receiving video frames, if any
  32. ; videoiface = network interface or IP address to bind to, if any (binds to all otherwise)
  33. ; videopt = <video RTP payload type> (e.g., 100)
  34. ; videortpmap = RTP map of the video codec (e.g., VP8/90000)
  35. ; videobufferkf = yes|no (whether the plugin should store the latest
  36. ;       keyframe and send it immediately for new viewers, EXPERIMENTAL)
  37. ; videosimulcast = yes|no (do|don't enable video simulcasting)
  38. ; videoport2 = second local port for receiving video frames (only for rtp, and simulcasting)
  39. ; videoport3 = third local port for receiving video frames (only for rtp, and simulcasting)
  40. ; videoskew = yes|no (whether the plugin should perform skew
  41. ;       analisys and compensation on incoming video RTP stream, EXPERIMENTAL)
  42. ; collision = in case of collision (more than one SSRC hitting the same port), the plugin
  43. ;       will discard incoming RTP packets with a new SSRC unless this many milliseconds
  44. ;       passed, which would then change the current SSRC (0=disabled)
  45. ; dataport = local port for receiving data messages to relay
  46. ; dataiface = network interface or IP address to bind to, if any (binds to all otherwise)
  47. ; databuffermsg = yes|no (whether the plugin should store the latest
  48. ;       message and send it immediately for new viewers)
  49. ;
  50. ; In case you want to use SRTP for your RTP-based mountpoint, you'll need
  51. ; to configure the SRTP-related properties as well, namely the suite to
  52. ; use for hashing (32 or 80) and the crypto information for decrypting
  53. ; the stream (as a base64 encoded string the way SDES does it). Notice
  54. ; that with SRTP involved you'll have to pay extra attention to what you
  55. ; feed the mountpoint, as you may risk getting SRTP decrypt errors:
  56. ; srtpsuite = 32
  57. ; srtpcrypto = WbTBosdVUZqEb6Htqhn+m3z7wUh4RJVR8nE15GbN
  58. ;
  59. ; The following options are only valid for the 'rstp' type:
  60. ; url = RTSP stream URL
  61. ; rtsp_user = RTSP authorization username, if needed
  62. ; rtsp_pwd = RTSP authorization password, if needed
  63. ; rtsp_failcheck = whether an error should be returned if connecting to the RTSP server fails (default=yes)
  64. ; rtspiface = network interface or IP address to bind to, if any (binds to all otherwise), when receiving RTSP streams
  65. ;
  66. ; Notice that, for 'rtsp' mountpoints, normally the plugin uses the exact
  67. ; SDP rtpmap and fmtp attributes the remote camera or RTSP server sent.
  68. ; In case the values set remotely are known to conflict with WebRTC viewers,
  69. ; you can override both using the settings introduced above.
  70. ;
  71. ; To test the [gstreamer-sample] example, check the test_gstreamer.sh
  72. ; script in the plugins/streams folder. To test the live and on-demand
  73. ; audio file streams, instead, the install.sh installation script
  74. ; automatically downloads a couple of files (radio.alaw, music.mulaw)
  75. ; to the plugins/streams folder.
  76.  
  77. [general]
  78. ;admin_key = supersecret        ; If set, mountpoints can be created via API
  79.                                 ; only if this key is provided in the request
  80. ;events = no                    ; Whether events should be sent to event
  81.                                 ; handlers (default is yes)
  82.  
  83. [gstreamer-sample]
  84. type = rtp
  85. id = 1
  86. description = Opus/VP8 live stream coming from gstreamer
  87. audio = no
  88. video = yes
  89. #audioport = 5002
  90. #audiopt = 111
  91. #audiortpmap = opus/48000/2
  92. videoport = 5004
  93. videopt = 100
  94. videortpmap = VP8/90000
  95. #secret = adminpwd
  96.  
  97. [file-live-sample]
  98. type = live
  99. id = 2
  100. description = a-law file source (radio broadcast)
  101. filename = /opt/janus/share/janus/streams/radio.alaw        ; See install.sh
  102. audio = yes
  103. video = no
  104. secret = adminpwd
  105.  
  106. [file-ondemand-sample]
  107. type = ondemand
  108. id = 3
  109. description = mu-law file source (music)
  110. filename = /opt/janus/share/janus/streams/music.mulaw   ; See install.sh
  111. audio = yes
  112. video = no
  113. secret = adminpwd
  114.  
  115. ;
  116. ; Firefox Nightly supports H.264 through Cisco's OpenH264 plugin. The only
  117. ; supported profile is the baseline one. This is an example of how to create
  118. ; a H.264 mountpoint: you can feed it an x264enc+rtph264pay pipeline in
  119. ; gstreamer.
  120. ;
  121. ;[h264-sample]
  122. ;type = rtp
  123. ;id = 10
  124. ;description = H.264 live stream coming from gstreamer
  125. ;audio = no
  126. ;video = yes
  127. ;videoport = 8004
  128. ;videopt = 126
  129. ;videortpmap = H264/90000
  130. ;videofmtp = profile-level-id=42e01f\;packetization-mode=1
  131.  
  132. ;
  133. ; This is a sample configuration for Opus/VP8 multicast streams
  134. ;
  135. ;[gstreamer-multicast]
  136. ;type = rtp
  137. ;id = 20
  138. ;description = Opus/VP8 live multicast stream coming from gstreamer
  139. ;audio = yes
  140. ;video = yes
  141. ;audioport = 5002
  142. ;audiomcast = 232.3.4.5
  143. ;audiopt = 111
  144. ;audiortpmap = opus/48000/2
  145. ;videoport = 5004
  146. ;videomcast = 232.3.4.5
  147. ;videopt = 100
  148. ;videortpmap = VP8/90000
  149.  
  150. ;
  151. ; This is a sample configuration for an RTSP stream: you can specify
  152. ; the url to connect to and whether or not authentication is needed
  153. ; using the url/rtsp_user/rtsp_pwd settings (but notice that digest
  154. ; authentication will only work if you installed libcurl >= 7.45.0)
  155. ; NOTE WELL: the plugin does NOT transcode, so the RTSP stream MUST be
  156. ; in a format the browser can digest (e.g., VP8 or H.264 baseline for video)
  157. ; Again, you can override rtpmap and/or fmtp, if needed
  158. ;
  159. ;[rtsp-test]
  160. ;type = rtsp
  161. ;id = 99
  162. ;description = RTSP Test
  163. ;audio = no
  164. ;video = yes
  165. ;url=rtsp://127.0.0.1:8554/unicast
  166. ;rtsp_user=username
  167. ;rtsp_pwd=password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement