Statistics
| Branch: | Revision:

ffmpeg / tests / test.conf @ 8d931070

History | View | Annotate | Download (4.23 KB)

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 -loop -bitexact -dct_algo 1 -idct_algo 2 -y -f pgmyuv -i vsynth1/%d.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
VideoFrameRate 10
75
VideoSize 352x288
76
VideoBitRate 100
77
VideoGopSize 30
78
NoAudio
79

    
80
PreRoll 10
81
StartSendOnKey
82
MaxTime 100
83

    
84
</Stream>
85

    
86
<Stream test_l.avi>
87
Feed feed1.ffm
88
Format avi
89
#
90
VideoFrameRate 2
91
VideoSize 320x240
92
VideoBitRate 40
93
VideoGopSize 20
94
NoAudio
95

    
96
PreRoll 20
97
StartSendOnKey
98
MaxTime 100
99

    
100
</Stream>
101

    
102
#<Stream test_h.mpg>
103
#Feed feed1.ffm
104
#
105
#VideoFrameRate 10
106
#VideoSize 352x288
107
#VideoBitRate 100
108
#VideoGopSize 30
109
#NoAudio
110

    
111
#PreRoll 10
112
#StartSendOnKey
113
#MaxTime 100
114
#
115
#</Stream>
116
#
117
#<Stream test_l.mpg>
118
#Feed feed1.ffm
119
##
120
#VideoFrameRate 2
121
#VideoSize 320x240
122
#VideoBitRate 40
123
#VideoGopSize 20
124
#NoAudio
125
#
126
#PreRoll 20
127
#StartSendOnKey
128
#MaxTime 100
129
#
130
#</Stream>
131
#
132
<Stream test.swf>
133
Feed feed1.ffm
134
#
135
VideoFrameRate 10
136
VideoSize 352x288
137
VideoBitRate 100
138
VideoGopSize 30
139
NoAudio
140

    
141
PreRoll 10
142
StartSendOnKey
143
MaxTime 100
144

    
145
</Stream>
146

    
147
<Stream test_h.asf>
148
Feed feed1.ffm
149
Format asf
150
#
151
VideoFrameRate 10
152
VideoSize 320x240
153
VideoBitRate 100
154
VideoGopSize 30
155
NoAudio
156

    
157
PreRoll 10
158
StartSendOnKey
159
MaxTime 100
160

    
161
Title "Test data stream"
162

    
163
</Stream>
164

    
165
<Stream test_l.asf>
166
Feed feed1.ffm
167
Format asf
168
#
169
VideoFrameRate 2
170
VideoSize 320x240
171
VideoBitRate 40
172
VideoGopSize 20
173
NoAudio
174

    
175
PreRoll 20
176
StartSendOnKey
177
MaxTime 100
178

    
179
Title "Test data stream"
180

    
181
</Stream>
182

    
183
<Stream test_h.rm>
184

    
185
Feed feed1.ffm
186
Format rm
187

    
188
VideoBitRate 100
189
VideoFrameRate 10
190
VideoGopSize 30
191
VideoSize    320x240
192
NoAudio
193

    
194
PreRoll 10
195
StartSendOnKey
196
MaxTime 100
197

    
198
</Stream>
199

    
200
<Stream test_l.rm>
201

    
202
Feed feed1.ffm
203
Format rm
204

    
205
VideoBitRate 40
206
VideoFrameRate 2
207
VideoGopSize 20
208
VideoSize    320x240
209
NoAudio
210

    
211
PreRoll 20
212
StartSendOnKey
213
MaxTime 100
214

    
215
</Stream>
216

    
217

    
218
<Stream test.jpg>
219

    
220
Feed feed1.ffm
221
Format mjpeg
222

    
223
VideoFrameRate 1
224
VideoSize 352x288
225
NoAudio
226

    
227
PreRoll 2
228

    
229
</Stream>
230

    
231
<Stream test_small.jpg>
232

    
233
Feed feed1.ffm
234
Format mjpeg
235

    
236
VideoFrameRate 1
237
VideoSize 160x128
238
NoAudio
239

    
240
PreRoll 2
241

    
242
</Stream>
243

    
244
<Stream test.mjpg>
245

    
246
Feed feed1.ffm
247
Format mpjpeg
248

    
249
VideoFrameRate 1
250
VideoSize    320x240
251
NoAudio
252
StartSendOnKey
253

    
254
PreRoll 1
255
MaxTime 100
256

    
257
</Stream>
258

    
259

    
260
##################################################################
261
# Special stream : server status
262

    
263
<Stream teststat.html>
264

    
265
Format status
266

    
267
</Stream>
268