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.

334 lines
7.8KB

  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, it is more likely that you will want to leave this high
  10. # and use MaxBandwidth, below.
  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. # 'test1.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 : MPEG2 audio (use AudioCodec to select layer 2 and 3 codec)
  55. # ogg : Ogg format (Vorbis audio codec)
  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).
  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
  66. # different bitrates.
  67. AudioBitRate 32
  68. # Number of audio channels : 1 = mono, 2 = stereo
  69. AudioChannels 1
  70. # Sampling frequency for audio. When using low bitrates, you should
  71. # lower this frequency to 22050 or 11025. The supported frequencies
  72. # depend on the selected audio codec.
  73. AudioSampleRate 44100
  74. # Bitrate for the video stream.
  75. VideoBitRate 64
  76. # Number of frames per second
  77. VideoFrameRate 3
  78. # Size of the video frame : WxH (default: 160x128)
  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
  105. # stream basis. The first match defines the action. If there are no matches,
  106. # then the default is the inverse of the last ACL statement.
  107. #
  108. # Thus 'ACL allow localhost' only allows access from localhost.
  109. # 'ACL deny 1.0.0.0 1.255.255.255' would deny the whole of network 1 and
  110. # allow everybody else.
  111. </Stream>
  112. ##################################################################
  113. # Example streams
  114. # Multipart JPEG
  115. #<Stream test.mjpg>
  116. #Feed feed1.ffm
  117. #Format mpjpeg
  118. #VideoFrameRate 2
  119. #VideoIntraOnly
  120. #NoAudio
  121. #</Stream>
  122. # Single JPEG
  123. #<Stream test.jpg>
  124. #Feed feed1.ffm
  125. #Format jpeg
  126. #VideoFrameRate 2
  127. #VideoIntraOnly
  128. ##VideoSize 352x240
  129. #NoAudio
  130. #</Stream>
  131. # Flash
  132. #<Stream test.swf>
  133. #Feed feed1.ffm
  134. #Format swf
  135. #VideoFrameRate 2
  136. #VideoIntraOnly
  137. #NoAudio
  138. #</Stream>
  139. # ASF compatible
  140. #<Stream test.asf>
  141. #Feed feed1.ffm
  142. #Format asf
  143. #VideoFrameRate 15
  144. #VideoSize 352x240
  145. #VideoBitRate 256
  146. #VideoGopSize 30
  147. #AudioBitRate 64
  148. #StartSendOnKey
  149. #</Stream>
  150. # MP3 audio
  151. #<Stream test.mp3>
  152. #Feed feed1.ffm
  153. #Format mp2
  154. #AudioCodec mp3
  155. #AudioBitRate 64
  156. #AudioChannels 1
  157. #AudioSampleRate 44100
  158. #NoVideo
  159. #</Stream>
  160. # Ogg Vorbis audio
  161. #<Stream test.ogg>
  162. #Feed feed1.ffm
  163. #Title "Stream title"
  164. #AudioBitRate 64
  165. #AudioChannels 2
  166. #AudioSampleRate 44100
  167. #NoVideo
  168. #</Stream>
  169. # Real with audio only at 32 kbits
  170. #<Stream test.ra>
  171. #Feed feed1.ffm
  172. #Format rm
  173. #AudioBitRate 32
  174. #NoVideo
  175. #NoAudio
  176. #</Stream>
  177. # Real with audio and video at 64 kbits
  178. #<Stream test.rm>
  179. #Feed feed1.ffm
  180. #Format rm
  181. #AudioBitRate 32
  182. #VideoBitRate 128
  183. #VideoFrameRate 25
  184. #VideoGopSize 25
  185. #NoAudio
  186. #</Stream>
  187. ##################################################################
  188. # A stream coming from a file : you only need to set the input
  189. # filename and optionnally a new format. Supported conversions:
  190. # avi -> asf
  191. #<Stream file.rm>
  192. #File "/usr/local/httpd/htdocs/tlive.rm"
  193. #NoAudio
  194. #</Stream>
  195. #<Stream file.asf>
  196. #File "/usr/local/httpd/htdocs/test.asf"
  197. #NoAudio
  198. #Author "Me"
  199. #Copyright "Super MegaCorp"
  200. #Title "Test stream from disk"
  201. #Comment "Test comment"
  202. #</Stream>
  203. ##################################################################
  204. # RTSP examples
  205. #
  206. # You can access to this stream with the RTSP URL:
  207. # rtsp://localhost:5454/test1-rtsp.mpg
  208. #
  209. # A non standard RTSP redirector is also created. Its URL is:
  210. # http://localhost:8090/test1-rtsp.rtsp
  211. #<Stream test1-rtsp.mpg>
  212. #Format rtp
  213. #File "/usr/local/httpd/htdocs/test1.mpg"
  214. #</Stream>
  215. ##################################################################
  216. # SDP/multicast examples
  217. #
  218. # If you want to send your stream in multicast, you must set the
  219. # multicast address with MulticastAddress. The port and the TTL can
  220. # also be set.
  221. #
  222. # An SDP file is automatically generated by ffserver by adding the
  223. # 'sdp' extension to the stream name (here
  224. # http://localhost:8090/test1-sdp.sdp). You should usually give this
  225. # file to your player to play the stream.
  226. #
  227. # The 'NoLoop' option can be used to avoid looping when the stream is
  228. # terminated.
  229. #<Stream test1-sdp.mpg>
  230. #Format rtp
  231. #File "/usr/local/httpd/htdocs/test1.mpg"
  232. #MulticastAddress 224.124.0.1
  233. #MulticastPort 5000
  234. #MulticastTTL 16
  235. #NoLoop
  236. #</Stream>
  237. ##################################################################
  238. # Special streams
  239. # Server status
  240. <Stream stat.html>
  241. Format status
  242. # Only allow local people to get to the status
  243. ACL allow localhost
  244. ACL allow 192.168.0.0 192.168.255.255
  245. #FaviconURL http://pond1.gladstonefamily.net:8080/favicon.ico
  246. </Stream>
  247. # Redirect index.html to the appropriate site
  248. <Redirect index.html>
  249. URL http://ffmpeg.sourceforge.net/
  250. </Redirect>