I want to capture a USB webcam with my RPI2. I'm using a Microsoft Lifecam HD-3000.
The problem is that I can't get 30 FPS with a resolution 640x480. I think this is abnormal for a quad-core CPU.
On the RPI2 I get between 14-18 FPS and I'm not even saving the capture to a file.
I tested in console mode with avconv and also in the gui with luvcview.
luvcview -i 30 -s 640x480 or avconv -f video4linux2 -input_format mjpeg -s 640x480 -r 30 -i /dev/video0 -y t1.avi or avconv -f video4linux2 -input_format yuyv422 -s 640x480 -r 30 -i /dev/video0 -y t2.avi
The Microsoft HD-3000 webcam has the following capabilites:
ffmpeg -f v4l2 -list_formats all -i /dev/video0 Raw: yuyv422 : YUV 4:2:2 (YUYV) : 640x480 1280x720 960x544 800x448 640x360 424x240 352x288 320x240 800x600 176x144 160x120 1280x800 Compressed: mjpeg : MJPEG : 640x480 1280x720 960x544 800x448 640x360 800x600 416x240 352x288 176x144 320x240 160x120
I also tested the same webcam on a dual core (Celeron) laptop running Ubuntu 14.04 and I get 30 FPS at 1280x720. So, I don't think the problem is with the webcam.
Is this normal for the RPI2 ? What could cause this low FPS ?