Created
February 7, 2015 02:06
-
-
Save Ravenstine/97082a095b3acc29ac66 to your computer and use it in GitHub Desktop.
ffserver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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