test.conf 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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. # Port on which the server is listening. You must select a different
  10. # port from your standard http web server if it is running on the same
  11. # computer.
  12. Port 9999
  13. RTSPPort 9990
  14. # Address on which the server is bound. Only useful if you have
  15. # several network interfaces.
  16. BindAddress 0.0.0.0
  17. # Number of simultaneous requests that can be handled. Since FFServer
  18. # is very fast, this limit is determined mainly by your Internet
  19. # connection speed.
  20. MaxClients 1000
  21. MaxBandwidth 100000
  22. # Access Log file (uses standard Apache log file format)
  23. # '-' is the standard output
  24. CustomLog -
  25. ##################################################################
  26. # Definition of the live feeds. Each live feed contains one video
  27. # and/or audio sequence coming from an ffmpeg encoder or another
  28. # ffserver. This sequence may be encoded simultaneously with several
  29. # codecs at several resolutions.
  30. <Feed feed1.ffm>
  31. # You must use 'ffmpeg' to send a live feed to ffserver. In this
  32. # example, you can type:
  33. #
  34. # ffmpeg http://localhost:8090/feed1.ffm
  35. # ffserver can also do time shifting. It means that it can stream any
  36. # previously recorded live stream. The request should contain:
  37. # "http://xxxx?date=[YYYY-MM-DDT][[HH:]MM:]SS[.m...]".You must specify
  38. # a path where the feed is stored on disk. You also specify the
  39. # maximum size of the feed (100M bytes here). Default:
  40. # File=/tmp/feed_name.ffm FileMaxSize=5M
  41. File tests/feed1.ffm
  42. FileMaxSize 100M
  43. # Fire up ffmpeg pointing at this stream
  44. Launch ./ffmpeg -v 0 -y -f pgmyuv -i tests/vsynth1/%02d.pgm
  45. ACL allow localhost
  46. </Feed>
  47. ##################################################################
  48. # Now you can define each stream which will be generated from the
  49. # original audio and video stream. Each format has a filename (here
  50. # 'test128.mpg'). FFServer will send this stream when answering a
  51. # request containing this filename.
  52. <Stream test_h.avi>
  53. Feed feed1.ffm
  54. Format avi
  55. #
  56. BitExact
  57. DctFastint
  58. IdctSimple
  59. VideoFrameRate 10
  60. VideoSize 352x288
  61. VideoBitRate 100
  62. VideoGopSize 30
  63. NoAudio
  64. PreRoll 10
  65. StartSendOnKey
  66. MaxTime 100
  67. </Stream>
  68. <Stream test_l.avi>
  69. Feed feed1.ffm
  70. Format avi
  71. #
  72. BitExact
  73. DctFastint
  74. IdctSimple
  75. VideoFrameRate 2
  76. VideoSize 320x240
  77. VideoBitRate 40
  78. VideoGopSize 20
  79. NoAudio
  80. PreRoll 20
  81. StartSendOnKey
  82. MaxTime 100
  83. </Stream>
  84. #<Stream test_h.mpg>
  85. #Feed feed1.ffm
  86. #
  87. #VideoFrameRate 10
  88. #VideoSize 352x288
  89. #VideoBitRate 100
  90. #VideoGopSize 30
  91. #NoAudio
  92. #PreRoll 10
  93. #StartSendOnKey
  94. #MaxTime 100
  95. #
  96. #</Stream>
  97. #
  98. #<Stream test_l.mpg>
  99. #Feed feed1.ffm
  100. ##
  101. #VideoFrameRate 2
  102. #VideoSize 320x240
  103. #VideoBitRate 40
  104. #VideoGopSize 20
  105. #NoAudio
  106. #
  107. #PreRoll 20
  108. #StartSendOnKey
  109. #MaxTime 100
  110. #
  111. #</Stream>
  112. #
  113. <Stream test.swf>
  114. Feed feed1.ffm
  115. #
  116. BitExact
  117. DctFastint
  118. IdctSimple
  119. Qscale 10
  120. VideoFrameRate 10
  121. VideoSize 352x288
  122. VideoBitRate 100
  123. VideoGopSize 30
  124. NoAudio
  125. PreRoll 10
  126. StartSendOnKey
  127. MaxTime 100
  128. </Stream>
  129. <Stream test_h.asf>
  130. Feed feed1.ffm
  131. Format asf
  132. #
  133. BitExact
  134. DctFastint
  135. IdctSimple
  136. Qscale 10
  137. VideoFrameRate 10
  138. VideoSize 320x240
  139. VideoBitRate 100
  140. VideoGopSize 30
  141. NoAudio
  142. PreRoll 10
  143. StartSendOnKey
  144. MaxTime 100
  145. Title "Test data stream"
  146. </Stream>
  147. <Stream test_l.asf>
  148. Feed feed1.ffm
  149. Format asf
  150. #
  151. BitExact
  152. DctFastint
  153. IdctSimple
  154. Qscale 10
  155. VideoFrameRate 2
  156. VideoSize 320x240
  157. VideoBitRate 40
  158. VideoGopSize 20
  159. NoAudio
  160. PreRoll 20
  161. StartSendOnKey
  162. MaxTime 100
  163. Title "Test data stream"
  164. </Stream>
  165. <Stream test_h.rm>
  166. Feed feed1.ffm
  167. Format rm
  168. BitExact
  169. DctFastint
  170. IdctSimple
  171. Qscale 10
  172. VideoBitRate 100
  173. VideoFrameRate 10
  174. VideoGopSize 30
  175. VideoSize 320x240
  176. NoAudio
  177. PreRoll 10
  178. StartSendOnKey
  179. MaxTime 100
  180. </Stream>
  181. <Stream test_l.rm>
  182. Feed feed1.ffm
  183. Format rm
  184. BitExact
  185. DctFastint
  186. IdctSimple
  187. Qscale 10
  188. VideoBitRate 40
  189. VideoFrameRate 2
  190. VideoGopSize 20
  191. VideoSize 320x240
  192. NoAudio
  193. PreRoll 20
  194. StartSendOnKey
  195. MaxTime 100
  196. </Stream>
  197. <Stream test.jpg>
  198. Feed feed1.ffm
  199. Format jpeg
  200. Strict -1
  201. BitExact
  202. DctFastint
  203. IdctSimple
  204. VideoFrameRate 1
  205. VideoSize 352x288
  206. NoAudio
  207. PreRoll 2
  208. </Stream>
  209. <Stream test_small.jpg>
  210. Feed feed1.ffm
  211. Format jpeg
  212. Strict -1
  213. BitExact
  214. DctFastint
  215. IdctSimple
  216. VideoFrameRate 1
  217. VideoSize 160x128
  218. NoAudio
  219. PreRoll 2
  220. </Stream>
  221. <Stream test.mjpg>
  222. Feed feed1.ffm
  223. Format mpjpeg
  224. Strict -1
  225. BitExact
  226. DctFastint
  227. IdctSimple
  228. VideoFrameRate 1
  229. VideoSize 320x240
  230. NoAudio
  231. StartSendOnKey
  232. PreRoll 1
  233. MaxTime 100
  234. </Stream>
  235. ##################################################################
  236. # Special stream : server status
  237. <Stream teststat.html>
  238. Format status
  239. </Stream>