ffserver.conf 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  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. # 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. HTTPPort 9999
  13. RTSPPort 9990
  14. # Address on which the server is bound. Only useful if you have
  15. # several network interfaces.
  16. HTTPBindAddress 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 image2 -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. AVOptionVideo flags +global_header
  146. Metadata title "Test data stream"
  147. </Stream>
  148. <Stream test_l.asf>
  149. Feed feed1.ffm
  150. Format asf
  151. #
  152. BitExact
  153. DctFastint
  154. IdctSimple
  155. Qscale 10
  156. VideoFrameRate 2
  157. VideoSize 320x240
  158. VideoBitRate 40
  159. VideoGopSize 20
  160. NoAudio
  161. PreRoll 20
  162. StartSendOnKey
  163. MaxTime 100
  164. AVOptionVideo flags +global_header
  165. Metadata title "Test data stream"
  166. </Stream>
  167. <Stream test_h.rm>
  168. Feed feed1.ffm
  169. Format rm
  170. BitExact
  171. DctFastint
  172. IdctSimple
  173. Qscale 10
  174. VideoBitRate 100
  175. VideoFrameRate 10
  176. VideoGopSize 30
  177. VideoSize 320x240
  178. NoAudio
  179. PreRoll 10
  180. StartSendOnKey
  181. MaxTime 100
  182. </Stream>
  183. <Stream test_l.rm>
  184. Feed feed1.ffm
  185. Format rm
  186. BitExact
  187. DctFastint
  188. IdctSimple
  189. Qscale 10
  190. VideoBitRate 40
  191. VideoFrameRate 2
  192. VideoGopSize 20
  193. VideoSize 320x240
  194. NoAudio
  195. PreRoll 20
  196. StartSendOnKey
  197. MaxTime 100
  198. </Stream>
  199. <Stream test.jpg>
  200. Feed feed1.ffm
  201. Format jpeg
  202. Strict -1
  203. BitExact
  204. DctFastint
  205. IdctSimple
  206. VideoFrameRate 1
  207. VideoSize 352x288
  208. NoAudio
  209. PreRoll 2
  210. </Stream>
  211. <Stream test_small.jpg>
  212. Feed feed1.ffm
  213. Format jpeg
  214. Strict -1
  215. BitExact
  216. DctFastint
  217. IdctSimple
  218. VideoFrameRate 1
  219. VideoSize 160x128
  220. NoAudio
  221. PreRoll 2
  222. </Stream>
  223. <Stream test.mjpg>
  224. Feed feed1.ffm
  225. Format mpjpeg
  226. Strict -1
  227. BitExact
  228. DctFastint
  229. IdctSimple
  230. VideoFrameRate 1
  231. VideoSize 320x240
  232. NoAudio
  233. StartSendOnKey
  234. PreRoll 1
  235. MaxTime 100
  236. </Stream>
  237. ##################################################################
  238. # Special stream : server status
  239. <Stream teststat.html>
  240. Format status
  241. </Stream>