USB Cams and Motion on Debian


79 posts   Page 4 of 4   1, 2, 3, 4
by arcanon » Sun Jan 20, 2013 11:33 am
I *think* the issue with motion not being able to handle 1920x1080 frames is because it does some image analysis in between and this is to slow. Then the CPU does not process the USB packets from the web cam fast enough and the driver complains/usb device gets confused giving garbage and dropped frames (almost all the time). Because mjpg-streamer is fast enough this works.
Posts: 36
Joined: Wed Nov 14, 2012 9:18 am
by whodah » Mon Jan 21, 2013 4:58 pm
Heya, thanks for the replies.

SteveDee wrote:As I said in an earlier post, there is no doubt that some webcams work on Pi, while some have problems.


We may be playing a bit of semantics here, but I did want to point out and/or distinguish/reemphasize that both webcams (Microsoft LifeCam Studio 1080P and the Logitech C910 1080P) work fine -- with mjpg_streamer on the Pi. I didn't want to leave the impression with any other readers that either of these webcams didn't work w/ the Pi.

Having said that, they both work mediocre with motion (at least at the moment).

SteveDee wrote:I don't know why motion is sucking the life out of your cpu. But you could try to disable ffmpeg from stitching together the jpeg images, just to see how much impact this is having. I think you can do this from the motion config file.


Hrm... I'm having a hard time finding out how to set that. Happen to have some additional guidance? I'm happy to try it out and report back.

SteveDee wrote:I use CamBuddy on Android to view mjpeg streams from motion. It works great!


Nice! I've been using IP Cam Viewer as it supported a couple other cameras that other web cam apps didn't (at least a couple years ago). That information is dated, but for those seeking the solution with IP Cam Viewer on Android, set the Make to 'Generic URL', Model to 'Generic URL' and the URL in the form of: http://{ip-address}:{port}/?action=stream (which you have to sort of edit after the face of setting it up because it wants to put that port numer at the very end instead of after the ip.)

arcanon: makes sense to me! I don't have any motion detection options enabled or anything like that, but I read ya loud and clear.
Posts: 2
Joined: Fri Jan 18, 2013 9:56 pm
by SteveDee » Mon Jan 21, 2013 9:02 pm
whodah wrote:
Hrm... I'm having a hard time finding out how to set that...


I assume its this bit:-
Code: Select all
############################################################
# FFMPEG related options
# Film (mpeg) file output, and deinterlacing of the video input
# The options movie_filename and timelapse_filename are also used
# by the ffmpeg feature
############################################################

# Use ffmpeg to encode mpeg movies in realtime (default: off)
ffmpeg_cap_new off




...but the guys here can probably help with your problem: http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome
User avatar
Posts: 342
Joined: Thu Dec 29, 2011 2:18 pm
Location: Sunny Southern England
by ChromeBlue » Wed Jun 26, 2013 11:37 pm
Pi Wiki shows all cams that work with the RPi. Maybe you've already seen this but can't hurt to share with newer users to the thread.
http://elinux.org/RPi_VerifiedPeripherals#USB_Webcams

Also found this streaming cam image on Ebay for $3.89 (download instantly) - Could save a lot of time for somebody.
http://www.ebay.com/itm/Raspberry-Pi-WebCam-Server-SD-Card-Image-w-Motion-Detection-File-Network-Share-/300893707849?pt=US_Other_Software&hash=item460ea99e49
Frito: Yah I know this place pretty good, I went to law school here.

Pvt. Joe Bowers: In Costco?
----------
From Idiocracy - funniest/scariest move ever.
User avatar
Posts: 17
Joined: Wed Jun 26, 2013 3:26 pm
Location: Hannibal, MO