Posts: 128
Joined: Fri Dec 28, 2012 9:49 am

Webcam and motion

Thu Mar 07, 2013 9:30 pm


I am using a Microsoft Lifecam HD3000 webcam to stream live images across a web server following the tutorial on the following link: http://pingbin.com/2012/12/raspberry-pi ... er-motion/

After doing everything on the tutorial I ran it and browsed to the url. As expected, the box came up where the image would be, but it was grey with a caption: "unable to open video device."

It must be something to do with the webcam even though it is listed on verified peripherals; does it still need drivers?

I am using the webcam program 'motion' to do this as outlined in the tutorial.

If somebody could address this issue, I would be very grateful.


Posts: 41
Joined: Fri Aug 17, 2012 11:56 am
Location: Ottawa, Canada

Re: Webcam and motion

Sun Mar 10, 2013 5:19 am


Motion is sometimes difficult to get going.
Did you try to just see if your camera can grab the image or stream the video without motion, with some other program?

Your camera is UVC compatible so you can try mjpg_streamer, very easy to set up, and it is very light on resources too.

In fact, once you get it running, you can use it to grab the video stream from your camera and pipe it to motion for motion detection. It reduces CPU usage by about 10-15% when compared to motion alone (motion is doing video grabbing as well as motion detection).


Posts: 1
Joined: Sat Sep 05, 2015 1:58 pm

Re: Webcam and motion

Sat Sep 05, 2015 2:19 pm

Hi could someone please help.
I can view my rasp pi cam through the ip address online. How do I view it through the Rasp pi GUI without the internet? For example i click on Skype and the camera fires up on my laptop.
I'm using Motion and have a logitech HD 720p. I want to access the pi remotely and see the the camera once I've logged into it through the interface.
Can u view the feed through VLC?
Thanks for the help in advance

Posts: 113
Joined: Fri Nov 25, 2011 7:16 pm
Location: Markham, Canada

Re: Webcam and motion

Fri Sep 11, 2015 3:53 am

Hi, if you want to view the webcam live video with local desktop, just point the web browser to the webcam ip address, and port 8081, as default, like The ip addess, and port no varies depending on your setup. To view the live webcam through external internet, you need to do firewall port forwarding, and know the ip address of your isp assigned to you.
You should be able to find all these info with motion documentation.

Return to “Automation, sensing and robotics”