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.

262 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)
  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. # Suppress audio
  78. #NoAudio
  79. # Suppress video
  80. #NoVideo
  81. </Stream>
  82. # second mpeg stream with high frame rate
  83. <Stream test2.mpg>
  84. Feed feed1.ffm
  85. Format mpegvideo
  86. VideoBitRate 128
  87. VideoFrameRate 25
  88. #VideoSize 352x240
  89. VideoGopSize 25
  90. </Stream>
  91. ##################################################################
  92. # A stream coming from a file : you only need to set the input
  93. # filename and optionnally a new format. Supported conversions:
  94. # avi -> asf
  95. #
  96. <Stream file.asf>
  97. #File "/tmp/file.avi"
  98. File "tmp/file.avi"
  99. # avi must be converted to asf to be streamed
  100. Format asf
  101. </Stream>
  102. # another file streaming
  103. <Stream file.mp3>
  104. File "tmp/file.mp3"
  105. </Stream>
  106. ##################################################################
  107. # Another stream : Real with audio only at 32 kbits
  108. <Stream test.ra>
  109. Feed feed1.ffm
  110. Format rm
  111. AudioBitRate 32
  112. NoVideo
  113. </Stream>
  114. ##################################################################
  115. # Another stream : Real with audio and video at 64 kbits
  116. <Stream test.rm>
  117. Feed feed1.ffm
  118. Format rm
  119. AudioBitRate 32
  120. VideoBitRate 20
  121. VideoFrameRate 2
  122. VideoIntraOnly
  123. </Stream>
  124. ##################################################################
  125. # Another stream : Mpeg audio layer 2 at 64 kbits.
  126. <Stream test.mp2>
  127. Feed feed1.ffm
  128. Format mp2
  129. AudioBitRate 64
  130. AudioSampleRate 44100
  131. </Stream>
  132. <Stream test1.mp2>
  133. Feed feed1.ffm
  134. Format mp2
  135. AudioBitRate 32
  136. AudioSampleRate 16000
  137. </Stream>
  138. ##################################################################
  139. # Another stream : Multipart JPEG
  140. <Stream test.mjpg>
  141. Feed feed1.ffm
  142. Format mpjpeg
  143. VideoFrameRate 2
  144. VideoIntraOnly
  145. </Stream>
  146. ##################################################################
  147. # Another stream : Multipart JPEG
  148. <Stream test.jpg>
  149. Feed feed1.ffm
  150. Format jpeg
  151. # the parameters are choose here to take the same output as the
  152. # Multipart JPEG one.
  153. VideoFrameRate 2
  154. VideoIntraOnly
  155. #VideoSize 352x240
  156. </Stream>
  157. ##################################################################
  158. # Another stream : Flash
  159. <Stream test.swf>
  160. Feed feed1.ffm
  161. Format swf
  162. VideoFrameRate 2
  163. VideoIntraOnly
  164. </Stream>
  165. ##################################################################
  166. # Another stream : ASF compatible
  167. <Stream test.asf>
  168. Feed feed1.ffm
  169. Format asf
  170. AudioBitRate 64
  171. AudioSampleRate 44100
  172. VideoFrameRate 2
  173. VideoIntraOnly
  174. </Stream>
  175. ##################################################################
  176. # Special stream : server status
  177. <Stream stat.html>
  178. Format status
  179. </Stream>