Imported Debian version 2.4.3~trusty1
[deb_ffmpeg.git] / ffmpeg / tests / ffserver.conf
CommitLineData
2ba45a60
DM
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
14HTTPPort 9999
15RTSPPort 9990
16
17# Address on which the server is bound. Only useful if you have
18# several network interfaces.
19
20HTTPBindAddress 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
26MaxClients 1000
27
28MaxBandwidth 100000
29
30# Access Log file (uses standard Apache log file format)
31# '-' is the standard output
32
33CustomLog -
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
55File tests/feed1.ffm
56FileMaxSize 100M
57
58# Fire up ffmpeg pointing at this stream
59
60Launch ./ffmpeg -v 0 -y -f image2 -i tests/vsynth1/%02d.pgm
61
62ACL 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>
72Feed feed1.ffm
73Format avi
74#
75BitExact
76DctFastint
77IdctSimple
78VideoFrameRate 10
79VideoSize 352x288
80VideoBitRate 100
81VideoGopSize 30
82NoAudio
83
84PreRoll 10
85StartSendOnKey
86MaxTime 100
87
88</Stream>
89
90<Stream test_l.avi>
91Feed feed1.ffm
92Format avi
93#
94BitExact
95DctFastint
96IdctSimple
97VideoFrameRate 2
98VideoSize 320x240
99VideoBitRate 40
100VideoGopSize 20
101NoAudio
102
103PreRoll 20
104StartSendOnKey
105MaxTime 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>
140Feed feed1.ffm
141#
142BitExact
143DctFastint
144IdctSimple
145Qscale 10
146VideoFrameRate 10
147VideoSize 352x288
148VideoBitRate 100
149VideoGopSize 30
150NoAudio
151
152PreRoll 10
153StartSendOnKey
154MaxTime 100
155
156</Stream>
157
158<Stream test_h.asf>
159Feed feed1.ffm
160Format asf
161#
162BitExact
163DctFastint
164IdctSimple
165Qscale 10
166VideoFrameRate 10
167VideoSize 320x240
168VideoBitRate 100
169VideoGopSize 30
170NoAudio
171
172PreRoll 10
173StartSendOnKey
174MaxTime 100
175
176AVOptionVideo flags +global_header
177
178Metadata title "Test data stream"
179
180</Stream>
181
182<Stream test_l.asf>
183Feed feed1.ffm
184Format asf
185#
186BitExact
187DctFastint
188IdctSimple
189Qscale 10
190VideoFrameRate 2
191VideoSize 320x240
192VideoBitRate 40
193VideoGopSize 20
194NoAudio
195
196PreRoll 20
197StartSendOnKey
198MaxTime 100
199
200AVOptionVideo flags +global_header
201
202Metadata title "Test data stream"
203
204</Stream>
205
206<Stream test_h.rm>
207
208Feed feed1.ffm
209Format rm
210
211BitExact
212DctFastint
213IdctSimple
214Qscale 10
215VideoBitRate 100
216VideoFrameRate 10
217VideoGopSize 30
218VideoSize 320x240
219NoAudio
220
221PreRoll 10
222StartSendOnKey
223MaxTime 100
224
225</Stream>
226
227<Stream test_l.rm>
228
229Feed feed1.ffm
230Format rm
231
232BitExact
233DctFastint
234IdctSimple
235Qscale 10
236VideoBitRate 40
237VideoFrameRate 2
238VideoGopSize 20
239VideoSize 320x240
240NoAudio
241
242PreRoll 20
243StartSendOnKey
244MaxTime 100
245
246</Stream>
247
248
249<Stream test.jpg>
250
251Feed feed1.ffm
252Format jpeg
253Strict -1
254
255BitExact
256DctFastint
257IdctSimple
258VideoFrameRate 1
259VideoSize 352x288
260NoAudio
261
262PreRoll 2
263
264</Stream>
265
266<Stream test_small.jpg>
267
268Feed feed1.ffm
269Format jpeg
270Strict -1
271
272BitExact
273DctFastint
274IdctSimple
275VideoFrameRate 1
276VideoSize 160x128
277NoAudio
278
279PreRoll 2
280
281</Stream>
282
283<Stream test.mjpg>
284
285Feed feed1.ffm
286Format mpjpeg
287Strict -1
288
289BitExact
290DctFastint
291IdctSimple
292VideoFrameRate 1
293VideoSize 320x240
294NoAudio
295StartSendOnKey
296
297PreRoll 1
298MaxTime 100
299
300</Stream>
301
302
303##################################################################
304# Special stream : server status
305
306<Stream teststat.html>
307
308Format status
309
310</Stream>
311