rnazaretian
Posts: 1
Joined: Wed Aug 15, 2012 7:39 am

Stream USB webcam over WiFi with low CPU

Fri Sep 21, 2012 4:30 am

I'm working on a Senior Design project at Mississippi State University. Our project is to make a blimp that can autonomously map a room as we harden a control system to fly UAVs. (Blimps don't crash to the ground, plus force us to design lightweight components).

Question:
We're looking to stream video from a USB webcam over WiFi using an onboard USB WiFi adapter. We need to keep the CPU usage at a minimum to allow processing of control data.

The best way I've seen so far is to use netcat, but when trying to use the cat command, we receive an error.

Simply running:
cat /dev/video0

Returns:
Invalid Argument

I've seen many people get this error, but nothing to resolve it.

Anything I'm missing? Any other ways to do it?

Thanks in advance!

CrystalCowboy
Posts: 9
Joined: Mon Aug 27, 2012 8:44 pm

Re: Stream USB webcam over WiFi with low CPU

Fri Sep 21, 2012 5:58 pm

If you want low CPU loading, check out mjpg-streamer:
http://www.raspberrypi.org/phpBB3/viewt ... 38&t=15369
http://www.raspberrypi.org/phpBB3/viewt ... =30&t=8659

I am currently serving 5 frames/second of 752x416 resolution, and the CPU load is only 3.0%.

Some qualifiers: the USB webcam must support MJPG format (I can recommend the Logitech C310), and I am using the standard ethernet port, not wireless.

Christoph1985
Posts: 65
Joined: Sat Jul 28, 2012 11:58 am
Location: Germany

Re: Stream USB webcam over WiFi with low CPU

Mon Sep 24, 2012 1:39 pm

Did you try "motion"?
I don't know the cpu usage, but if you disable all the motion detection functions in the .conf file, you have a very good and fluid streaming tool.

Return to “Automation, sensing and robotics”