Programming

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