wok-next annotate ffmpeg/stuff/ffserver.conf @ rev 20570

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