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.

322 lines
6.7KB

  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. Author "Me"
  121. Copyright "Super MegaCorp"
  122. Title "Test stream from disk"
  123. Comment "Test comment"
  124. </Stream>
  125. ##################################################################
  126. # Another stream : Real with audio only at 32 kbits
  127. <Stream test.ra>
  128. Feed feed1.ffm
  129. Format rm
  130. AudioBitRate 32
  131. NoVideo
  132. NoAudio
  133. </Stream>
  134. ##################################################################
  135. # Another stream : Real with audio and video at 64 kbits
  136. #<Stream test.rm>
  137. #Feed feed1.ffm
  138. #Format rm
  139. #AudioBitRate 32
  140. #VideoBitRate 128
  141. #VideoFrameRate 25
  142. #VideoGopSize 25
  143. #NoAudio
  144. #</Stream>
  145. <Stream test2.rm>
  146. Feed feed1.ffm
  147. Format rm
  148. VideoBitRate 128
  149. VideoFrameRate 15
  150. VideoGopSize 25
  151. VideoSize 320x240
  152. AudioBitRate 64
  153. </Stream>
  154. ##################################################################
  155. # Another stream : Multipart JPEG
  156. #<Stream test.mjpg>
  157. #
  158. #Feed feed1.ffm
  159. #Format mpjpeg
  160. #
  161. #VideoFrameRate 2
  162. #VideoIntraOnly
  163. #NoAudio
  164. #
  165. #</Stream>
  166. ##################################################################
  167. # Another stream : Multipart JPEG
  168. #<Stream test.jpg>
  169. #
  170. #Feed feed1.ffm
  171. #Format jpeg
  172. #
  173. ## the parameters are choose here to take the same output as the
  174. ## Multipart JPEG one.
  175. #VideoFrameRate 2
  176. #VideoIntraOnly
  177. ##VideoSize 352x240
  178. #NoAudio
  179. #
  180. #</Stream>
  181. ##################################################################
  182. # Another stream : Flash
  183. #<Stream test.swf>
  184. #Feed feed1.ffm
  185. #Format swf
  186. #
  187. #VideoFrameRate 2
  188. #VideoIntraOnly
  189. #NoAudio
  190. #
  191. #</Stream>
  192. ##################################################################
  193. # Another stream : ASF compatible
  194. <Stream test.asf>
  195. Feed feed1.ffm
  196. Format asf
  197. #
  198. VideoFrameRate 15
  199. VideoSize 352x240
  200. VideoBitRate 256
  201. VideoGopSize 30
  202. AudioBitRate 64
  203. StartSendOnKey
  204. </Stream>
  205. <Stream testv.asf>
  206. Feed feed1.ffm
  207. Format asf
  208. #
  209. VideoFrameRate 15
  210. VideoSize 352x240
  211. VideoBitRate 256
  212. VideoGopSize 30
  213. NoAudio
  214. StartSendOnKey
  215. </Stream>
  216. <Stream testv2.asf>
  217. Feed feed1.ffm
  218. Format asf
  219. #
  220. VideoFrameRate 15
  221. VideoSize 352x240
  222. VideoBitRate 128
  223. VideoGopSize 30
  224. NoAudio
  225. StartSendOnKey
  226. </Stream>
  227. ##################################################################
  228. # Special stream : server status
  229. <Stream stat.html>
  230. Format status
  231. FaviconURL http://pond1.gladstonefamily.net:8080/favicon.ico
  232. </Stream>
  233. <Redirect index.html>
  234. # maps index.html to the appropriate site
  235. URL http://ffmpeg.sourceforge.net/
  236. </Redirect>