You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

364 lines
7.9KB

  1. # Port on which the server is listening. You must select a different
  2. # port from your standard http web server if it is running on the same
  3. # computer.
  4. Port 8090
  5. # Address on which the server is bound. Only useful if you have
  6. # several network interfaces.
  7. BindAddress 0.0.0.0
  8. # Number of simultaneous requests that can be handled. Since FFServer
  9. # is very fast, this limit is determined mainly by your Internet
  10. # connection speed.
  11. MaxClients 1000
  12. # This the maximum amount of kbit/sec that you are prepared to
  13. # consume when streaming to clients
  14. MaxBandwidth 1000
  15. # Access Log file (uses standard Apache log file format)
  16. # '-' is the standard output
  17. CustomLog -
  18. # Suppress that if you want to launch ffserver as a daemon
  19. NoDaemon
  20. ##################################################################
  21. # Definition of the live feeds. Each live feed contains one video
  22. # and/or audio sequence coming from an ffmpeg encoder or another
  23. # ffserver. This sequence may be encoded simultaneously with several
  24. # codecs at several resolutions.
  25. <Feed feed1.ffm>
  26. # You must use 'ffmpeg' to send a live feed to ffserver. In this
  27. # example, you can type:
  28. #
  29. # ffmpeg http://localhost:8090/feed1.ffm
  30. # ffserver can also do time shifting. It means that it can stream any
  31. # previously recorded live stream. The request should contain:
  32. # "http://xxxx?date=[YYYY-MM-DDT][[HH:]MM:]SS[.m...]".You must specify
  33. # a path where the feed is stored on disk. You also specify the
  34. # maximum size of the feed (100M bytes here). Default:
  35. # File=/tmp/feed_name.ffm FileMaxSize=5M
  36. File /tmp/feed1.ffm
  37. FileMaxSize 200K
  38. # Specify launch in order to start ffmpeg automatically
  39. # Launch
  40. # Only allow connections from localhost to the feed
  41. ACL allow 127.0.0.1
  42. </Feed>
  43. ##################################################################
  44. # Now you can define each stream which will be generated from the
  45. # original audio and video stream. Each format has a filename (here
  46. # 'test128.mpg'). FFServer will send this stream when answering a
  47. # request containing this filename.
  48. <Stream test1.mpg>
  49. # coming from live feed 'feed1'
  50. Feed feed1.ffm
  51. # Format of the stream : you can choose among:
  52. # mpeg : MPEG1 multiplexed video and audio
  53. # mpegvideo : only MPEG1 video
  54. # mp2 : MPEG audio layer 2
  55. # mp3 : MPEG audio layer 3 (currently sent as layer 2)
  56. # rm : Real Networks compatible stream. Multiplexed audio and video.
  57. # ra : Real Networks compatible stream. Audio only.
  58. # mpjpeg : Multipart JPEG (works with Netscape without any plugin)
  59. # jpeg : Generate a single JPEG image.
  60. # asf : ASF compatible stream (Windows Media Player format). Not finished yet.
  61. # swf : Macromedia flash(tm) compatible stream
  62. # avi : AVI format (open divx video, mpeg audio sound)
  63. # master : special ffmpeg stream used to duplicate a server
  64. Format mpeg
  65. # Bitrate for the audio stream. Codecs usually support only a few different bitrates.
  66. AudioBitRate 32
  67. # Number of audio channels : 1 = mono, 2 = stereo
  68. AudioChannels 1
  69. # Sampling frequency for audio. When using low bitrates, you should
  70. # lower this frequency to 22050 or 11025. The supported frequencies
  71. # depend on the selected audio codec.
  72. AudioSampleRate 44100
  73. # Bitrate for the video stream.
  74. VideoBitRate 64
  75. # Number of frames per second
  76. VideoFrameRate 3
  77. # Size of the video frame : WxH (default: 160x128)
  78. # W : width, H : height
  79. # The following abbreviation are defined : sqcif, qcif, cif, 4cif
  80. VideoSize 160x128
  81. # transmit only intra frames (useful for low bitrates, but kills frame rate)
  82. #VideoIntraOnly
  83. # If non intra only, an intra frame is transmitted every VideoGopSize
  84. # frames Video synchronization can only begin at an I frames.
  85. VideoGopSize 12
  86. # Choose your codecs:
  87. #AudioCodec mp2
  88. #VideoCodec mpeg1video
  89. # Suppress audio
  90. #NoAudio
  91. # Suppress video
  92. #NoVideo
  93. #VideoQMin 3
  94. #VideoQMax 31
  95. # Set this to the number of seconds backwards in time to start. Note that
  96. # most players will buffer 5-10 seconds of video, and also you need to allow
  97. # for a key frame to appear in the data stream.
  98. #PreRoll 15
  99. # ACL:
  100. # You can allow ranges of addresses (or single addresses)
  101. # ACL ALLOW <first address> <last address>
  102. # You can deny ranges of addresses (or single addresses)
  103. # ACL DENY <first address> <last address>
  104. # You can repeat the ACL allow/deny as often as you like. It is on a per stream basis. The first
  105. # match defines the action. If there are no matches, then the default is the inverse of the last
  106. # ACL statement. Thus 'ACL allow localhost' only allows access from localhost.
  107. # 'ACL deny 1.0.0.0 1.255.255.255' would deny the whole of network 1 and allow everybody else.
  108. </Stream>
  109. # second mpeg stream with high frame rate
  110. #<Stream test2.mpg>
  111. #Feed feed1.ffm
  112. #Format mpegvideo
  113. #VideoBitRate 128
  114. #VideoFrameRate 25
  115. ###VideoSize 352x240
  116. #VideoGopSize 25
  117. #NoAudio
  118. #</Stream>
  119. #
  120. ##################################################################
  121. # A stream coming from a file : you only need to set the input
  122. # filename and optionnally a new format. Supported conversions:
  123. # avi -> asf
  124. #
  125. # another file streaming
  126. <Stream file.rm>
  127. File "/usr/local/httpd/htdocs/tlive.rm"
  128. NoAudio
  129. </Stream>
  130. <Stream file.asf>
  131. File "/usr/local/httpd/htdocs/test.asf"
  132. NoAudio
  133. Author "Me"
  134. Copyright "Super MegaCorp"
  135. Title "Test stream from disk"
  136. Comment "Test comment"
  137. </Stream>
  138. ##################################################################
  139. # Another stream : Real with audio only at 32 kbits
  140. <Stream test.ra>
  141. Feed feed1.ffm
  142. Format rm
  143. AudioBitRate 32
  144. NoVideo
  145. NoAudio
  146. </Stream>
  147. ##################################################################
  148. # Another stream : Real with audio and video at 64 kbits
  149. #<Stream test.rm>
  150. #Feed feed1.ffm
  151. #Format rm
  152. #AudioBitRate 32
  153. #VideoBitRate 128
  154. #VideoFrameRate 25
  155. #VideoGopSize 25
  156. #NoAudio
  157. #</Stream>
  158. <Stream test2.rm>
  159. Feed feed1.ffm
  160. Format rm
  161. VideoBitRate 128
  162. VideoFrameRate 15
  163. VideoGopSize 25
  164. VideoSize 320x240
  165. AudioBitRate 64
  166. </Stream>
  167. ##################################################################
  168. # Another stream : Multipart JPEG
  169. #<Stream test.mjpg>
  170. #
  171. #Feed feed1.ffm
  172. #Format mpjpeg
  173. #
  174. #VideoFrameRate 2
  175. #VideoIntraOnly
  176. #NoAudio
  177. #
  178. #</Stream>
  179. ##################################################################
  180. # Another stream : Multipart JPEG
  181. #<Stream test.jpg>
  182. #
  183. #Feed feed1.ffm
  184. #Format jpeg
  185. #
  186. ## the parameters are choose here to take the same output as the
  187. ## Multipart JPEG one.
  188. #VideoFrameRate 2
  189. #VideoIntraOnly
  190. ##VideoSize 352x240
  191. #NoAudio
  192. #
  193. #</Stream>
  194. ##################################################################
  195. # Another stream : Flash
  196. #<Stream test.swf>
  197. #Feed feed1.ffm
  198. #Format swf
  199. #
  200. #VideoFrameRate 2
  201. #VideoIntraOnly
  202. #NoAudio
  203. #
  204. #</Stream>
  205. ##################################################################
  206. # Another stream : ASF compatible
  207. <Stream test.asf>
  208. Feed feed1.ffm
  209. Format asf
  210. #
  211. VideoFrameRate 15
  212. VideoSize 352x240
  213. VideoBitRate 256
  214. VideoGopSize 30
  215. AudioBitRate 64
  216. StartSendOnKey
  217. </Stream>
  218. <Stream testv.asf>
  219. Feed feed1.ffm
  220. Format asf
  221. #
  222. VideoFrameRate 15
  223. VideoSize 352x240
  224. VideoBitRate 256
  225. VideoGopSize 30
  226. NoAudio
  227. StartSendOnKey
  228. </Stream>
  229. <Stream testv2.asf>
  230. Feed feed1.ffm
  231. Format asf
  232. #
  233. VideoFrameRate 15
  234. VideoSize 352x240
  235. VideoBitRate 128
  236. VideoGopSize 30
  237. NoAudio
  238. StartSendOnKey
  239. </Stream>
  240. ##################################################################
  241. # RTSP examples
  242. # You can access to this stream with the RTSP URL:
  243. #
  244. # rtsp://localhost:5454/test1-rtsp.mpg
  245. #
  246. # A non standard redirector is also created. Its URL is:
  247. #
  248. # http://localhost:8090/test1-rtsp.rtsp
  249. #
  250. #<Stream test1-rtsp.mpg>
  251. #
  252. #Format rtp
  253. #File "/usr/local/httpd/htdocs/test1.mpg"
  254. #
  255. #</Stream>
  256. ##################################################################
  257. # Special stream : server status
  258. <Stream stat.html>
  259. Format status
  260. # Only allow local people to get to the status
  261. ACL allow localhost
  262. ACL allow 192.168.0.0 192.168.255.255
  263. FaviconURL http://pond1.gladstonefamily.net:8080/favicon.ico
  264. </Stream>
  265. <Redirect index.html>
  266. # maps index.html to the appropriate site
  267. URL http://ffmpeg.sourceforge.net/
  268. </Redirect>