cazz
Posts: 220
Joined: Wed Nov 14, 2012 9:01 pm
Location: Sweden

Is raspberry Pi to weak to stream webcam?

Sun Sep 15, 2013 9:39 pm

Hi
I have a Raspberry Pi that I connect wire to my network and use a USB webcam with motion to stream live.

But I get alot of
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Sometime I can see a little what it show but next time I get this information?

Do I have to tweak something to make it work better.
I use 640x480 resolution and I have not change anything else.
/Cazz

danjperron
Posts: 3502
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Is raspberry Pi to weak to stream webcam?

Sun Sep 15, 2013 9:49 pm

A lot of people use motion but it is maybe not the correct software to use.

The main feature of motion is to grab images analyze them to detect motion change.


Maybe you should use ffmpeg and some kind of streaming software like (like vnc streaming).

I use mjpeg streamer which is way better because the Rpi just pass over the data send by the webcam to the network. Doesn't decode it but just plain transfer. Since mjpeg is already compress it is also less intensive for the rpi.

The drawback is that you need a mjpeg capable webcam. But a lot of them have that feature (not the really cheap one).

Logitech c260, c270 and more expensive one like the c910 and c920 , microsoft vx7000 and many others ones.

Daniel

cazz
Posts: 220
Joined: Wed Nov 14, 2012 9:01 pm
Location: Sweden

Re: Is raspberry Pi to weak to stream webcam?

Sun Sep 15, 2013 10:27 pm

Well I have a Logitech c270 (or is it a C370) but I like to find a good and easy tutorial for that.
/Cazz


danjperron
Posts: 3502
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Is raspberry Pi to weak to stream webcam?

Sun Sep 15, 2013 10:49 pm

To check the capabilities of your webcam

if you are using raspian,

Install the package v4l-utils (if you are using raspian).

Code: Select all

sudo apt-get install v4l-utils
and run this command

Code: Select all

v4l2-ctl --list-formats-ext
Check for all resolution and frame rate under MJPEG list.

I'm using a logitech C260 or c270 (I don't remember which one it is)

This is one of my script for 1024x576 resolution

Code: Select all

/usr/local/bin/mjpg_streamer -i "/usr/local/lib/input_uvc.so -n -f 10 -r 1024x576" -o "/usr/local/lib/output_http.so -p 10088 -w /usr/local/www" &
For other resolution just change the -r "horz x vert"

I do have one RPi to control the pond temperature in the winter and It uses a logitech C920. Full HD 1920x1080 with no problem! It rans 3 months continuously and hangs only once . ( The camera stop working when the temperature was below - 28 celsius during one night, but the Rpi was still working). I was using mjpg_streamer to check the fish in the pond and I was capturing one image per minute to create a time lapse using wget

Don't use iexplorer since it is not working for streaming. Use all other, firefox, chrome or safari.


Daniel

cazz
Posts: 220
Joined: Wed Nov 14, 2012 9:01 pm
Location: Sweden

Re: Is raspberry Pi to weak to stream webcam?

Mon Sep 16, 2013 3:46 pm

Ahh ok, I going to try that tutorial first and see what happend :)
/Cazz

cazz
Posts: 220
Joined: Wed Nov 14, 2012 9:01 pm
Location: Sweden

Re: Is raspberry Pi to weak to stream webcam?

Mon Sep 16, 2013 6:15 pm

wow very good quality it is :)

/Update

I trying now how to find so I can edit the startpage of mjpg-streamer, I like to remove everything but not streaming.
/Cazz

User avatar
abishur
Posts: 4477
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
Contact: Website

Re: Is raspberry Pi to weak to stream webcam?

Sat Sep 28, 2013 9:23 pm

When I try to visit this link I get a forbidden message any ideas what's going on with their site ?
Dear forum: Play nice ;-)

danjperron
Posts: 3502
Joined: Thu Dec 27, 2012 4:05 am
Location: Québec, Canada

Re: Is raspberry Pi to weak to stream webcam?

Sun Sep 29, 2013 12:32 am

Maybe too many people visit the site and now it is block for a month.

This is the step for mjpeg-streamer

Code: Select all

apt-get install subversion
apt-get install libjpeg8-dev
apt-get install imagemagick
apt-get install libv4l-0
apt-get install libv4l-dev
cd ~
mkdir tmp
cd tmp
svn co https://mjpg-streamer.svn.sourceforge.net/svnroot/mjpg-streamer mjpg-streamer
cd mjpg-streamer
cd mjpg-streamer
make USE_LIBV4L2=true clean all
make install
And this is my script for 720P

Code: Select all

/usr/local/bin/mjpg_streamer -i "/usr/local/lib/input_uvc.so -n -f 10 -r 1280x720" -o "/usr/local/lib/output_http.so -p 10088 -w /usr/local/www" &
Use firefox, chrome or safari and surf to http://RaspberryPI_IP:10088
where RaspberryPi IP is the IP of the raspberry PI
Daniel

Return to “Troubleshooting”