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 🙂

Programming

Logitech C200 on RPi

I received my Logitech C200 yesterday and it was as small as I thought. I just plugged it in and installed the uvccapture software:

sudo apt-get install uvccapture

Then, I was able to take a snapshot with the following command:

uvccapture -S80 -B80 -C80 -G80 -x640 -y480

To take a video:

ffmpeg -f video4linux2 -input_format mjpeg -i /dev/video0 out.mpeg


NOTE: the names of the “ff” programs have changed

ffmpeg is now avconv.
ffserver is now avserver.
ffprobe is now avprobe.
ffplay is now avplay.