I'm experimenting with using the Pi for web cam streaming and motion detection, with the
motion app. Trying a few different web cameras and combinations with other hardware, I've found one combination that is perfectly stable (see below). However, I'm only getting it to work with a resolution of 352x288. I would like to utilize more of the resolution that the 720p web cam is capable of. I've tried 640x480, 640x360 and 1280x720, but they don't work (
motion is unable to initialize the camera). The Pi has 256MB of memory, which should be plenty to support the high resolutions. For instance,
motion lists memory usage at 1.8MB for the 1280x720 resolution.
Any tips on how to enable a higher resolution?
- Logitech C310h USB 2.0 HD Webcam, UVC Camera (046d:081b)
- 352x288, YUYV palette
- powered by iPad charger
- web cam connected to lower USB port
- nothing connected to upper USB port
- wired network connected
- running Motion 3.2.12.
- OS: 2012-09-18-wheezy-raspbian.img
- only change to motion.conf: Setting resolution to 352x288
Edit: I have since found that the setup I'm currently using with MJPG-streamer is not completely stable, so there's a chance that the setup described above is not completely stable but just more stable as it uses a lower resolution.
Edit 2 (4/21/13): It has been known for a while that USB is not stable on the Raspberry Pi, causing trouble with many web cameras and wifi dongles. The foundation is actively working on this, and good progress has been made lately. There is an update available via rpi-update that fixes many issues. See the USB Redux thread on the Raspberry Pi forum.