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.

353 lines
8.3KB

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