I'm using a PS2 Eyetoy but it'll will probably work on any cam that streams mjpeg video.
I'm doing it on Debian squeeze with the latest kernel updated with rpi-update which supports many webcams including the PS2 Eyetoy.
First we need to install Netcat on RPi and the target linux machine where we are sending the video stream
Code: Select all
sudo apt-get install netcat
Code: Select all
sudo apt-get install mplayer
Code: Select all
mkfifo a.mjpg
next on the target machine we run Netcat in listen udp mode on any port we want. I'm using port 5000 in this example
Code: Select all
nc.traditional -lu -p 5000 > a.mjpg | mplayer -cache 32 -vo gl -demuxer lavf a.mjpg
Code: Select all
sudo su
cat /dev/video0 | nc.traditional -u [YOUR TARGET IP HERE] 5000
That's it, the video on the target machine should start in a few seconds.