Skip to content

Instantly share code, notes, and snippets.

@Ravenstine
Created February 7, 2015 02:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ravenstine/97082a095b3acc29ac66 to your computer and use it in GitHub Desktop.
Save Ravenstine/97082a095b3acc29ac66 to your computer and use it in GitHub Desktop.
ffserver
HTTPPort 8090 # Port to bind the server to
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 10000 # Maximum bandwidth per client
# set this high enough to exceed stream bitrate
CustomLog -
<Feed feed1.ffm> # This is the input feed where FFmpeg will send
File ./feed1.ffm # video stream.
FileMaxSize 1G # Maximum file size for buffering video
ACL allow 127.0.0.1 # Allowed IPs
</Feed>
<Stream test.webm>
Feed feed1.ffm
Format webm
VideoCodec libvpx
VideoFrameRate 25
VideoBufferSize 80000
VideoBitRate 100
VideoQMin 1
VideoQMax 5
VideoSize 352x288
PreRoll 0
Noaudio
</Stream>
<Stream status.html> # Server status URL
Format status
# Only allow local people to get the status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</Stream>
<Redirect index.html> # Just an URL redirect for index
# Redirect index.html to the appropriate site
URL http://www.ffmpeg.org/
</Redirect>
ffmpeg -f x11grab -r 25 -s 1280x800 -i :0.0 -f alsa -ac 2 -i hw:0 -flags:v +global_header 'http://localhost:8090/feed1.ffm'
ffserver -f ffserver.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment