Statistics
| Branch: | Revision:

ffmpeg / tests / test.conf @ d90cc6af

History | View | Annotate | Download (4.2 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
# Access Log file (uses standard Apache log file format)
29
# '-' is the standard output
30
31
CustomLog -
32
33
##################################################################
34
# Definition of the live feeds. Each live feed contains one video
35
# and/or audio sequence coming from an ffmpeg encoder or another
36
# ffserver. This sequence may be encoded simultaneously with several
37
# codecs at several resolutions.
38
39
<Feed feed1.ffm>
40
41
# You must use 'ffmpeg' to send a live feed to ffserver. In this
42
# example, you can type:
43
# 
44
# ffmpeg http://localhost:8090/feed1.ffm
45
46
# ffserver can also do time shifting. It means that it can stream any
47
# previously recorded live stream. The request should contain:
48
# "http://xxxx?date=[YYYY-MM-DDT][[HH:]MM:]SS[.m...]".You must specify
49
# a path where the feed is stored on disk. You also specify the
50
# maximum size of the feed (100M bytes here). Default:
51
# File=/tmp/feed_name.ffm FileMaxSize=5M
52
53
File /tmp/feed.ffm
54 e2b2851e Philip Gladstone
FileMaxSize 100M
55 0bdd297f Philip Gladstone
56
# Fire up ffmpeg pointing at this stream
57
58
Launch -em_rate -bitexact -dct_algo 1 -idct_algo 2 -y -f pgmyuv -i vsynth1/%125*d.pgm
59
acl allow localhost
60
</Feed>
61
62
##################################################################
63
# Now you can define each stream which will be generated from the
64
# original audio and video stream. Each format has a filename (here
65
# 'test128.mpg'). FFServer will send this stream when answering a
66
# request containing this filename.
67
68
<Stream test_h.avi>
69
Feed feed1.ffm
70
Format avi
71
#
72
VideoFrameRate 10
73 e2b2851e Philip Gladstone
VideoSize 352x288
74 0bdd297f Philip Gladstone
VideoBitRate 100
75
VideoGopSize 30
76
NoAudio
77
78
PreRoll 10
79
StartSendOnKey
80 e2b2851e Philip Gladstone
MaxTime 100
81 0bdd297f Philip Gladstone
82
</Stream>
83
84
<Stream test_l.avi>
85
Feed feed1.ffm
86
Format avi
87
#
88
VideoFrameRate 2
89
VideoSize 320x240
90
VideoBitRate 40
91
VideoGopSize 20
92
NoAudio
93
94
PreRoll 20
95
StartSendOnKey
96 e2b2851e Philip Gladstone
MaxTime 100
97
98
</Stream>
99
100
<Stream test_h.mpg>
101
Feed feed1.ffm
102
#
103
VideoFrameRate 10
104
VideoSize 352x288
105
VideoBitRate 100
106
VideoGopSize 30
107
NoAudio
108
109
PreRoll 10
110
StartSendOnKey
111
MaxTime 100
112
113
</Stream>
114
115
<Stream test_l.mpg>
116
Feed feed1.ffm
117
#
118
VideoFrameRate 2
119
VideoSize 320x240
120
VideoBitRate 40
121
VideoGopSize 20
122
NoAudio
123
124
PreRoll 20
125
StartSendOnKey
126
MaxTime 100
127
128
</Stream>
129
130
<Stream test.swf>
131
Feed feed1.ffm
132
#
133
VideoFrameRate 10
134
VideoSize 352x288
135
VideoBitRate 100
136
VideoGopSize 30
137
NoAudio
138
139
PreRoll 10
140
StartSendOnKey
141
MaxTime 100
142 0bdd297f Philip Gladstone
143
</Stream>
144
145
<Stream test_h.asf>
146
Feed feed1.ffm
147
Format asf
148
#
149
VideoFrameRate 10
150
VideoSize 320x240
151
VideoBitRate 100
152
VideoGopSize 30
153
NoAudio
154
155
PreRoll 10
156
StartSendOnKey
157 e2b2851e Philip Gladstone
MaxTime 100
158 0bdd297f Philip Gladstone
159
Title "Test data stream"
160
161
</Stream>
162
163
<Stream test_l.asf>
164
Feed feed1.ffm
165
Format asf
166
#
167
VideoFrameRate 2
168
VideoSize 320x240
169
VideoBitRate 40
170
VideoGopSize 20
171
NoAudio
172
173
PreRoll 20
174
StartSendOnKey
175 e2b2851e Philip Gladstone
MaxTime 100
176 0bdd297f Philip Gladstone
177
Title "Test data stream"
178
179
</Stream>
180
181
<Stream test_h.rm>
182
183
Feed feed1.ffm
184
Format rm
185
186
VideoBitRate 100
187
VideoFrameRate 10
188
VideoGopSize 30
189
VideoSize    320x240
190
NoAudio
191
192
PreRoll 10
193
StartSendOnKey
194 e2b2851e Philip Gladstone
MaxTime 100
195 0bdd297f Philip Gladstone
196
</Stream>
197
198
<Stream test_l.rm>
199
200
Feed feed1.ffm
201
Format rm
202
203
VideoBitRate 40
204
VideoFrameRate 2
205
VideoGopSize 20
206
VideoSize    320x240
207
NoAudio
208
209
PreRoll 20
210
StartSendOnKey
211 e2b2851e Philip Gladstone
MaxTime 100
212 0bdd297f Philip Gladstone
213
</Stream>
214
215
216
<Stream test.jpg>
217
218
Feed feed1.ffm
219
Format singlejpeg
220
221
VideoFrameRate 1
222 e2b2851e Philip Gladstone
VideoSize 352x288
223
NoAudio
224
225
PreRoll 2
226
227
</Stream>
228
229
<Stream test_small.jpg>
230
231
Feed feed1.ffm
232
Format singlejpeg
233
234
VideoFrameRate 1
235
VideoSize 160x128
236 0bdd297f Philip Gladstone
NoAudio
237
238
PreRoll 2
239
240
</Stream>
241
242
<Stream test.mjpg>
243
244
Feed feed1.ffm
245
Format mpjpeg
246
247
VideoFrameRate 1
248
VideoSize    320x240
249
NoAudio
250
StartSendOnKey
251
252
PreRoll 1
253 e2b2851e Philip Gladstone
MaxTime 100
254 0bdd297f Philip Gladstone
255
</Stream>
256
257
258
##################################################################
259
# Special stream : server status
260
261
<Stream teststat.html>
262
263
Format status
264
265
</Stream>