Statistics
| Branch: | Revision:

ffmpeg / tests / test.conf @ ce611a27

History | View | Annotate | Download (4.63 KB)

1 0bdd297f Philip Gladstone
#
2
# This is a test configuration file. You can invoke it with
3
# ../ffserver -f test.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 be0d1549 Philip Gladstone
MaxBandwidth 100000
29
30 0bdd297f Philip Gladstone
# 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 115329f1 Diego Biurrun
#
46 0bdd297f Philip Gladstone
# 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 508826f9 Alex Beregszaszi
File feed1.ffm
56 e2b2851e Philip Gladstone
FileMaxSize 100M
57 0bdd297f Philip Gladstone
58
# Fire up ffmpeg pointing at this stream
59
60 508826f9 Alex Beregszaszi
#Launch ../../ffmpeg -loop_input -flags +bitexact -dct fastint -idct simple -y -f pgmyuv -i vsynth1/%02d.pgm
61
62
ACL allow localhost
63 0bdd297f Philip Gladstone
</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 267b0e57 Aurelien Jacobs
BitExact
76
DctFastint
77
IdctSimple
78 0bdd297f Philip Gladstone
VideoFrameRate 10
79 e2b2851e Philip Gladstone
VideoSize 352x288
80 0bdd297f Philip Gladstone
VideoBitRate 100
81
VideoGopSize 30
82
NoAudio
83
84
PreRoll 10
85
StartSendOnKey
86 e2b2851e Philip Gladstone
MaxTime 100
87 0bdd297f Philip Gladstone
88
</Stream>
89
90
<Stream test_l.avi>
91
Feed feed1.ffm
92
Format avi
93
#
94 267b0e57 Aurelien Jacobs
BitExact
95
DctFastint
96
IdctSimple
97 0bdd297f Philip Gladstone
VideoFrameRate 2
98
VideoSize 320x240
99
VideoBitRate 40
100
VideoGopSize 20
101
NoAudio
102
103
PreRoll 20
104
StartSendOnKey
105 e2b2851e Philip Gladstone
MaxTime 100
106
107
</Stream>
108
109 597c9f2b Philip Gladstone
#<Stream test_h.mpg>
110
#Feed feed1.ffm
111 e2b2851e Philip Gladstone
#
112 597c9f2b Philip Gladstone
#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 e2b2851e Philip Gladstone
#
139
<Stream test.swf>
140
Feed feed1.ffm
141
#
142 267b0e57 Aurelien Jacobs
BitExact
143
DctFastint
144
IdctSimple
145
Qscale 10
146 e2b2851e Philip Gladstone
VideoFrameRate 10
147
VideoSize 352x288
148
VideoBitRate 100
149
VideoGopSize 30
150
NoAudio
151
152
PreRoll 10
153
StartSendOnKey
154
MaxTime 100
155 0bdd297f Philip Gladstone
156
</Stream>
157
158
<Stream test_h.asf>
159
Feed feed1.ffm
160
Format asf
161
#
162 267b0e57 Aurelien Jacobs
BitExact
163
DctFastint
164
IdctSimple
165
Qscale 10
166 0bdd297f Philip Gladstone
VideoFrameRate 10
167
VideoSize 320x240
168
VideoBitRate 100
169
VideoGopSize 30
170
NoAudio
171
172
PreRoll 10
173
StartSendOnKey
174 e2b2851e Philip Gladstone
MaxTime 100
175 0bdd297f Philip Gladstone
176
Title "Test data stream"
177
178
</Stream>
179
180
<Stream test_l.asf>
181
Feed feed1.ffm
182
Format asf
183
#
184 267b0e57 Aurelien Jacobs
BitExact
185
DctFastint
186
IdctSimple
187
Qscale 10
188 0bdd297f Philip Gladstone
VideoFrameRate 2
189
VideoSize 320x240
190
VideoBitRate 40
191
VideoGopSize 20
192
NoAudio
193
194
PreRoll 20
195
StartSendOnKey
196 e2b2851e Philip Gladstone
MaxTime 100
197 0bdd297f Philip Gladstone
198
Title "Test data stream"
199
200
</Stream>
201
202
<Stream test_h.rm>
203
204
Feed feed1.ffm
205
Format rm
206
207 267b0e57 Aurelien Jacobs
BitExact
208
DctFastint
209
IdctSimple
210
Qscale 10
211 0bdd297f Philip Gladstone
VideoBitRate 100
212
VideoFrameRate 10
213
VideoGopSize 30
214
VideoSize    320x240
215
NoAudio
216
217
PreRoll 10
218
StartSendOnKey
219 e2b2851e Philip Gladstone
MaxTime 100
220 0bdd297f Philip Gladstone
221
</Stream>
222
223
<Stream test_l.rm>
224
225
Feed feed1.ffm
226
Format rm
227
228 267b0e57 Aurelien Jacobs
BitExact
229
DctFastint
230
IdctSimple
231
Qscale 10
232 0bdd297f Philip Gladstone
VideoBitRate 40
233
VideoFrameRate 2
234
VideoGopSize 20
235
VideoSize    320x240
236
NoAudio
237
238
PreRoll 20
239
StartSendOnKey
240 e2b2851e Philip Gladstone
MaxTime 100
241 0bdd297f Philip Gladstone
242
</Stream>
243
244
245
<Stream test.jpg>
246
247
Feed feed1.ffm
248 b51527d8 Alex Beregszaszi
Format jpeg
249
Strict -1
250 0bdd297f Philip Gladstone
251 267b0e57 Aurelien Jacobs
BitExact
252
DctFastint
253
IdctSimple
254 0bdd297f Philip Gladstone
VideoFrameRate 1
255 e2b2851e Philip Gladstone
VideoSize 352x288
256
NoAudio
257
258
PreRoll 2
259
260
</Stream>
261
262
<Stream test_small.jpg>
263
264
Feed feed1.ffm
265 b51527d8 Alex Beregszaszi
Format jpeg
266
Strict -1
267 e2b2851e Philip Gladstone
268 267b0e57 Aurelien Jacobs
BitExact
269
DctFastint
270
IdctSimple
271 e2b2851e Philip Gladstone
VideoFrameRate 1
272
VideoSize 160x128
273 0bdd297f Philip Gladstone
NoAudio
274
275
PreRoll 2
276
277
</Stream>
278
279
<Stream test.mjpg>
280
281
Feed feed1.ffm
282
Format mpjpeg
283 267b0e57 Aurelien Jacobs
Strict -1
284 0bdd297f Philip Gladstone
285 267b0e57 Aurelien Jacobs
BitExact
286
DctFastint
287
IdctSimple
288 0bdd297f Philip Gladstone
VideoFrameRate 1
289
VideoSize    320x240
290
NoAudio
291
StartSendOnKey
292
293
PreRoll 1
294 e2b2851e Philip Gladstone
MaxTime 100
295 0bdd297f Philip Gladstone
296
</Stream>
297
298
299
##################################################################
300
# Special stream : server status
301
302
<Stream teststat.html>
303
304
Format status
305
306
</Stream>