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.

279 lines
6.1KB

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