Webcam Streaming not working


5 posts
by Fr4nky » Fri Oct 19, 2012 5:11 pm
Hello!

We are trying to stream a webcam in our local network via the raspberry pi. We use the following script:
Code: Select all
sudo aptitude install libv4l-0
ls /dev/video0
wget http://www.bobtech.ro/get?download=36:mjpg-streamer-rpi
mv get\?download\=36\:mjpg-streamer-rpi mjpg-streamer-rpi.tar.gz
tar -zxvf mjpg-streamer-rpi.tar.gz
cd mjpg-streamer
sudo nano mjpg-streamer.sh
./mjpg-streamer.sh start

(from http://www.bobtech.ro/tutoriale/raspber ... spberry-pi)
Basically it works but the picture flickers (parts of the image are replicated and shifted, see screenshot). We are using this camera: logitech quickcam communicate stx
Furthermore we tried to troubleshoot the problem: the webcam works perfectly on our main computer and the raspberry pi must have enough power, because we shorted the USB fuses and we used a bigger power supply (1.5A).

What causes that flickering and what can we do to avoid that?

Regards,
Daniel and Nico

Image
http://dl.dropbox.com/u/1499686/screen.png
Posts: 4
Joined: Fri Oct 19, 2012 5:07 pm
by bobtech » Fri Nov 02, 2012 9:52 am
try the new version (same commands as above, it's already updated on the site)
but enable the YUV option in the script and let me know if this fixes it
Posts: 14
Joined: Fri Sep 14, 2012 7:49 am
by ptit_lu » Sun Nov 04, 2012 9:26 pm
Hello, i'm french.
I use "Motion" on wheezy for my webcam streaming. It works very good and it's easy.

Bye
Posts: 8
Joined: Wed Aug 29, 2012 3:23 pm
by Fr4nky » Wed Nov 07, 2012 3:54 pm
Hi!

I bought a Microsoft HD-5000 Webcam with better quality, and now the streaming works without artifacts. But now, the frame rate is pretty low (3-5fps), and it doesn't change when lowering the resolution. The frame rate was very good (over 20fps) with the old camera tough.

Any ideas how to increase it (of cause i increased the frame rate in the settings)?

bye
Posts: 4
Joined: Fri Oct 19, 2012 5:07 pm
by Phillips321 » Fri Nov 09, 2012 10:55 pm
Shameful plug, my bad....
http://www.phillips321.co.uk/2012/11/05/raspberrypi-webcam-mjpg-stream-cctv/

Did this exact thing a few days ago, also made init script to start on boot. Enjoy
Posts: 2
Joined: Fri Nov 09, 2012 10:46 pm