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.

215 lines
4.6KB

  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 8080
  5. # Address on which the server is bound. Only useful if you have
  6. # several network interfaces.
  7. BindAddress 0.0.0.0
  8. # Host and port of the master server if you which that this server
  9. # duplicates another existing server. Otherwise, the server does the
  10. # audio/video grab itself. See the following options for the grab parameters
  11. #MasterServer http://localhost:80/index.html
  12. # Grab parameters
  13. #AudioDevice /dev/dsp
  14. #VideoDevice /dev/video
  15. # Number of simultaneous requests that can be handled. Since FFServer
  16. # is very fast, this limit is determined mainly by your Internet
  17. # connection speed.
  18. MaxClients 1000
  19. # Access Log file (uses standard Apache log file format)
  20. # '-' is the standard output
  21. CustomLog -
  22. ##################################################################
  23. # Now you can define each stream which will be generated from the
  24. # original audio and video stream. Each format has a filename (here
  25. # 'test128.mpg'). FFServer will send this stream when answering a
  26. # request containing this filename.
  27. <Stream test1.mpg>
  28. # Format of the stream : you can choose among:
  29. # mpeg1 : MPEG1 multiplexed video and audio
  30. # mpeg1video : only MPEG1 video
  31. # mp2 : MPEG audio layer 2
  32. # mp3 : MPEG audio layer 3 (currently sent as layer 2)
  33. # rm : Real Networks compatible stream. Multiplexed audio and video.
  34. # ra : Real Networks compatible stream. Audio only.
  35. # mpjpeg : Multipart JPEG (works with Netscape without any plugin)
  36. # jpeg : Generate a single JPEG image.
  37. # asf : ASF compatible stream (Windows Media Player format)
  38. # swf : Macromedia flash(tm) compatible stream
  39. # master : special ffmpeg stream used to duplicate a server
  40. Format mpeg1
  41. # Bitrate for the audio stream. Codecs usually support only a few different bitrates.
  42. AudioBitRate 32
  43. # Number of audio channels : 1 = mono, 2 = stereo
  44. AudioChannels 1
  45. # Sampling frequency for audio. When using low bitrates, you should
  46. # lower this frequency to 22050 or 11025. The supported frequencies
  47. # depend on the selected audio codec.
  48. AudioSampleRate 44100
  49. # Bitrate for the video stream.
  50. VideoBitRate 64
  51. # Number of frames per second
  52. VideoFrameRate 3
  53. # Size of the video frame : WxH
  54. # W : width, H : height
  55. # The following abbreviation are defined : sqcif, qcif, cif, 4cif
  56. #VideoSize 352x240
  57. # transmit only intra frames (useful for low bitrates)
  58. VideoIntraOnly
  59. # If non intra only, an intra frame is transmitted every VideoGopSize
  60. # frames Video synchronization can only begin at an I frames.
  61. #VideoGopSize 12
  62. </Stream>
  63. # second mpeg stream with high frame rate
  64. <Stream test2.mpg>
  65. Format mpeg1video
  66. VideoBitRate 128
  67. VideoFrameRate 25
  68. #VideoSize 352x240
  69. VideoGopSize 25
  70. </Stream>
  71. ##################################################################
  72. # Another stream : used to download data to another server which
  73. # duplicates this one
  74. <Stream master>
  75. Format master
  76. </Stream>
  77. ##################################################################
  78. # Another stream : Real with audio only at 32 kbits
  79. <Stream test.ra>
  80. Format ra
  81. AudioBitRate 32
  82. </Stream>
  83. ##################################################################
  84. # Another stream : Real with audio and video at 64 kbits
  85. <Stream test.rm>
  86. Format rm
  87. AudioBitRate 32
  88. VideoBitRate 20
  89. VideoFrameRate 2
  90. VideoIntraOnly
  91. </Stream>
  92. ##################################################################
  93. # Another stream : Mpeg audio layer 2 at 64 kbits.
  94. <Stream test.mp2>
  95. Format mp2
  96. AudioBitRate 64
  97. AudioSampleRate 44100
  98. </Stream>
  99. <Stream test1.mp2>
  100. Format mp2
  101. AudioBitRate 32
  102. AudioSampleRate 16000
  103. </Stream>
  104. ##################################################################
  105. # Another stream : Multipart JPEG
  106. <Stream test.mjpg>
  107. Format mpjpeg
  108. VideoFrameRate 2
  109. VideoIntraOnly
  110. </Stream>
  111. ##################################################################
  112. # Another stream : Multipart JPEG
  113. <Stream test.jpg>
  114. Format jpeg
  115. # the parameters are choose here to take the same output as the
  116. # Multipart JPEG one.
  117. VideoFrameRate 2
  118. VideoIntraOnly
  119. </Stream>
  120. ##################################################################
  121. # Another stream : Flash
  122. <Stream test.swf>
  123. Format swf
  124. VideoFrameRate 2
  125. VideoIntraOnly
  126. </Stream>
  127. ##################################################################
  128. # Another stream : ASF compatible
  129. <Stream test.asf>
  130. Format asf
  131. AudioBitRate 64
  132. AudioSampleRate 44100
  133. VideoFrameRate 2
  134. VideoIntraOnly
  135. </Stream>
  136. ##################################################################
  137. # Another stream : server status
  138. <Stream stat.html>
  139. Format status
  140. </Stream>