Created
September 12, 2013 13:13
-
-
Save jbochi/6537054 to your computer and use it in GitHub Desktop.
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
Port 8081 | |
BindAddress 0.0.0.0 | |
MaxClients 10 | |
MaxBandwidth 50000 | |
NoDaemon | |
<Feed feed.ffm> | |
file /tmp/feed.ffm | |
FileMaxSize 20M | |
</Feed> | |
<Stream feed.mjpeg> | |
Feed feed.ffm | |
Format mjpeg | |
VideoSize 640x480 | |
VideoFrameRate 10 | |
#VideoBitRate 100 | |
NoAudio | |
Strict -1 | |
</Stream> |
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
ffserver -f rtmp2mjpeg.conf & ffmpeg -v verbose -i $1 -r 5 -s 320x240 http://localhost:8081/feed.ffm |
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
<html> | |
<img src="http://localhost:8081/feed.mjpeg"></img> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment