RPi Streaming

I got the webcam streaming from the RPi! Woo hoo! Here’s what I did, I set up the following in /etc/avserver.conf:

Port 80
BindAddress 0.0.0.0
MaxClients 5
MaxBandwidth 50000
NoDaemon
<Feed webcam.ffm>
file /tmp/webcam.ffm
FileMaxSize 5M
</Feed>
<Stream mystream>
Feed webcam.ffm
Format mjpeg
PreRoll 0
#NoAudio
</Stream>
<Stream status.html>
Format status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</Stream>

Then, I ran the command:

avserver & avconv -v verbose -s 320x240 -input_format mjpeg -f video4linux2 -i /dev/video0 http://localhost/webcam.ffm

And voila! Yes, the stream does lag quite a bit (about 3 seconds) but it’s a step in the right direction 🙂

Advertisements

2 thoughts on “RPi Streaming

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s