test.conf 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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 /tmp/feed.ffm
  42. FileMaxSize 100M
  43. # Fire up ffmpeg pointing at this stream
  44. Launch ../ffmpeg -loop -flags +bitexact -dct fastint -idct simple -y -f pgmyuv -i 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. VideoFrameRate 10
  57. VideoSize 352x288
  58. VideoBitRate 100
  59. VideoGopSize 30
  60. NoAudio
  61. PreRoll 10
  62. StartSendOnKey
  63. MaxTime 100
  64. </Stream>
  65. <Stream test_l.avi>
  66. Feed feed1.ffm
  67. Format avi
  68. #
  69. VideoFrameRate 2
  70. VideoSize 320x240
  71. VideoBitRate 40
  72. VideoGopSize 20
  73. NoAudio
  74. PreRoll 20
  75. StartSendOnKey
  76. MaxTime 100
  77. </Stream>
  78. #<Stream test_h.mpg>
  79. #Feed feed1.ffm
  80. #
  81. #VideoFrameRate 10
  82. #VideoSize 352x288
  83. #VideoBitRate 100
  84. #VideoGopSize 30
  85. #NoAudio
  86. #PreRoll 10
  87. #StartSendOnKey
  88. #MaxTime 100
  89. #
  90. #</Stream>
  91. #
  92. #<Stream test_l.mpg>
  93. #Feed feed1.ffm
  94. ##
  95. #VideoFrameRate 2
  96. #VideoSize 320x240
  97. #VideoBitRate 40
  98. #VideoGopSize 20
  99. #NoAudio
  100. #
  101. #PreRoll 20
  102. #StartSendOnKey
  103. #MaxTime 100
  104. #
  105. #</Stream>
  106. #
  107. <Stream test.swf>
  108. Feed feed1.ffm
  109. #
  110. VideoFrameRate 10
  111. VideoSize 352x288
  112. VideoBitRate 100
  113. VideoGopSize 30
  114. NoAudio
  115. PreRoll 10
  116. StartSendOnKey
  117. MaxTime 100
  118. </Stream>
  119. <Stream test_h.asf>
  120. Feed feed1.ffm
  121. Format asf
  122. #
  123. VideoFrameRate 10
  124. VideoSize 320x240
  125. VideoBitRate 100
  126. VideoGopSize 30
  127. NoAudio
  128. PreRoll 10
  129. StartSendOnKey
  130. MaxTime 100
  131. Title "Test data stream"
  132. </Stream>
  133. <Stream test_l.asf>
  134. Feed feed1.ffm
  135. Format asf
  136. #
  137. VideoFrameRate 2
  138. VideoSize 320x240
  139. VideoBitRate 40
  140. VideoGopSize 20
  141. NoAudio
  142. PreRoll 20
  143. StartSendOnKey
  144. MaxTime 100
  145. Title "Test data stream"
  146. </Stream>
  147. <Stream test_h.rm>
  148. Feed feed1.ffm
  149. Format rm
  150. VideoBitRate 100
  151. VideoFrameRate 10
  152. VideoGopSize 30
  153. VideoSize 320x240
  154. NoAudio
  155. PreRoll 10
  156. StartSendOnKey
  157. MaxTime 100
  158. </Stream>
  159. <Stream test_l.rm>
  160. Feed feed1.ffm
  161. Format rm
  162. VideoBitRate 40
  163. VideoFrameRate 2
  164. VideoGopSize 20
  165. VideoSize 320x240
  166. NoAudio
  167. PreRoll 20
  168. StartSendOnKey
  169. MaxTime 100
  170. </Stream>
  171. <Stream test.jpg>
  172. Feed feed1.ffm
  173. Format jpeg
  174. Strict -1
  175. VideoFrameRate 1
  176. VideoSize 352x288
  177. NoAudio
  178. PreRoll 2
  179. </Stream>
  180. <Stream test_small.jpg>
  181. Feed feed1.ffm
  182. Format jpeg
  183. Strict -1
  184. VideoFrameRate 1
  185. VideoSize 160x128
  186. NoAudio
  187. PreRoll 2
  188. </Stream>
  189. <Stream test.mjpg>
  190. Feed feed1.ffm
  191. Format mpjpeg
  192. Strict -1
  193. VideoFrameRate 1
  194. VideoSize 320x240
  195. NoAudio
  196. StartSendOnKey
  197. PreRoll 1
  198. MaxTime 100
  199. </Stream>
  200. ##################################################################
  201. # Special stream : server status
  202. <Stream teststat.html>
  203. Format status
  204. </Stream>