Statistics
| Branch: | Revision:

ffmpeg / tests / ffserver.conf @ c676895f

History | View | Annotate | Download (4.59 KB)

1
#
2
# This is a test configuration file. You can invoke it with
3
# ../ffserver -f ffserver.conf
4
# when in the tests directory and once the vsynth1 subdirectory
5
# has been populated. Then point your browser at http://whatever:9999/teststat.html
6
# and you can look at the streams
7
#
8

    
9
#
10
# Port on which the server is listening. You must select a different
11
# port from your standard http web server if it is running on the same
12
# computer.
13

    
14
Port 9999
15
RTSPPort 9990
16

    
17
# Address on which the server is bound. Only useful if you have
18
# several network interfaces.
19

    
20
BindAddress 0.0.0.0
21

    
22
# Number of simultaneous requests that can be handled. Since FFServer
23
# is very fast, this limit is determined mainly by your Internet
24
# connection speed.
25

    
26
MaxClients 1000
27

    
28
MaxBandwidth 100000
29

    
30
# Access Log file (uses standard Apache log file format)
31
# '-' is the standard output
32

    
33
CustomLog -
34

    
35
##################################################################
36
# Definition of the live feeds. Each live feed contains one video
37
# and/or audio sequence coming from an ffmpeg encoder or another
38
# ffserver. This sequence may be encoded simultaneously with several
39
# codecs at several resolutions.
40

    
41
<Feed feed1.ffm>
42

    
43
# You must use 'ffmpeg' to send a live feed to ffserver. In this
44
# example, you can type:
45
#
46
# ffmpeg http://localhost:8090/feed1.ffm
47

    
48
# ffserver can also do time shifting. It means that it can stream any
49
# previously recorded live stream. The request should contain:
50
# "http://xxxx?date=[YYYY-MM-DDT][[HH:]MM:]SS[.m...]".You must specify
51
# a path where the feed is stored on disk. You also specify the
52
# maximum size of the feed (100M bytes here). Default:
53
# File=/tmp/feed_name.ffm FileMaxSize=5M
54

    
55
File tests/feed1.ffm
56
FileMaxSize 100M
57

    
58
# Fire up ffmpeg pointing at this stream
59

    
60
Launch ./ffmpeg -v 0 -y -f pgmyuv -i tests/vsynth1/%02d.pgm
61

    
62
ACL allow localhost
63
</Feed>
64

    
65
##################################################################
66
# Now you can define each stream which will be generated from the
67
# original audio and video stream. Each format has a filename (here
68
# 'test128.mpg'). FFServer will send this stream when answering a
69
# request containing this filename.
70

    
71
<Stream test_h.avi>
72
Feed feed1.ffm
73
Format avi
74
#
75
BitExact
76
DctFastint
77
IdctSimple
78
VideoFrameRate 10
79
VideoSize 352x288
80
VideoBitRate 100
81
VideoGopSize 30
82
NoAudio
83

    
84
PreRoll 10
85
StartSendOnKey
86
MaxTime 100
87

    
88
</Stream>
89

    
90
<Stream test_l.avi>
91
Feed feed1.ffm
92
Format avi
93
#
94
BitExact
95
DctFastint
96
IdctSimple
97
VideoFrameRate 2
98
VideoSize 320x240
99
VideoBitRate 40
100
VideoGopSize 20
101
NoAudio
102

    
103
PreRoll 20
104
StartSendOnKey
105
MaxTime 100
106

    
107
</Stream>
108

    
109
#<Stream test_h.mpg>
110
#Feed feed1.ffm
111
#
112
#VideoFrameRate 10
113
#VideoSize 352x288
114
#VideoBitRate 100
115
#VideoGopSize 30
116
#NoAudio
117

    
118
#PreRoll 10
119
#StartSendOnKey
120
#MaxTime 100
121
#
122
#</Stream>
123
#
124
#<Stream test_l.mpg>
125
#Feed feed1.ffm
126
##
127
#VideoFrameRate 2
128
#VideoSize 320x240
129
#VideoBitRate 40
130
#VideoGopSize 20
131
#NoAudio
132
#
133
#PreRoll 20
134
#StartSendOnKey
135
#MaxTime 100
136
#
137
#</Stream>
138
#
139
<Stream test.swf>
140
Feed feed1.ffm
141
#
142
BitExact
143
DctFastint
144
IdctSimple
145
Qscale 10
146
VideoFrameRate 10
147
VideoSize 352x288
148
VideoBitRate 100
149
VideoGopSize 30
150
NoAudio
151

    
152
PreRoll 10
153
StartSendOnKey
154
MaxTime 100
155

    
156
</Stream>
157

    
158
<Stream test_h.asf>
159
Feed feed1.ffm
160
Format asf
161
#
162
BitExact
163
DctFastint
164
IdctSimple
165
Qscale 10
166
VideoFrameRate 10
167
VideoSize 320x240
168
VideoBitRate 100
169
VideoGopSize 30
170
NoAudio
171

    
172
PreRoll 10
173
StartSendOnKey
174
MaxTime 100
175

    
176
Title "Test data stream"
177

    
178
</Stream>
179

    
180
<Stream test_l.asf>
181
Feed feed1.ffm
182
Format asf
183
#
184
BitExact
185
DctFastint
186
IdctSimple
187
Qscale 10
188
VideoFrameRate 2
189
VideoSize 320x240
190
VideoBitRate 40
191
VideoGopSize 20
192
NoAudio
193

    
194
PreRoll 20
195
StartSendOnKey
196
MaxTime 100
197

    
198
Title "Test data stream"
199

    
200
</Stream>
201

    
202
<Stream test_h.rm>
203

    
204
Feed feed1.ffm
205
Format rm
206

    
207
BitExact
208
DctFastint
209
IdctSimple
210
Qscale 10
211
VideoBitRate 100
212
VideoFrameRate 10
213
VideoGopSize 30
214
VideoSize    320x240
215
NoAudio
216

    
217
PreRoll 10
218
StartSendOnKey
219
MaxTime 100
220

    
221
</Stream>
222

    
223
<Stream test_l.rm>
224

    
225
Feed feed1.ffm
226
Format rm
227

    
228
BitExact
229
DctFastint
230
IdctSimple
231
Qscale 10
232
VideoBitRate 40
233
VideoFrameRate 2
234
VideoGopSize 20
235
VideoSize    320x240
236
NoAudio
237

    
238
PreRoll 20
239
StartSendOnKey
240
MaxTime 100
241

    
242
</Stream>
243

    
244

    
245
<Stream test.jpg>
246

    
247
Feed feed1.ffm
248
Format jpeg
249
Strict -1
250

    
251
BitExact
252
DctFastint
253
IdctSimple
254
VideoFrameRate 1
255
VideoSize 352x288
256
NoAudio
257

    
258
PreRoll 2
259

    
260
</Stream>
261

    
262
<Stream test_small.jpg>
263

    
264
Feed feed1.ffm
265
Format jpeg
266
Strict -1
267

    
268
BitExact
269
DctFastint
270
IdctSimple
271
VideoFrameRate 1
272
VideoSize 160x128
273
NoAudio
274

    
275
PreRoll 2
276

    
277
</Stream>
278

    
279
<Stream test.mjpg>
280

    
281
Feed feed1.ffm
282
Format mpjpeg
283
Strict -1
284

    
285
BitExact
286
DctFastint
287
IdctSimple
288
VideoFrameRate 1
289
VideoSize    320x240
290
NoAudio
291
StartSendOnKey
292

    
293
PreRoll 1
294
MaxTime 100
295

    
296
</Stream>
297

    
298

    
299
##################################################################
300
# Special stream : server status
301

    
302
<Stream teststat.html>
303

    
304
Format status
305

    
306
</Stream>
307