Skip to content

Instantly share code, notes, and snippets.

@iabaldwin
Created October 19, 2011 15:53
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save iabaldwin/1298713 to your computer and use it in GitHub Desktop.
Save iabaldwin/1298713 to your computer and use it in GitHub Desktop.
ffserver configuration file
Port 8090
# bind to all IPs aliased or not
BindAddress 0.0.0.0
# max number of simultaneous clients
MaxClients 1000
# max bandwidth per-client (kb/s)
MaxBandwidth 100000
# Suppress that if you want to launch ffserver as a daemon.
NoDaemon
<Feed bumblebeeFeed.ffm>
File /tmp/bumblebeeFeed.ffm
FileMaxSize 125M
</Feed>
# FLV output - good for streaming
<Stream test.flv>
# the source feed
Feed bumblebeeFeed.ffm
# the output stream format - FLV = FLash Video
Format flv
VideoCodec flv
# this must match the ffmpeg -r argument
VideoFrameRate 20
# generally leave this is a large number
VideoBufferSize 800
# another quality tweak
VideoBitRate 200
# quality ranges - 1-31 (1 = best, 31 = worst)
VideoQMin 1
VideoQMax 15
VideoSize 512x384
# this sets how many seconds in past to start
PreRoll 0
# wecams don't have audio
Noaudio
</Stream>
# ASF output - for windows media player
<Stream test.asf>
# the source feed
Feed bumblebeeFeed.ffm
# the output stream format - ASF
Format asf
VideoCodec msmpeg4
# this must match the ffmpeg -r argument
VideoFrameRate 15
# generally leave this is a large number
VideoBufferSize 80000
# another quality tweak
VideoBitRate 200
# quality ranges - 1-31 (1 = best, 31 = worst)
VideoQMin 1
VideoQMax 5
VideoSize 352x288
# this sets how many seconds in past to start
PreRoll 0
# wecams don't have audio
Noaudio
</Stream>
<Stream screencast.avi>
Feed bumblebeeFeed.ffm
Format avi
AudioBitRate 32
AudioChannels 1
AudioSampleRate 22050
VideoBitRate 64
VideoBufferSize 40
VideoFrameRate 3
VideoSize 1360x768
VideoGopSize 12
NoAudio
</Stream>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment