]> git.sesse.net Git - ffmpeg/blob - tests/test.conf
Use a function for libav.
[ffmpeg] / tests / test.conf
1 #
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 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 /tmp/feed.ffm
56 FileMaxSize 100M
57
58 # Fire up ffmpeg pointing at this stream
59
60 Launch ../ffmpeg -loop_input -flags +bitexact -dct fastint -idct simple -y -f pgmyuv -i vsynth1/%02d.pgm
61 acl allow localhost
62 </Feed>
63
64 ##################################################################
65 # Now you can define each stream which will be generated from the
66 # original audio and video stream. Each format has a filename (here
67 # 'test128.mpg'). FFServer will send this stream when answering a
68 # request containing this filename.
69
70 <Stream test_h.avi>
71 Feed feed1.ffm
72 Format avi
73 #
74 BitExact
75 DctFastint
76 IdctSimple
77 VideoFrameRate 10
78 VideoSize 352x288
79 VideoBitRate 100
80 VideoGopSize 30
81 NoAudio
82
83 PreRoll 10
84 StartSendOnKey
85 MaxTime 100
86
87 </Stream>
88
89 <Stream test_l.avi>
90 Feed feed1.ffm
91 Format avi
92 #
93 BitExact
94 DctFastint
95 IdctSimple
96 VideoFrameRate 2
97 VideoSize 320x240
98 VideoBitRate 40
99 VideoGopSize 20
100 NoAudio
101
102 PreRoll 20
103 StartSendOnKey
104 MaxTime 100
105
106 </Stream>
107
108 #<Stream test_h.mpg>
109 #Feed feed1.ffm
110 #
111 #VideoFrameRate 10
112 #VideoSize 352x288
113 #VideoBitRate 100
114 #VideoGopSize 30
115 #NoAudio
116
117 #PreRoll 10
118 #StartSendOnKey
119 #MaxTime 100
120 #
121 #</Stream>
122 #
123 #<Stream test_l.mpg>
124 #Feed feed1.ffm
125 ##
126 #VideoFrameRate 2
127 #VideoSize 320x240
128 #VideoBitRate 40
129 #VideoGopSize 20
130 #NoAudio
131 #
132 #PreRoll 20
133 #StartSendOnKey
134 #MaxTime 100
135 #
136 #</Stream>
137 #
138 <Stream test.swf>
139 Feed feed1.ffm
140 #
141 BitExact
142 DctFastint
143 IdctSimple
144 Qscale 10
145 VideoFrameRate 10
146 VideoSize 352x288
147 VideoBitRate 100
148 VideoGopSize 30
149 NoAudio
150
151 PreRoll 10
152 StartSendOnKey
153 MaxTime 100
154
155 </Stream>
156
157 <Stream test_h.asf>
158 Feed feed1.ffm
159 Format asf
160 #
161 BitExact
162 DctFastint
163 IdctSimple
164 Qscale 10
165 VideoFrameRate 10
166 VideoSize 320x240
167 VideoBitRate 100
168 VideoGopSize 30
169 NoAudio
170
171 PreRoll 10
172 StartSendOnKey
173 MaxTime 100
174
175 Title "Test data stream"
176
177 </Stream>
178
179 <Stream test_l.asf>
180 Feed feed1.ffm
181 Format asf
182 #
183 BitExact
184 DctFastint
185 IdctSimple
186 Qscale 10
187 VideoFrameRate 2
188 VideoSize 320x240
189 VideoBitRate 40
190 VideoGopSize 20
191 NoAudio
192
193 PreRoll 20
194 StartSendOnKey
195 MaxTime 100
196
197 Title "Test data stream"
198
199 </Stream>
200
201 <Stream test_h.rm>
202
203 Feed feed1.ffm
204 Format rm
205
206 BitExact
207 DctFastint
208 IdctSimple
209 Qscale 10
210 VideoBitRate 100
211 VideoFrameRate 10
212 VideoGopSize 30
213 VideoSize    320x240
214 NoAudio
215
216 PreRoll 10
217 StartSendOnKey
218 MaxTime 100
219
220 </Stream>
221
222 <Stream test_l.rm>
223
224 Feed feed1.ffm
225 Format rm
226
227 BitExact
228 DctFastint
229 IdctSimple
230 Qscale 10
231 VideoBitRate 40
232 VideoFrameRate 2
233 VideoGopSize 20
234 VideoSize    320x240
235 NoAudio
236
237 PreRoll 20
238 StartSendOnKey
239 MaxTime 100
240
241 </Stream>
242
243
244 <Stream test.jpg>
245
246 Feed feed1.ffm
247 Format jpeg
248 Strict -1
249
250 BitExact
251 DctFastint
252 IdctSimple
253 VideoFrameRate 1
254 VideoSize 352x288
255 NoAudio
256
257 PreRoll 2
258
259 </Stream>
260
261 <Stream test_small.jpg>
262
263 Feed feed1.ffm
264 Format jpeg
265 Strict -1
266
267 BitExact
268 DctFastint
269 IdctSimple
270 VideoFrameRate 1
271 VideoSize 160x128
272 NoAudio
273
274 PreRoll 2
275
276 </Stream>
277
278 <Stream test.mjpg>
279
280 Feed feed1.ffm
281 Format mpjpeg
282 Strict -1
283
284 BitExact
285 DctFastint
286 IdctSimple
287 VideoFrameRate 1
288 VideoSize    320x240
289 NoAudio
290 StartSendOnKey
291
292 PreRoll 1
293 MaxTime 100
294
295 </Stream>
296
297
298 ##################################################################
299 # Special stream : server status
300
301 <Stream teststat.html>
302
303 Format status
304
305 </Stream>
306