#1# This is a test configuration file. You can invoke it with2# ../ffserver -f ffserver.conf3# when in the tests directory and once the vsynth1 subdirectory4# has been populated. Then point your browser at http://whatever:9999/teststat.html5# and you can look at the streams6#78#9# Port on which the server is listening. You must select a different10# port from your standard http web server if it is running on the same11# computer.1213HTTPPort 999914RTSPPort 99901516# Address on which the server is bound. Only useful if you have17# several network interfaces.1819HTTPBindAddress 0.0.0.02021# Number of simultaneous requests that can be handled. Since FFServer22# is very fast, this limit is determined mainly by your Internet23# connection speed.2425MaxClients 10002627MaxBandwidth 1000002829# Access Log file (uses standard Apache log file format)30# '-' is the standard output3132CustomLog -3334##################################################################35# Definition of the live feeds. Each live feed contains one video36# and/or audio sequence coming from an ffmpeg encoder or another37# ffserver. This sequence may be encoded simultaneously with several38# codecs at several resolutions.3940<Feed feed1.ffm>4142# You must use 'ffmpeg' to send a live feed to ffserver. In this43# example, you can type:44#45# ffmpeg http://localhost:8090/feed1.ffm4647# ffserver can also do time shifting. It means that it can stream any48# previously recorded live stream. The request should contain:49# "http://xxxx?date=[YYYY-MM-DDT][[HH:]MM:]SS[.m...]".You must specify50# a path where the feed is stored on disk. You also specify the51# maximum size of the feed (100M bytes here). Default:52# File=/tmp/feed_name.ffm FileMaxSize=5M5354File tests/feed1.ffm55FileMaxSize 100M5657# Fire up ffmpeg pointing at this stream5859Launch ./ffmpeg -v 0 -y -f image2 -i tests/vsynth1/%02d.pgm6061ACL allow localhost62</Feed>6364##################################################################65# Now you can define each stream which will be generated from the66# original audio and video stream. Each format has a filename (here67# 'test128.mpg'). FFServer will send this stream when answering a68# request containing this filename.6970<Stream test_h.avi>71Feed feed1.ffm72Format avi73#74BitExact75DctFastint76IdctSimple77VideoFrameRate 1078VideoSize 352x28879VideoBitRate 10080VideoGopSize 3081NoAudio8283PreRoll 1084StartSendOnKey85MaxTime 1008687</Stream>8889<Stream test_l.avi>90Feed feed1.ffm91Format avi92#93BitExact94DctFastint95IdctSimple96VideoFrameRate 297VideoSize 320x24098VideoBitRate 4099VideoGopSize 20100NoAudio101102PreRoll 20103StartSendOnKey104MaxTime 100105106</Stream>107108#<Stream test_h.mpg>109#Feed feed1.ffm110#111#VideoFrameRate 10112#VideoSize 352x288113#VideoBitRate 100114#VideoGopSize 30115#NoAudio116117#PreRoll 10118#StartSendOnKey119#MaxTime 100120#121#</Stream>122#123#<Stream test_l.mpg>124#Feed feed1.ffm125##126#VideoFrameRate 2127#VideoSize 320x240128#VideoBitRate 40129#VideoGopSize 20130#NoAudio131#132#PreRoll 20133#StartSendOnKey134#MaxTime 100135#136#</Stream>137#138<Stream test.swf>139Feed feed1.ffm140#141BitExact142DctFastint143IdctSimple144Qscale 10145VideoFrameRate 10146VideoSize 352x288147VideoBitRate 100148VideoGopSize 30149NoAudio150151PreRoll 10152StartSendOnKey153MaxTime 100154155</Stream>156157<Stream test_h.asf>158Feed feed1.ffm159Format asf160#161BitExact162DctFastint163IdctSimple164Qscale 10165VideoFrameRate 10166VideoSize 320x240167VideoBitRate 100168VideoGopSize 30169NoAudio170171PreRoll 10172StartSendOnKey173MaxTime 100174175AVOptionVideo flags +global_header176177Metadata title "Test data stream"178179</Stream>180181<Stream test_l.asf>182Feed feed1.ffm183Format asf184#185BitExact186DctFastint187IdctSimple188Qscale 10189VideoFrameRate 2190VideoSize 320x240191VideoBitRate 40192VideoGopSize 20193NoAudio194195PreRoll 20196StartSendOnKey197MaxTime 100198199AVOptionVideo flags +global_header200201Metadata title "Test data stream"202203</Stream>204205<Stream test_h.rm>206207Feed feed1.ffm208Format rm209210BitExact211DctFastint212IdctSimple213Qscale 10214VideoBitRate 100215VideoFrameRate 10216VideoGopSize 30217VideoSize 320x240218NoAudio219220PreRoll 10221StartSendOnKey222MaxTime 100223224</Stream>225226<Stream test_l.rm>227228Feed feed1.ffm229Format rm230231BitExact232DctFastint233IdctSimple234Qscale 10235VideoBitRate 40236VideoFrameRate 2237VideoGopSize 20238VideoSize 320x240239NoAudio240241PreRoll 20242StartSendOnKey243MaxTime 100244245</Stream>246247248<Stream test.jpg>249250Feed feed1.ffm251Format jpeg252Strict -1253254BitExact255DctFastint256IdctSimple257VideoFrameRate 1258VideoSize 352x288259NoAudio260261PreRoll 2262263</Stream>264265<Stream test_small.jpg>266267Feed feed1.ffm268Format jpeg269Strict -1270271BitExact272DctFastint273IdctSimple274VideoFrameRate 1275VideoSize 160x128276NoAudio277278PreRoll 2279280</Stream>281282<Stream test.mjpg>283284Feed feed1.ffm285Format mpjpeg286Strict -1287288BitExact289DctFastint290IdctSimple291VideoFrameRate 1292VideoSize 320x240293NoAudio294StartSendOnKey295296PreRoll 1297MaxTime 100298299</Stream>300301302##################################################################303# Special stream : server status304305<Stream teststat.html>306307Format status308309</Stream>310311312313