# Port on which the server is listening. You must select a different1# port from your standard HTTP web server if it is running on the same2# computer.3HTTPPort 809045# Address on which the server is bound. Only useful if you have6# several network interfaces.7HTTPBindAddress 0.0.0.089# Number of simultaneous HTTP connections that can be handled. It has10# to be defined *before* the MaxClients parameter, since it defines the11# MaxClients maximum limit.12MaxHTTPConnections 20001314# Number of simultaneous requests that can be handled. Since FFServer15# is very fast, it is more likely that you will want to leave this high16# and use MaxBandwidth, below.17MaxClients 10001819# This the maximum amount of kbit/sec that you are prepared to20# consume when streaming to clients.21MaxBandwidth 10002223# Access log file (uses standard Apache log file format)24# '-' is the standard output.25CustomLog -2627##################################################################28# Definition of the live feeds. Each live feed contains one video29# and/or audio sequence coming from an ffmpeg encoder or another30# ffserver. This sequence may be encoded simultaneously with several31# codecs at several resolutions.3233<Feed feed1.ffm>3435# You must use 'ffmpeg' to send a live feed to ffserver. In this36# example, you can type:37#38# ffmpeg http://localhost:8090/feed1.ffm3940# ffserver can also do time shifting. It means that it can stream any41# previously recorded live stream. The request should contain:42# "http://xxxx?date=[YYYY-MM-DDT][[HH:]MM:]SS[.m...]".You must specify43# a path where the feed is stored on disk. You also specify the44# maximum size of the feed, where zero means unlimited. Default:45# File=/tmp/feed_name.ffm FileMaxSize=5M46File /tmp/feed1.ffm47FileMaxSize 200K4849# You could specify50# ReadOnlyFile /saved/specialvideo.ffm51# This marks the file as readonly and it will not be deleted or updated.5253# Specify launch in order to start ffmpeg automatically.54# First ffmpeg must be defined with an appropriate path if needed,55# after that options can follow, but avoid adding the http:// field56#Launch ffmpeg5758# Only allow connections from localhost to the feed.59ACL allow 127.0.0.16061</Feed>626364##################################################################65# Now you can define each stream which will be generated from the66# original audio and video stream. Each format has a filename (here67# 'test1.mpg'). FFServer will send this stream when answering a68# request containing this filename.6970<Stream test1.mpg>7172# coming from live feed 'feed1'73Feed feed1.ffm7475# Format of the stream : you can choose among:76# mpeg : MPEG-1 multiplexed video and audio77# mpegvideo : only MPEG-1 video78# mp2 : MPEG-2 audio (use AudioCodec to select layer 2 and 3 codec)79# ogg : Ogg format (Vorbis audio codec)80# rm : RealNetworks-compatible stream. Multiplexed audio and video.81# ra : RealNetworks-compatible stream. Audio only.82# mpjpeg : Multipart JPEG (works with Netscape without any plugin)83# jpeg : Generate a single JPEG image.84# mjpeg : Generate a M-JPEG stream.85# asf : ASF compatible streaming (Windows Media Player format).86# swf : Macromedia Flash compatible stream87# avi : AVI format (MPEG-4 video, MPEG audio sound)88Format mpeg8990# Bitrate for the audio stream. Codecs usually support only a few91# different bitrates.92AudioBitRate 329394# Number of audio channels: 1 = mono, 2 = stereo95AudioChannels 19697# Sampling frequency for audio. When using low bitrates, you should98# lower this frequency to 22050 or 11025. The supported frequencies99# depend on the selected audio codec.100AudioSampleRate 44100101102# Bitrate for the video stream103VideoBitRate 64104105# Ratecontrol buffer size106VideoBufferSize 40107108# Number of frames per second109VideoFrameRate 3110111# Size of the video frame: WxH (default: 160x128)112# The following abbreviations are defined: sqcif, qcif, cif, 4cif, qqvga,113# qvga, vga, svga, xga, uxga, qxga, sxga, qsxga, hsxga, wvga, wxga, wsxga,114# wuxga, woxga, wqsxga, wquxga, whsxga, whuxga, cga, ega, hd480, hd720,115# hd1080116VideoSize 160x128117118# Transmit only intra frames (useful for low bitrates, but kills frame rate).119#VideoIntraOnly120121# If non-intra only, an intra frame is transmitted every VideoGopSize122# frames. Video synchronization can only begin at an intra frame.123VideoGopSize 12124125# More MPEG-4 parameters126# VideoHighQuality127# Video4MotionVector128129# Choose your codecs:130#AudioCodec mp2131#VideoCodec mpeg1video132133# Suppress audio134#NoAudio135136# Suppress video137#NoVideo138139#VideoQMin 3140#VideoQMax 31141142# Set this to the number of seconds backwards in time to start. Note that143# most players will buffer 5-10 seconds of video, and also you need to allow144# for a keyframe to appear in the data stream.145#Preroll 15146147# ACL:148149# You can allow ranges of addresses (or single addresses)150#ACL ALLOW <first address> <last address>151152# You can deny ranges of addresses (or single addresses)153#ACL DENY <first address> <last address>154155# You can repeat the ACL allow/deny as often as you like. It is on a per156# stream basis. The first match defines the action. If there are no matches,157# then the default is the inverse of the last ACL statement.158#159# Thus 'ACL allow localhost' only allows access from localhost.160# 'ACL deny 1.0.0.0 1.255.255.255' would deny the whole of network 1 and161# allow everybody else.162163</Stream>164165166##################################################################167# Example streams168169170# Multipart JPEG171172#<Stream test.mjpg>173#Feed feed1.ffm174#Format mpjpeg175#VideoFrameRate 2176#VideoIntraOnly177#NoAudio178#Strict -1179#</Stream>180181182# Single JPEG183184#<Stream test.jpg>185#Feed feed1.ffm186#Format jpeg187#VideoFrameRate 2188#VideoIntraOnly189##VideoSize 352x240190#NoAudio191#Strict -1192#</Stream>193194195# Flash196197#<Stream test.swf>198#Feed feed1.ffm199#Format swf200#VideoFrameRate 2201#VideoIntraOnly202#NoAudio203#</Stream>204205206# ASF compatible207208<Stream test.asf>209Feed feed1.ffm210Format asf211VideoFrameRate 15212VideoSize 352x240213VideoBitRate 256214VideoBufferSize 40215VideoGopSize 30216AudioBitRate 64217StartSendOnKey218</Stream>219220221# MP3 audio222223#<Stream test.mp3>224#Feed feed1.ffm225#Format mp2226#AudioCodec mp3227#AudioBitRate 64228#AudioChannels 1229#AudioSampleRate 44100230#NoVideo231#</Stream>232233234# Ogg Vorbis audio235236#<Stream test.ogg>237#Feed feed1.ffm238#Metadata title "Stream title"239#AudioBitRate 64240#AudioChannels 2241#AudioSampleRate 44100242#NoVideo243#</Stream>244245246# Real with audio only at 32 kbits247248#<Stream test.ra>249#Feed feed1.ffm250#Format rm251#AudioBitRate 32252#NoVideo253#NoAudio254#</Stream>255256257# Real with audio and video at 64 kbits258259#<Stream test.rm>260#Feed feed1.ffm261#Format rm262#AudioBitRate 32263#VideoBitRate 128264#VideoFrameRate 25265#VideoGopSize 25266#NoAudio267#</Stream>268269270##################################################################271# A stream coming from a file: you only need to set the input272# filename and optionally a new format. Supported conversions:273# AVI -> ASF274275#<Stream file.rm>276#File "/usr/local/httpd/htdocs/tlive.rm"277#NoAudio278#</Stream>279280#<Stream file.asf>281#File "/usr/local/httpd/htdocs/test.asf"282#NoAudio283#Metadata author "Me"284#Metadata copyright "Super MegaCorp"285#Metadata title "Test stream from disk"286#Metadata comment "Test comment"287#</Stream>288289290##################################################################291# RTSP examples292#293# You can access this stream with the RTSP URL:294# rtsp://localhost:5454/test1-rtsp.mpg295#296# A non-standard RTSP redirector is also created. Its URL is:297# http://localhost:8090/test1-rtsp.rtsp298299#<Stream test1-rtsp.mpg>300#Format rtp301#File "/usr/local/httpd/htdocs/test1.mpg"302#</Stream>303304305# Transcode an incoming live feed to another live feed,306# using libx264 and video presets307308#<Stream live.h264>309#Format rtp310#Feed feed1.ffm311#VideoCodec libx264312#VideoFrameRate 24313#VideoBitRate 100314#VideoSize 480x272315#AVPresetVideo default316#AVPresetVideo baseline317#AVOptionVideo flags +global_header318#319#AudioCodec libfaac320#AudioBitRate 32321#AudioChannels 2322#AudioSampleRate 22050323#AVOptionAudio flags +global_header324#</Stream>325326##################################################################327# SDP/multicast examples328#329# If you want to send your stream in multicast, you must set the330# multicast address with MulticastAddress. The port and the TTL can331# also be set.332#333# An SDP file is automatically generated by ffserver by adding the334# 'sdp' extension to the stream name (here335# http://localhost:8090/test1-sdp.sdp). You should usually give this336# file to your player to play the stream.337#338# The 'NoLoop' option can be used to avoid looping when the stream is339# terminated.340341#<Stream test1-sdp.mpg>342#Format rtp343#File "/usr/local/httpd/htdocs/test1.mpg"344#MulticastAddress 224.124.0.1345#MulticastPort 5000346#MulticastTTL 16347#NoLoop348#</Stream>349350351##################################################################352# Special streams353354# Server status355356<Stream stat.html>357Format status358359# Only allow local people to get the status360ACL allow localhost361ACL allow 192.168.0.0 192.168.255.255362363#FaviconURL http://pond1.gladstonefamily.net:8080/favicon.ico364</Stream>365366367# Redirect index.html to the appropriate site368369<Redirect index.html>370URL http://www.ffmpeg.org/371</Redirect>372373374