| 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 |
|
|---|
| 6 | # Address on which the server is bound. Only useful if you have
|
|---|
| 7 | # several network interfaces.
|
|---|
| 8 | BindAddress 0.0.0.0
|
|---|
| 9 |
|
|---|
| 10 | # Number of simultaneous HTTP connections that can be handled. It has
|
|---|
| 11 | # to be defined *before* the MaxClients parameter, since it defines the
|
|---|
| 12 | # MaxClients maximum limit.
|
|---|
| 13 | MaxHTTPConnections 6
|
|---|
| 14 |
|
|---|
| 15 | # Number of simultaneous requests that can be handled. Since FFServer
|
|---|
| 16 | # is very fast, it is more likely that you will want to leave this high
|
|---|
| 17 | # and use MaxBandwidth, below.
|
|---|
| 18 | MaxClients 3
|
|---|
| 19 |
|
|---|
| 20 | # This is the maximum amount of kbit/sec that you are prepared to
|
|---|
| 21 | # consume when streaming to clients.
|
|---|
| 22 | MaxBandwidth 10000
|
|---|
| 23 |
|
|---|
| 24 | # Access log file (uses standard Apache log file format)
|
|---|
| 25 | # '-' is the standard output.
|
|---|
| 26 | CustomLog /etc/ffserver.log
|
|---|
| 27 |
|
|---|
| 28 | # Suppress that if you want to launch ffserver as a daemon.
|
|---|
| 29 | NoDaemon
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 | ##################################################################
|
|---|
| 33 | # Definition of the live feeds. Each live feed contains one video
|
|---|
| 34 | # and/or audio sequence coming from an ffmpeg encoder or another
|
|---|
| 35 | # ffserver. This sequence may be encoded simultaneously with several
|
|---|
| 36 | # codecs at several resolutions.
|
|---|
| 37 |
|
|---|
| 38 | <Feed feed1.ffm>
|
|---|
| 39 | File /tmp/feed1.ffm
|
|---|
| 40 | FileMaxSize 10M
|
|---|
| 41 | ACL allow 127.0.0.1
|
|---|
| 42 | </Feed>
|
|---|
| 43 |
|
|---|
| 44 | <Feed feed2.ffm>
|
|---|
| 45 | File /tmp/feed2.ffm
|
|---|
| 46 | FileMaxSize 10M
|
|---|
| 47 | ACL allow 127.0.0.1
|
|---|
| 48 | </Feed>
|
|---|
| 49 |
|
|---|
| 50 | <Feed feed3.ffm>
|
|---|
| 51 | File /tmp/feed3.ffm
|
|---|
| 52 | FileMaxSize 10M
|
|---|
| 53 | ACL allow 127.0.0.1
|
|---|
| 54 | </Feed>
|
|---|
| 55 |
|
|---|
| 56 | <Feed feed4.ffm>
|
|---|
| 57 | File /tmp/feed4.ffm
|
|---|
| 58 | FileMaxSize 10M
|
|---|
| 59 | ACL allow 127.0.0.1
|
|---|
| 60 | </Feed>
|
|---|
| 61 |
|
|---|
| 62 | ##################################################################
|
|---|
| 63 | # Now you can define each stream which will be generated from the
|
|---|
| 64 | # original audio and video stream. Each format has a filename (here
|
|---|
| 65 | # 'test1.mpg'). FFServer will send this stream when answering a
|
|---|
| 66 | # request containing this filename.
|
|---|
| 67 |
|
|---|
| 68 | <Stream 79-1.flv>
|
|---|
| 69 | Feed feed1.ffm
|
|---|
| 70 |
|
|---|
| 71 | Format flv
|
|---|
| 72 | AVOptionVideo flags +global_header
|
|---|
| 73 | AVOptionAudio flags +global_header
|
|---|
| 74 |
|
|---|
| 75 | AudioBitRate 128k
|
|---|
| 76 | AudioChannels 1
|
|---|
| 77 | AudioSampleRate 44100
|
|---|
| 78 |
|
|---|
| 79 | VideoBitRate 320k
|
|---|
| 80 | #VideoBufferSize 40
|
|---|
| 81 | VideoFrameRate 25
|
|---|
| 82 | VideoSize qvga
|
|---|
| 83 | #VideoIntraOnly
|
|---|
| 84 | #VideoGopSize 12
|
|---|
| 85 |
|
|---|
| 86 | # Choose your codecs:
|
|---|
| 87 | #AudioCodec mp2
|
|---|
| 88 | #VideoCodec mpeg1video
|
|---|
| 89 |
|
|---|
| 90 | # Suppress audio
|
|---|
| 91 | #NoAudio
|
|---|
| 92 |
|
|---|
| 93 | # Suppress video
|
|---|
| 94 | #NoVideo
|
|---|
| 95 |
|
|---|
| 96 | #VideoQMin 3
|
|---|
| 97 | #VideoQMax 31
|
|---|
| 98 |
|
|---|
| 99 | # Set this to the number of seconds backwards in time to start. Note that
|
|---|
| 100 | # most players will buffer 5-10 seconds of video, and also you need to allow
|
|---|
| 101 | # for a keyframe to appear in the data stream.
|
|---|
| 102 | #Preroll 15
|
|---|
| 103 |
|
|---|
| 104 | # ACL:
|
|---|
| 105 |
|
|---|
| 106 | # You can allow ranges of addresses (or single addresses)
|
|---|
| 107 | #ACL ALLOW <first address>
|
|---|
| 108 |
|
|---|
| 109 | # You can deny ranges of addresses (or single addresses)
|
|---|
| 110 | #ACL DENY <first address>
|
|---|
| 111 |
|
|---|
| 112 | # You can repeat the ACL allow/deny as often as you like. It is on a per
|
|---|
| 113 | # stream basis. The first match defines the action. If there are no matches,
|
|---|
| 114 | # then the default is the inverse of the last ACL statement.
|
|---|
| 115 | #
|
|---|
| 116 | # Thus 'ACL allow localhost' only allows access from localhost.
|
|---|
| 117 | # 'ACL deny 1.0.0.0 1.255.255.255' would deny the whole of network 1 and
|
|---|
| 118 | # allow everybody else.
|
|---|
| 119 |
|
|---|
| 120 | </Stream>
|
|---|
| 121 |
|
|---|
| 122 | <Stream 79-2.flv>
|
|---|
| 123 | Feed feed2.ffm
|
|---|
| 124 | Format flv
|
|---|
| 125 | AudioBitRate 128
|
|---|
| 126 | AudioChannels 1
|
|---|
| 127 | AudioSampleRate 44100
|
|---|
| 128 | VideoFrameRate 25
|
|---|
| 129 | VideoSize qvga
|
|---|
| 130 | </Stream>
|
|---|
| 131 |
|
|---|
| 132 | <Stream 79-3.flv>
|
|---|
| 133 | Feed feed3.ffm
|
|---|
| 134 | Format flv
|
|---|
| 135 | AudioBitRate 128
|
|---|
| 136 | AudioChannels 1
|
|---|
| 137 | AudioSampleRate 44100
|
|---|
| 138 | VideoFrameRate 25
|
|---|
| 139 | VideoSize qvga
|
|---|
| 140 | </Stream>
|
|---|
| 141 |
|
|---|
| 142 | <Stream 79-4.flv>
|
|---|
| 143 | Feed feed4.ffm
|
|---|
| 144 | Format flv
|
|---|
| 145 | AudioBitRate 128
|
|---|
| 146 | AudioChannels 1
|
|---|
| 147 | AudioSampleRate 44100
|
|---|
| 148 | VideoFrameRate 25
|
|---|
| 149 | VideoSize qvga
|
|---|
| 150 | </Stream>
|
|---|
| 151 |
|
|---|
| 152 |
|
|---|
| 153 | ##################################################################
|
|---|
| 154 | # RTSP examples
|
|---|
| 155 | #
|
|---|
| 156 | # You can access this stream with the RTSP URL:
|
|---|
| 157 | # rtsp://localhost:5454/test1-rtsp.mpg
|
|---|
| 158 | #
|
|---|
| 159 | # A non-standard RTSP redirector is also created. Its URL is:
|
|---|
| 160 | # http://localhost:8090/test1-rtsp.rtsp
|
|---|
| 161 |
|
|---|
| 162 | #<Stream test1-rtsp.mpg>
|
|---|
| 163 | #Format rtp
|
|---|
| 164 | #File "/usr/local/httpd/htdocs/test1.mpg"
|
|---|
| 165 | #</Stream>
|
|---|
| 166 |
|
|---|
| 167 |
|
|---|
| 168 | # Transcode an incoming live feed to another live feed,
|
|---|
| 169 | # using libx264 and video presets
|
|---|
| 170 |
|
|---|
| 171 | #<Stream live.h264>
|
|---|
| 172 | #Format rtp
|
|---|
| 173 | #Feed feed1.ffm
|
|---|
| 174 | #VideoCodec libx264
|
|---|
| 175 | #VideoFrameRate 24
|
|---|
| 176 | #VideoBitRate 100
|
|---|
| 177 | #VideoSize 480x272
|
|---|
| 178 | #AVPresetVideo default
|
|---|
| 179 | #AVPresetVideo baseline
|
|---|
| 180 | #AVOptionVideo flags +global_header
|
|---|
| 181 | #
|
|---|
| 182 | #AudioCodec libfaac
|
|---|
| 183 | #AudioBitRate 32
|
|---|
| 184 | #AudioChannels 2
|
|---|
| 185 | #AudioSampleRate 22050
|
|---|
| 186 | #AVOptionAudio flags +global_header
|
|---|
| 187 | #</Stream>
|
|---|
| 188 |
|
|---|
| 189 | ##################################################################
|
|---|
| 190 | # Special streams
|
|---|
| 191 |
|
|---|
| 192 | # Server status
|
|---|
| 193 |
|
|---|
| 194 | <Stream stat.html>
|
|---|
| 195 | Format status
|
|---|
| 196 |
|
|---|
| 197 | # Only allow local people to get the status
|
|---|
| 198 | ACL allow localhost
|
|---|
| 199 | ACL allow burek.teamnet.rs
|
|---|
| 200 | #ACL allow 192.168.0.0 192.168.255.255
|
|---|
| 201 |
|
|---|
| 202 | #FaviconURL http://pond1.gladstonefamily.net:8080/favicon.ico
|
|---|
| 203 | </Stream>
|
|---|
| 204 |
|
|---|
| 205 |
|
|---|
| 206 | # Redirect index.html to the appropriate site
|
|---|
| 207 |
|
|---|
| 208 | #<Redirect index.html>
|
|---|
| 209 | #URL http://www.ffmpeg.org/
|
|---|
| 210 | #</Redirect>
|
|---|