wok-next view ffmpeg/stuff/ffserver.conf @ rev 20990
Remove mate116 stash
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 02 22:23:34 2018 +0300 (2018-10-02) |
parents | |
children |
line source
1 # /etc/ffserver.conf
2 #
3 # Port on which the server is listening. You must select a different
4 # port from your standard HTTP web server if it is running on the same
5 # computer.
6 Port 8090
8 # Address on which the server is bound. Only useful if you have
9 # several network interfaces.
10 BindAddress 0.0.0.0
12 # Number of simultaneous HTTP connections that can be handled. It has
13 # to be defined *before* the MaxClients parameter, since it defines the
14 # MaxClients maximum limit.
15 MaxHTTPConnections 2000
17 # Number of simultaneous requests that can be handled. Since FFServer
18 # is very fast, it is more likely that you will want to leave this high
19 # and use MaxBandwidth, below.
20 MaxClients 1000
22 # This the maximum amount of kbit/sec that you are prepared to
23 # consume when streaming to clients.
24 MaxBandwidth 1000
26 # Access log file (uses standard Apache log file format)
27 # '-' is the standard output.
28 CustomLog -
30 # Suppress that if you want to launch ffserver as a daemon.
31 NoDaemon
34 ##################################################################
35 # Definition of the live feeds. Each live feed contains one video
36 # and/or audio sequence coming from an ffmpeg encoder or another
37 # ffserver. This sequence may be encoded simultaneously with several
38 # codecs at several resolutions.
40 <Feed feed1.ffm>
42 # You must use 'ffmpeg' to send a live feed to ffserver. In this
43 # example, you can type:
44 #
45 # ffmpeg http://localhost:8090/feed1.ffm
47 # ffserver can also do time shifting. It means that it can stream any
48 # previously recorded live stream. The request should contain:
49 # "http://xxxx?date=[YYYY-MM-DDT][[HH:]MM:]SS[.m...]".You must specify
50 # a path where the feed is stored on disk. You also specify the
51 # maximum size of the feed, where zero means unlimited. Default:
52 # File=/tmp/feed_name.ffm FileMaxSize=5M
53 File /tmp/feed1.ffm
54 FileMaxSize 200K
56 # You could specify
57 # ReadOnlyFile /saved/specialvideo.ffm
58 # This marks the file as readonly and it will not be deleted or updated.
60 # Specify launch in order to start ffmpeg automatically.
61 # First ffmpeg must be defined with an appropriate path if needed,
62 # after that options can follow, but avoid adding the http:// field
63 #Launch ffmpeg
65 # Only allow connections from localhost to the feed.
66 ACL allow 127.0.0.1
68 </Feed>
71 ##################################################################
72 # Now you can define each stream which will be generated from the
73 # original audio and video stream. Each format has a filename (here
74 # 'test1.mpg'). FFServer will send this stream when answering a
75 # request containing this filename.
77 <Stream test1.mpg>
79 # coming from live feed 'feed1'
80 Feed feed1.ffm
82 # Format of the stream : you can choose among:
83 # mpeg : MPEG-1 multiplexed video and audio
84 # mpegvideo : only MPEG-1 video
85 # mp2 : MPEG-2 audio (use AudioCodec to select layer 2 and 3 codec)
86 # ogg : Ogg format (Vorbis audio codec)
87 # rm : RealNetworks-compatible stream. Multiplexed audio and video.
88 # ra : RealNetworks-compatible stream. Audio only.
89 # mpjpeg : Multipart JPEG (works with Netscape without any plugin)
90 # jpeg : Generate a single JPEG image.
91 # asf : ASF compatible streaming (Windows Media Player format).
92 # swf : Macromedia Flash compatible stream
93 # avi : AVI format (MPEG-4 video, MPEG audio sound)
94 Format mpeg
96 # Bitrate for the audio stream. Codecs usually support only a few
97 # different bitrates.
98 AudioBitRate 32
100 # Number of audio channels: 1 = mono, 2 = stereo
101 AudioChannels 1
103 # Sampling frequency for audio. When using low bitrates, you should
104 # lower this frequency to 22050 or 11025. The supported frequencies
105 # depend on the selected audio codec.
106 AudioSampleRate 44100
108 # Bitrate for the video stream
109 VideoBitRate 64
111 # Ratecontrol buffer size
112 VideoBufferSize 40
114 # Number of frames per second
115 VideoFrameRate 3
117 # Size of the video frame: WxH (default: 160x128)
118 # The following abbreviations are defined: sqcif, qcif, cif, 4cif, qqvga,
119 # qvga, vga, svga, xga, uxga, qxga, sxga, qsxga, hsxga, wvga, wxga, wsxga,
120 # wuxga, woxga, wqsxga, wquxga, whsxga, whuxga, cga, ega, hd480, hd720,
121 # hd1080
122 VideoSize 160x128
124 # Transmit only intra frames (useful for low bitrates, but kills frame rate).
125 #VideoIntraOnly
127 # If non-intra only, an intra frame is transmitted every VideoGopSize
128 # frames. Video synchronization can only begin at an intra frame.
129 VideoGopSize 12
131 # More MPEG-4 parameters
132 # VideoHighQuality
133 # Video4MotionVector
135 # Choose your codecs:
136 #AudioCodec mp2
137 #VideoCodec mpeg1video
139 # Suppress audio
140 #NoAudio
142 # Suppress video
143 #NoVideo
145 #VideoQMin 3
146 #VideoQMax 31
148 # Set this to the number of seconds backwards in time to start. Note that
149 # most players will buffer 5-10 seconds of video, and also you need to allow
150 # for a keyframe to appear in the data stream.
151 #Preroll 15
153 # ACL:
155 # You can allow ranges of addresses (or single addresses)
156 #ACL ALLOW <first address>
158 # You can deny ranges of addresses (or single addresses)
159 #ACL DENY <first address>
161 # You can repeat the ACL allow/deny as often as you like. It is on a per
162 # stream basis. The first match defines the action. If there are no matches,
163 # then the default is the inverse of the last ACL statement.
164 #
165 # Thus 'ACL allow localhost' only allows access from localhost.
166 # 'ACL deny 1.0.0.0 1.255.255.255' would deny the whole of network 1 and
167 # allow everybody else.
169 </Stream>
172 ##################################################################
173 # Example streams
176 # Multipart JPEG
178 #<Stream test.mjpg>
179 #Feed feed1.ffm
180 #Format mpjpeg
181 #VideoFrameRate 2
182 #VideoIntraOnly
183 #NoAudio
184 #Strict -1
185 #</Stream>
188 # Single JPEG
190 #<Stream test.jpg>
191 #Feed feed1.ffm
192 #Format jpeg
193 #VideoFrameRate 2
194 #VideoIntraOnly
195 ##VideoSize 352x240
196 #NoAudio
197 #Strict -1
198 #</Stream>
201 # Flash
203 #<Stream test.swf>
204 #Feed feed1.ffm
205 #Format swf
206 #VideoFrameRate 2
207 #VideoIntraOnly
208 #NoAudio
209 #</Stream>
212 # ASF compatible
214 <Stream test.asf>
215 Feed feed1.ffm
216 Format asf
217 VideoFrameRate 15
218 VideoSize 352x240
219 VideoBitRate 256
220 VideoBufferSize 40
221 VideoGopSize 30
222 AudioBitRate 64
223 StartSendOnKey
224 </Stream>
227 # MP3 audio
229 #<Stream test.mp3>
230 #Feed feed1.ffm
231 #Format mp2
232 #AudioCodec mp3
233 #AudioBitRate 64
234 #AudioChannels 1
235 #AudioSampleRate 44100
236 #NoVideo
237 #</Stream>
240 # Ogg Vorbis audio
242 #<Stream test.ogg>
243 #Feed feed1.ffm
244 #Title "Stream title"
245 #AudioBitRate 64
246 #AudioChannels 2
247 #AudioSampleRate 44100
248 #NoVideo
249 #</Stream>
252 # Real with audio only at 32 kbits
254 #<Stream test.ra>
255 #Feed feed1.ffm
256 #Format rm
257 #AudioBitRate 32
258 #NoVideo
259 #NoAudio
260 #</Stream>
263 # Real with audio and video at 64 kbits
265 #<Stream test.rm>
266 #Feed feed1.ffm
267 #Format rm
268 #AudioBitRate 32
269 #VideoBitRate 128
270 #VideoFrameRate 25
271 #VideoGopSize 25
272 #NoAudio
273 #</Stream>
276 ##################################################################
277 # A stream coming from a file: you only need to set the input
278 # filename and optionally a new format. Supported conversions:
279 # AVI -> ASF
281 #<Stream file.rm>
282 #File "/usr/local/httpd/htdocs/tlive.rm"
283 #NoAudio
284 #</Stream>
286 #<Stream file.asf>
287 #File "/usr/local/httpd/htdocs/test.asf"
288 #NoAudio
289 #Author "Me"
290 #Copyright "Super MegaCorp"
291 #Title "Test stream from disk"
292 #Comment "Test comment"
293 #</Stream>
296 ##################################################################
297 # RTSP examples
298 #
299 # You can access this stream with the RTSP URL:
300 # rtsp://localhost:5454/test1-rtsp.mpg
301 #
302 # A non-standard RTSP redirector is also created. Its URL is:
303 # http://localhost:8090/test1-rtsp.rtsp
305 #<Stream test1-rtsp.mpg>
306 #Format rtp
307 #File "/usr/local/httpd/htdocs/test1.mpg"
308 #</Stream>
311 # Transcode an incoming live feed to another live feed,
312 # using libx264 and video presets
314 #<Stream live.h264>
315 #Format rtp
316 #Feed feed1.ffm
317 #VideoCodec libx264
318 #VideoFrameRate 24
319 #VideoBitRate 100
320 #VideoSize 480x272
321 #AVPresetVideo default
322 #AVPresetVideo baseline
323 #AVOptionVideo flags +global_header
324 #
325 #AudioCodec libfaac
326 #AudioBitRate 32
327 #AudioChannels 2
328 #AudioSampleRate 22050
329 #AVOptionAudio flags +global_header
330 #</Stream>
332 ##################################################################
333 # SDP/multicast examples
334 #
335 # If you want to send your stream in multicast, you must set the
336 # multicast address with MulticastAddress. The port and the TTL can
337 # also be set.
338 #
339 # An SDP file is automatically generated by ffserver by adding the
340 # 'sdp' extension to the stream name (here
341 # http://localhost:8090/test1-sdp.sdp). You should usually give this
342 # file to your player to play the stream.
343 #
344 # The 'NoLoop' option can be used to avoid looping when the stream is
345 # terminated.
347 #<Stream test1-sdp.mpg>
348 #Format rtp
349 #File "/usr/local/httpd/htdocs/test1.mpg"
350 #MulticastAddress 224.124.0.1
351 #MulticastPort 5000
352 #MulticastTTL 16
353 #NoLoop
354 #</Stream>
357 ##################################################################
358 # Special streams
360 # Server status
362 <Stream stat.html>
363 Format status
365 # Only allow local people to get the status
366 ACL allow localhost
367 ACL allow 192.168.0.0 192.168.255.255
369 #FaviconURL http://pond1.gladstonefamily.net:8080/favicon.ico
370 </Stream>
373 # Redirect index.html to the appropriate site
375 <Redirect index.html>
376 URL http://www.ffmpeg.org/
377 </Redirect>