ffserver.conf 7.2 KB

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