test.conf 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  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 -loop -bitexact -dct_algo 1 -idct_algo 2 -y -f pgmyuv -i vsynth1/%d.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. </Stream>
  90. <Stream test_l.mpg>
  91. Feed feed1.ffm
  92. #
  93. VideoFrameRate 2
  94. VideoSize 320x240
  95. VideoBitRate 40
  96. VideoGopSize 20
  97. NoAudio
  98. PreRoll 20
  99. StartSendOnKey
  100. MaxTime 100
  101. </Stream>
  102. <Stream test.swf>
  103. Feed feed1.ffm
  104. #
  105. VideoFrameRate 10
  106. VideoSize 352x288
  107. VideoBitRate 100
  108. VideoGopSize 30
  109. NoAudio
  110. PreRoll 10
  111. StartSendOnKey
  112. MaxTime 100
  113. </Stream>
  114. <Stream test_h.asf>
  115. Feed feed1.ffm
  116. Format asf
  117. #
  118. VideoFrameRate 10
  119. VideoSize 320x240
  120. VideoBitRate 100
  121. VideoGopSize 30
  122. NoAudio
  123. PreRoll 10
  124. StartSendOnKey
  125. MaxTime 100
  126. Title "Test data stream"
  127. </Stream>
  128. <Stream test_l.asf>
  129. Feed feed1.ffm
  130. Format asf
  131. #
  132. VideoFrameRate 2
  133. VideoSize 320x240
  134. VideoBitRate 40
  135. VideoGopSize 20
  136. NoAudio
  137. PreRoll 20
  138. StartSendOnKey
  139. MaxTime 100
  140. Title "Test data stream"
  141. </Stream>
  142. <Stream test_h.rm>
  143. Feed feed1.ffm
  144. Format rm
  145. VideoBitRate 100
  146. VideoFrameRate 10
  147. VideoGopSize 30
  148. VideoSize 320x240
  149. NoAudio
  150. PreRoll 10
  151. StartSendOnKey
  152. MaxTime 100
  153. </Stream>
  154. <Stream test_l.rm>
  155. Feed feed1.ffm
  156. Format rm
  157. VideoBitRate 40
  158. VideoFrameRate 2
  159. VideoGopSize 20
  160. VideoSize 320x240
  161. NoAudio
  162. PreRoll 20
  163. StartSendOnKey
  164. MaxTime 100
  165. </Stream>
  166. <Stream test.jpg>
  167. Feed feed1.ffm
  168. Format singlejpeg
  169. VideoFrameRate 1
  170. VideoSize 352x288
  171. NoAudio
  172. PreRoll 2
  173. </Stream>
  174. <Stream test_small.jpg>
  175. Feed feed1.ffm
  176. Format singlejpeg
  177. VideoFrameRate 1
  178. VideoSize 160x128
  179. NoAudio
  180. PreRoll 2
  181. </Stream>
  182. <Stream test.mjpg>
  183. Feed feed1.ffm
  184. Format mpjpeg
  185. VideoFrameRate 1
  186. VideoSize 320x240
  187. NoAudio
  188. StartSendOnKey
  189. PreRoll 1
  190. MaxTime 100
  191. </Stream>
  192. ##################################################################
  193. # Special stream : server status
  194. <Stream teststat.html>
  195. Format status
  196. </Stream>