Skip to content

Instantly share code, notes, and snippets.

@jbochi
Created September 12, 2013 13:13
Show Gist options
  • Save jbochi/6537054 to your computer and use it in GitHub Desktop.
Save jbochi/6537054 to your computer and use it in GitHub Desktop.
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>
ffserver -f rtmp2mjpeg.conf & ffmpeg -v verbose -i $1 -r 5 -s 320x240 http://localhost:8081/feed.ffm
<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