ffserver.conf 8.0 KB

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