I have a gumstix overo that I use to host a webpage that streams live video (4-5 second lag) from a USB webcam over wifi. Maybe this will help you:
/etc/ffserver.conf
Code:
# Port on which the server is listening. You must select a different
# port from your standard HTTP web server if it is running on the same
# computer.
Port 8090
# Address on which the server is bound. Only useful if you have
# several network interfaces.
BindAddress 0.0.0.0
# Number of simultaneous HTTP connections that can be handled. It has
# to be defined *before* the MaxClients parameter, since it defines the
# MaxClients maximum limit.
MaxHTTPConnections 2000
# Number of simultaneous requests that can be handled. Since FFServer
# is very fast, it is more likely that you will want to leave this high
# and use MaxBandwidth, below.
MaxClients 1000
# This the maximum amount of kbit/sec that you are prepared to
# consume when streaming to clients.
MaxBandwidth 1000
# Access log file (uses standard Apache log file format)
# '-' is the standard output.
CustomLog -
# Suppress that if you want to launch ffserver as a daemon.
NoDaemon
<Feed feed1.ffm>
File /tmp/feed1.ffm #when remarked, no file is being created and the stream keeps working!!
FileMaxSize 200K
# Only allow connections from localhost to the feed.
ACL allow 127.0.0.1
</Feed>
# SWF output - great for testing
<Stream test.swf>
# the source feed
Feed feed1.ffm
# the output stream format - SWF = flash
Format swf
# this must match the ffmpeg -r argument
VideoFrameRate 15
# another quality tweak
VideoBitRate 200
# quality ranges - 1-31 (1 = best, 31 = worst)
VideoQMin 4
VideoQMax 6
VideoSize 320x240
# wecams don't have audio
NoAudio
</Stream>
# FLV output - good for streaming
#<Stream test.flv>
# # the source feed
# Feed feed1.ffm
# # the output stream format - FLV = FLash Video
# Format flv
# VideoCodec flv
# # this must match the ffmpeg -r argument
# VideoFrameRate 5
# # another quality tweak
# VideoBitRate 320
# # quality ranges - 1-31 (1 = best, 31 = worst)
# VideoQMin 1
# VideoQMax 3
# VideoSize 320x240
# # wecams don't have audio
# NoAudio
#</Stream>
<Stream stat.html>
Format status
</Stream>
<Redirect index.html>
# credits!
URL http://ffmpeg.sourceforge.net/
</Redirect>
Startup script
Code:
nohup ffserver &> /home/camera/ffserver.out &
nohup ffmpeg -f video4linux2 -s 320x240 -r 15 -an -y -qscale 5 -i /dev/video0 http://127.0.0.1:8090/feed1.ffm &> /dev/null &
HTML page
Code:
<object align="center" width="376" height="240"><param name="movie" value="http://192.168.101.10:8090/test.swf">
<embed align="center" src="http://192.168.101.10:8090/test.swf" width="376" height="240">
</embed></object>
Naturally, /dev/video0 is my webcam, 192.168.101.10 is the gumstix IP, and the size and quality of the video have been adjusted to fit on the relatively weak CPU.