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.

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