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.

348 lines
8.0KB

  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. # You could specify
  39. # ReadOnlyFile /saved/specialvideo.ffm
  40. # This marks the file as readonly and it will not be deleted or updated.
  41. # Specify launch in order to start ffmpeg automatically.
  42. #Launch
  43. # Only allow connections from localhost to the feed.
  44. ACL allow 127.0.0.1
  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. # 'test1.mpg'). FFServer will send this stream when answering a
  50. # request containing this filename.
  51. <Stream test1.mpg>
  52. # coming from live feed 'feed1'
  53. Feed feed1.ffm
  54. # Format of the stream : you can choose among:
  55. # mpeg : MPEG-1 multiplexed video and audio
  56. # mpegvideo : only MPEG-1 video
  57. # mp2 : MPEG-2 audio (use AudioCodec to select layer 2 and 3 codec)
  58. # ogg : Ogg format (Vorbis audio codec)
  59. # rm : RealNetworks-compatible stream. Multiplexed audio and video.
  60. # ra : RealNetworks-compatible stream. Audio only.
  61. # mpjpeg : Multipart JPEG (works with Netscape without any plugin)
  62. # jpeg : Generate a single JPEG image.
  63. # asf : ASF compatible streaming (Windows Media Player format).
  64. # swf : Macromedia Flash compatible stream
  65. # avi : AVI format (MPEG-4 video, MPEG audio sound)
  66. # master : special ffmpeg stream used to duplicate a server
  67. Format mpeg
  68. # Bitrate for the audio stream. Codecs usually support only a few
  69. # different bitrates.
  70. AudioBitRate 32
  71. # Number of audio channels: 1 = mono, 2 = stereo
  72. AudioChannels 1
  73. # Sampling frequency for audio. When using low bitrates, you should
  74. # lower this frequency to 22050 or 11025. The supported frequencies
  75. # depend on the selected audio codec.
  76. AudioSampleRate 44100
  77. # Bitrate for the video stream
  78. VideoBitRate 64
  79. # Ratecontrol buffer size
  80. VideoBufferSize 40
  81. # Number of frames per second
  82. VideoFrameRate 3
  83. # Size of the video frame: WxH (default: 160x128)
  84. # The following abbreviations are defined: sqcif, qcif, cif, 4cif
  85. VideoSize 160x128
  86. # Transmit only intra frames (useful for low bitrates, but kills frame rate).
  87. #VideoIntraOnly
  88. # If non-intra only, an intra frame is transmitted every VideoGopSize
  89. # frames. Video synchronization can only begin at an intra frame.
  90. VideoGopSize 12
  91. # More MPEG-4 parameters
  92. # VideoHighQuality
  93. # Video4MotionVector
  94. # Choose your codecs:
  95. #AudioCodec mp2
  96. #VideoCodec mpeg1video
  97. # Suppress audio
  98. #NoAudio
  99. # Suppress video
  100. #NoVideo
  101. #VideoQMin 3
  102. #VideoQMax 31
  103. # Set this to the number of seconds backwards in time to start. Note that
  104. # most players will buffer 5-10 seconds of video, and also you need to allow
  105. # for a keyframe to appear in the data stream.
  106. #Preroll 15
  107. # ACL:
  108. # You can allow ranges of addresses (or single addresses)
  109. #ACL ALLOW <first address> <last address>
  110. # You can deny ranges of addresses (or single addresses)
  111. #ACL DENY <first address> <last address>
  112. # You can repeat the ACL allow/deny as often as you like. It is on a per
  113. # stream basis. The first match defines the action. If there are no matches,
  114. # then the default is the inverse of the last ACL statement.
  115. #
  116. # Thus 'ACL allow localhost' only allows access from localhost.
  117. # 'ACL deny 1.0.0.0 1.255.255.255' would deny the whole of network 1 and
  118. # allow everybody else.
  119. </Stream>
  120. ##################################################################
  121. # Example streams
  122. # Multipart JPEG
  123. #<Stream test.mjpg>
  124. #Feed feed1.ffm
  125. #Format mpjpeg
  126. #VideoFrameRate 2
  127. #VideoIntraOnly
  128. #NoAudio
  129. #Strict -1
  130. #</Stream>
  131. # Single JPEG
  132. #<Stream test.jpg>
  133. #Feed feed1.ffm
  134. #Format jpeg
  135. #VideoFrameRate 2
  136. #VideoIntraOnly
  137. ##VideoSize 352x240
  138. #NoAudio
  139. #Strict -1
  140. #</Stream>
  141. # Flash
  142. #<Stream test.swf>
  143. #Feed feed1.ffm
  144. #Format swf
  145. #VideoFrameRate 2
  146. #VideoIntraOnly
  147. #NoAudio
  148. #</Stream>
  149. # ASF compatible
  150. <Stream test.asf>
  151. Feed feed1.ffm
  152. Format asf
  153. VideoFrameRate 15
  154. VideoSize 352x240
  155. VideoBitRate 256
  156. VideoBufferSize 40
  157. VideoGopSize 30
  158. AudioBitRate 64
  159. StartSendOnKey
  160. </Stream>
  161. # MP3 audio
  162. #<Stream test.mp3>
  163. #Feed feed1.ffm
  164. #Format mp2
  165. #AudioCodec mp3
  166. #AudioBitRate 64
  167. #AudioChannels 1
  168. #AudioSampleRate 44100
  169. #NoVideo
  170. #</Stream>
  171. # Ogg Vorbis audio
  172. #<Stream test.ogg>
  173. #Feed feed1.ffm
  174. #Title "Stream title"
  175. #AudioBitRate 64
  176. #AudioChannels 2
  177. #AudioSampleRate 44100
  178. #NoVideo
  179. #</Stream>
  180. # Real with audio only at 32 kbits
  181. #<Stream test.ra>
  182. #Feed feed1.ffm
  183. #Format rm
  184. #AudioBitRate 32
  185. #NoVideo
  186. #NoAudio
  187. #</Stream>
  188. # Real with audio and video at 64 kbits
  189. #<Stream test.rm>
  190. #Feed feed1.ffm
  191. #Format rm
  192. #AudioBitRate 32
  193. #VideoBitRate 128
  194. #VideoFrameRate 25
  195. #VideoGopSize 25
  196. #NoAudio
  197. #</Stream>
  198. ##################################################################
  199. # A stream coming from a file: you only need to set the input
  200. # filename and optionally a new format. Supported conversions:
  201. # AVI -> ASF
  202. #<Stream file.rm>
  203. #File "/usr/local/httpd/htdocs/tlive.rm"
  204. #NoAudio
  205. #</Stream>
  206. #<Stream file.asf>
  207. #File "/usr/local/httpd/htdocs/test.asf"
  208. #NoAudio
  209. #Author "Me"
  210. #Copyright "Super MegaCorp"
  211. #Title "Test stream from disk"
  212. #Comment "Test comment"
  213. #</Stream>
  214. ##################################################################
  215. # RTSP examples
  216. #
  217. # You can access this stream with the RTSP URL:
  218. # rtsp://localhost:5454/test1-rtsp.mpg
  219. #
  220. # A non-standard RTSP redirector is also created. Its URL is:
  221. # http://localhost:8090/test1-rtsp.rtsp
  222. #<Stream test1-rtsp.mpg>
  223. #Format rtp
  224. #File "/usr/local/httpd/htdocs/test1.mpg"
  225. #</Stream>
  226. ##################################################################
  227. # SDP/multicast examples
  228. #
  229. # If you want to send your stream in multicast, you must set the
  230. # multicast address with MulticastAddress. The port and the TTL can
  231. # also be set.
  232. #
  233. # An SDP file is automatically generated by ffserver by adding the
  234. # 'sdp' extension to the stream name (here
  235. # http://localhost:8090/test1-sdp.sdp). You should usually give this
  236. # file to your player to play the stream.
  237. #
  238. # The 'NoLoop' option can be used to avoid looping when the stream is
  239. # terminated.
  240. #<Stream test1-sdp.mpg>
  241. #Format rtp
  242. #File "/usr/local/httpd/htdocs/test1.mpg"
  243. #MulticastAddress 224.124.0.1
  244. #MulticastPort 5000
  245. #MulticastTTL 16
  246. #NoLoop
  247. #</Stream>
  248. ##################################################################
  249. # Special streams
  250. # Server status
  251. <Stream stat.html>
  252. Format status
  253. # Only allow local people to get the status
  254. ACL allow localhost
  255. ACL allow 192.168.0.0 192.168.255.255
  256. #FaviconURL http://pond1.gladstonefamily.net:8080/favicon.ico
  257. </Stream>
  258. # Redirect index.html to the appropriate site
  259. <Redirect index.html>
  260. URL http://www.ffmpeg.org/
  261. </Redirect>