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.

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