Statistics
| Branch: | Revision:

janus-gateway / conf / janus.plugin.streaming.cfg.sample.in @ 71a04f89

History | View | Annotate | Download (4.04 KB)

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
; audioport = local port for receiving audio frames
23
; audiomcast = multicast group port for receiving audio frames, if any
24
; audiocodec = <audio RTP payload type> (e.g., 111)
25
; audiortpmap = RTP map of the audio codec (e.g., opus/48000/2)
26
; videoport = local port for receiving video frames
27
; videomcast = multicast group port for receiving video frames, if any
28
; videocodec = <video RTP payload type> (e.g., 100)
29
; videortpmap = RTP map of the video codec (e.g., VP8/90000)
30
; videobufferkf = yes|no (whether the plugin should store the latest
31
;		keyframe and send it immediately for new viewers, EXPERIMENTAL)
32
; url = RTSP stream URL (only for restreaming RTSP)
33
;
34
; To test the [gstreamer-sample] example, check the test_gstreamer.sh
35
; script in the plugins/streams folder. To test the live and on-demand
36
; audio file streams, instead, the install.sh installation script
37
; automatically downloads a couple of files (radio.alaw, music.mulaw)
38
; to the plugins/streams folder. 
39

    
40
[general]
41
;admin_key = supersecret		; If set, mountpoints can be created via API
42
								; only if this key is provided in the request
43
;events = no					; Whether events should be sent to event
44
								; handlers (default is yes)
45

    
46
[gstreamer-sample]
47
type = rtp
48
id = 1
49
description = Opus/VP8 live stream coming from gstreamer
50
audio = yes
51
video = yes
52
audioport = 5002
53
audiopt = 111
54
audiortpmap = opus/48000/2
55
videoport = 5004
56
videopt = 100
57
videortpmap = VP8/90000
58
secret = adminpwd
59

    
60
[file-live-sample]
61
type = live
62
id = 2
63
description = a-law file source (radio broadcast)
64
filename = @streamdir@/radio.alaw		; See install.sh
65
audio = yes
66
video = no
67
secret = adminpwd
68

    
69
[file-ondemand-sample]
70
type = ondemand
71
id = 3
72
description = mu-law file source (music)
73
filename = @streamdir@/music.mulaw	; See install.sh
74
audio = yes
75
video = no
76
secret = adminpwd
77

    
78
;
79
; Firefox Nightly supports H.264 through Cisco's OpenH264 plugin. The only
80
; supported profile is the baseline one. This is an example of how to create
81
; a H.264 mountpoint: you can feed it an x264enc+rtph264pay pipeline in
82
; gstreamer.
83
;
84
;[h264-sample]
85
;type = rtp
86
;id = 10
87
;description = H.264 live stream coming from gstreamer
88
;audio = no
89
;video = yes
90
;videoport = 8004
91
;videopt = 126
92
;videortpmap = H264/90000
93
;videofmtp = profile-level-id=42e01f\;packetization-mode=1
94

    
95
;
96
; This is a sample configuration for Opus/VP8 multicast streams
97
;
98
;[gstreamer-multicast]
99
;type = rtp
100
;id = 20
101
;description = Opus/VP8 live multicast stream coming from gstreamer 
102
;audio = yes
103
;video = yes
104
;audioport = 5002
105
;audiomcast = 232.3.4.5
106
;audiopt = 111
107
;audiortpmap = opus/48000/2
108
;videoport = 5004
109
;videomcast = 232.3.4.5
110
;videopt = 100
111
;videortpmap = VP8/90000
112

    
113
;
114
; This is a sample configuration for an RTSP stream
115
; NOTE WELL: the plugin does NOT transcode, so the RTSP stream MUST be
116
; in a format the browser can digest (e.g., VP8 or H.264 for video)
117
;
118
;[rtsp-test]
119
;type = rtsp
120
;id = 99
121
;description = RTSP Test
122
;audio = no
123
;video = yes
124
;url=rtsp://127.0.0.1:8554/unicast