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.

318 lines
6.6KB

  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. ##################################################################
  19. # Definition of the live feeds. Each live feed contains one video
  20. # and/or audio sequence coming from an ffmpeg encoder or another
  21. # ffserver. This sequence may be encoded simultaneously with several
  22. # codecs at several resolutions.
  23. <Feed feed1.ffm>
  24. # You must use 'ffmpeg' to send a live feed to ffserver. In this
  25. # example, you can type:
  26. #
  27. # ffmpeg http://localhost:8090/feed1.ffm
  28. # ffserver can also do time shifting. It means that it can stream any
  29. # previously recorded live stream. The request should contain:
  30. # "http://xxxx?date=[YYYY-MM-DDT][[HH:]MM:]SS[.m...]".You must specify
  31. # a path where the feed is stored on disk. You also specify the
  32. # maximum size of the feed (100M bytes here). Default:
  33. # File=/tmp/feed_name.ffm FileMaxSize=5M
  34. File /tmp/feed1.ffm
  35. FileMaxSize 200K
  36. # Specify launch in order to start ffmpeg automatically
  37. # Launch
  38. </Feed>
  39. ##################################################################
  40. # Now you can define each stream which will be generated from the
  41. # original audio and video stream. Each format has a filename (here
  42. # 'test128.mpg'). FFServer will send this stream when answering a
  43. # request containing this filename.
  44. <Stream test1.mpg>
  45. # coming from live feed 'feed1'
  46. Feed feed1.ffm
  47. # Format of the stream : you can choose among:
  48. # mpeg : MPEG1 multiplexed video and audio
  49. # mpegvideo : only MPEG1 video
  50. # mp2 : MPEG audio layer 2
  51. # mp3 : MPEG audio layer 3 (currently sent as layer 2)
  52. # rm : Real Networks compatible stream. Multiplexed audio and video.
  53. # ra : Real Networks compatible stream. Audio only.
  54. # mpjpeg : Multipart JPEG (works with Netscape without any plugin)
  55. # jpeg : Generate a single JPEG image.
  56. # asf : ASF compatible stream (Windows Media Player format). Not finished yet.
  57. # swf : Macromedia flash(tm) compatible stream
  58. # avi : AVI format (open divx video, mpeg audio sound)
  59. # master : special ffmpeg stream used to duplicate a server
  60. Format mpeg
  61. # Bitrate for the audio stream. Codecs usually support only a few different bitrates.
  62. AudioBitRate 32
  63. # Number of audio channels : 1 = mono, 2 = stereo
  64. AudioChannels 1
  65. # Sampling frequency for audio. When using low bitrates, you should
  66. # lower this frequency to 22050 or 11025. The supported frequencies
  67. # depend on the selected audio codec.
  68. AudioSampleRate 44100
  69. # Bitrate for the video stream.
  70. VideoBitRate 64
  71. # Number of frames per second
  72. VideoFrameRate 3
  73. # Size of the video frame : WxH (default: 160x128)
  74. # W : width, H : height
  75. # The following abbreviation are defined : sqcif, qcif, cif, 4cif
  76. VideoSize 160x128
  77. # transmit only intra frames (useful for low bitrates, but kills frame rate)
  78. #VideoIntraOnly
  79. # If non intra only, an intra frame is transmitted every VideoGopSize
  80. # frames Video synchronization can only begin at an I frames.
  81. VideoGopSize 12
  82. # Choose your codecs:
  83. #AudioCodec mp2
  84. #VideoCodec mpeg1video
  85. # Suppress audio
  86. #NoAudio
  87. # Suppress video
  88. #NoVideo
  89. #VideoQMin 3
  90. #VideoQMax 31
  91. # Set this to the number of seconds backwards in time to start. Note that
  92. # most players will buffer 5-10 seconds of video, and also you need to allow
  93. # for a key frame to appear in the data stream.
  94. #PreRoll 15
  95. </Stream>
  96. # second mpeg stream with high frame rate
  97. #<Stream test2.mpg>
  98. #Feed feed1.ffm
  99. #Format mpegvideo
  100. #VideoBitRate 128
  101. #VideoFrameRate 25
  102. ###VideoSize 352x240
  103. #VideoGopSize 25
  104. #NoAudio
  105. #</Stream>
  106. #
  107. ##################################################################
  108. # A stream coming from a file : you only need to set the input
  109. # filename and optionnally a new format. Supported conversions:
  110. # avi -> asf
  111. #
  112. # another file streaming
  113. <Stream file.rm>
  114. File "/usr/local/httpd/htdocs/tlive.rm"
  115. NoAudio
  116. </Stream>
  117. <Stream file.asf>
  118. File "/usr/local/httpd/htdocs/test.asf"
  119. NoAudio
  120. </Stream>
  121. ##################################################################
  122. # Another stream : Real with audio only at 32 kbits
  123. <Stream test.ra>
  124. Feed feed1.ffm
  125. Format rm
  126. AudioBitRate 32
  127. NoVideo
  128. NoAudio
  129. </Stream>
  130. ##################################################################
  131. # Another stream : Real with audio and video at 64 kbits
  132. #<Stream test.rm>
  133. #Feed feed1.ffm
  134. #Format rm
  135. #AudioBitRate 32
  136. #VideoBitRate 128
  137. #VideoFrameRate 25
  138. #VideoGopSize 25
  139. #NoAudio
  140. #</Stream>
  141. <Stream test2.rm>
  142. Feed feed1.ffm
  143. Format rm
  144. VideoBitRate 128
  145. VideoFrameRate 15
  146. VideoGopSize 25
  147. VideoSize 320x240
  148. AudioBitRate 64
  149. </Stream>
  150. ##################################################################
  151. # Another stream : Multipart JPEG
  152. #<Stream test.mjpg>
  153. #
  154. #Feed feed1.ffm
  155. #Format mpjpeg
  156. #
  157. #VideoFrameRate 2
  158. #VideoIntraOnly
  159. #NoAudio
  160. #
  161. #</Stream>
  162. ##################################################################
  163. # Another stream : Multipart JPEG
  164. #<Stream test.jpg>
  165. #
  166. #Feed feed1.ffm
  167. #Format jpeg
  168. #
  169. ## the parameters are choose here to take the same output as the
  170. ## Multipart JPEG one.
  171. #VideoFrameRate 2
  172. #VideoIntraOnly
  173. ##VideoSize 352x240
  174. #NoAudio
  175. #
  176. #</Stream>
  177. ##################################################################
  178. # Another stream : Flash
  179. #<Stream test.swf>
  180. #Feed feed1.ffm
  181. #Format swf
  182. #
  183. #VideoFrameRate 2
  184. #VideoIntraOnly
  185. #NoAudio
  186. #
  187. #</Stream>
  188. ##################################################################
  189. # Another stream : ASF compatible
  190. <Stream test.asf>
  191. Feed feed1.ffm
  192. Format asf
  193. #
  194. VideoFrameRate 15
  195. VideoSize 352x240
  196. VideoBitRate 256
  197. VideoGopSize 30
  198. AudioBitRate 64
  199. StartSendOnKey
  200. </Stream>
  201. <Stream testv.asf>
  202. Feed feed1.ffm
  203. Format asf
  204. #
  205. VideoFrameRate 15
  206. VideoSize 352x240
  207. VideoBitRate 256
  208. VideoGopSize 30
  209. NoAudio
  210. StartSendOnKey
  211. </Stream>
  212. <Stream testv2.asf>
  213. Feed feed1.ffm
  214. Format asf
  215. #
  216. VideoFrameRate 15
  217. VideoSize 352x240
  218. VideoBitRate 128
  219. VideoGopSize 30
  220. NoAudio
  221. StartSendOnKey
  222. </Stream>
  223. ##################################################################
  224. # Special stream : server status
  225. <Stream stat.html>
  226. Format status
  227. FaviconURL http://pond1.gladstonefamily.net:8080/favicon.ico
  228. </Stream>
  229. <Redirect index.html>
  230. # maps index.html to the appropriate site
  231. URL http://ffmpeg.sourceforge.net/
  232. </Redirect>