一个ffserver的测试配置文件

  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. # ffmpeg http://localhost:8090/feed1.ffm

  34. # ffserver can also do time shifting. It means that it can stream any
  35. # previously recorded live stream. The request should contain:
  36. # "http://xxxx?date=[YYYY-MM-DDT][[HH:]MM:]SS[.m...]".You must specify
  37. # a path where the feed is stored on disk. You also specify the
  38. # maximum size of the feed (100M bytes here). Default:
  39. # File=/tmp/feed_name.ffm FileMaxSize=5M

  40. File /tmp/feed.ffm
  41. FileMaxSize 100M

  42. # Fire up ffmpeg pointing at this stream

  43. Launch -loop -bitexact -dct_algo 1 -idct_algo 2 -y -f pgmyuv -i vsynth1/%d.pgm
  44. acl allow localhost
  45. </Feed>

  46. ##################################################################
  47. # Now you can define each stream which will be generated from the
  48. # original audio and video stream. Each format has a filename (here
  49. # 'test128.mpg'). FFServer will send this stream when answering a
  50. # request containing this filename.

  51. <Stream test_h.avi>
  52. Feed feed1.ffm
  53. Format avi
  54. #
  55. VideoFrameRate 10
  56. VideoSize 352x288
  57. VideoBitRate 100
  58. VideoGopSize 30
  59. NoAudio

  60. PreRoll 10
  61. StartSendOnKey
  62. MaxTime 100

  63. </Stream>

  64. <Stream test_l.avi>
  65. Feed feed1.ffm
  66. Format avi
  67. #
  68. VideoFrameRate 2
  69. VideoSize 320x240
  70. VideoBitRate 40
  71. VideoGopSize 20
  72. NoAudio

  73. PreRoll 20
  74. StartSendOnKey
  75. MaxTime 100

  76. </Stream>

  77. <Stream test_h.mpg>
  78. Feed feed1.ffm
  79. #
  80. VideoFrameRate 10
  81. VideoSize 352x288
  82. VideoBitRate 100
  83. VideoGopSize 30
  84. NoAudio

  85. PreRoll 10
  86. StartSendOnKey
  87. MaxTime 100

  88. </Stream>

  89. <Stream test_l.mpg>
  90. Feed feed1.ffm
  91. #
  92. VideoFrameRate 2
  93. VideoSize 320x240
  94. VideoBitRate 40
  95. VideoGopSize 20
  96. NoAudio

  97. PreRoll 20
  98. StartSendOnKey
  99. MaxTime 100

  100. </Stream>

  101. <Stream test.swf>
  102. Feed feed1.ffm
  103. #
  104. VideoFrameRate 10
  105. VideoSize 352x288
  106. VideoBitRate 100
  107. VideoGopSize 30
  108. NoAudio

  109. PreRoll 10
  110. StartSendOnKey
  111. MaxTime 100

  112. </Stream>

  113. <Stream test_h.asf>
  114. Feed feed1.ffm
  115. Format asf
  116. #
  117. VideoFrameRate 10
  118. VideoSize 320x240
  119. VideoBitRate 100
  120. VideoGopSize 30
  121. NoAudio

  122. PreRoll 10
  123. StartSendOnKey
  124. MaxTime 100

  125. Title "Test data stream"

  126. </Stream>

  127. <Stream test_l.asf>
  128. Feed feed1.ffm
  129. Format asf
  130. #
  131. VideoFrameRate 2
  132. VideoSize 320x240
  133. VideoBitRate 40
  134. VideoGopSize 20
  135. NoAudio

  136. PreRoll 20
  137. StartSendOnKey
  138. MaxTime 100

  139. Title "Test data stream"

  140. </Stream>

  141. <Stream test_h.rm>

  142. Feed feed1.ffm
  143. Format rm

  144. VideoBitRate 100
  145. VideoFrameRate 10
  146. VideoGopSize 30
  147. VideoSize    320x240
  148. NoAudio

  149. PreRoll 10
  150. StartSendOnKey
  151. MaxTime 100

  152. </Stream>

  153. <Stream test_l.rm>

  154. Feed feed1.ffm
  155. Format rm

  156. VideoBitRate 40
  157. VideoFrameRate 2
  158. VideoGopSize 20
  159. VideoSize    320x240
  160. NoAudio

  161. PreRoll 20
  162. StartSendOnKey
  163. MaxTime 100

  164. </Stream>


  165. <Stream test.jpg>

  166. Feed feed1.ffm
  167. Format singlejpeg

  168. VideoFrameRate 1
  169. VideoSize 352x288
  170. NoAudio

  171. PreRoll 2

  172. </Stream>

  173. <Stream test_small.jpg>

  174. Feed feed1.ffm
  175. Format singlejpeg

  176. VideoFrameRate 1
  177. VideoSize 160x128
  178. NoAudio

  179. PreRoll 2

  180. </Stream>

  181. <Stream test.mjpg>

  182. Feed feed1.ffm
  183. Format mpjpeg

  184. VideoFrameRate 1
  185. VideoSize    320x240
  186. NoAudio
  187. StartSendOnKey

  188. PreRoll 1
  189. MaxTime 100

  190. </Stream>


  191. ##################################################################
  192. # Special stream : server status

  193. <Stream teststat.html>

  194. Format status

  195. </Stream>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值