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 14Port 9999 15RTSPPort 9990 16 17# Address on which the server is bound. Only useful if you have 18# several network interfaces. 19 20BindAddress 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 pgmyuv -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 176Title "Test data stream" 177 178</Stream> 179 180<Stream test_l.asf> 181Feed feed1.ffm 182Format asf 183# 184BitExact 185DctFastint 186IdctSimple 187Qscale 10 188VideoFrameRate 2 189VideoSize 320x240 190VideoBitRate 40 191VideoGopSize 20 192NoAudio 193 194PreRoll 20 195StartSendOnKey 196MaxTime 100 197 198Title "Test data stream" 199 200</Stream> 201 202<Stream test_h.rm> 203 204Feed feed1.ffm 205Format rm 206 207BitExact 208DctFastint 209IdctSimple 210Qscale 10 211VideoBitRate 100 212VideoFrameRate 10 213VideoGopSize 30 214VideoSize 320x240 215NoAudio 216 217PreRoll 10 218StartSendOnKey 219MaxTime 100 220 221</Stream> 222 223<Stream test_l.rm> 224 225Feed feed1.ffm 226Format rm 227 228BitExact 229DctFastint 230IdctSimple 231Qscale 10 232VideoBitRate 40 233VideoFrameRate 2 234VideoGopSize 20 235VideoSize 320x240 236NoAudio 237 238PreRoll 20 239StartSendOnKey 240MaxTime 100 241 242</Stream> 243 244 245<Stream test.jpg> 246 247Feed feed1.ffm 248Format jpeg 249Strict -1 250 251BitExact 252DctFastint 253IdctSimple 254VideoFrameRate 1 255VideoSize 352x288 256NoAudio 257 258PreRoll 2 259 260</Stream> 261 262<Stream test_small.jpg> 263 264Feed feed1.ffm 265Format jpeg 266Strict -1 267 268BitExact 269DctFastint 270IdctSimple 271VideoFrameRate 1 272VideoSize 160x128 273NoAudio 274 275PreRoll 2 276 277</Stream> 278 279<Stream test.mjpg> 280 281Feed feed1.ffm 282Format mpjpeg 283Strict -1 284 285BitExact 286DctFastint 287IdctSimple 288VideoFrameRate 1 289VideoSize 320x240 290NoAudio 291StartSendOnKey 292 293PreRoll 1 294MaxTime 100 295 296</Stream> 297 298 299################################################################## 300# Special stream : server status 301 302<Stream teststat.html> 303 304Format status 305 306</Stream> 307 308