To record video from my USB webcam I use ffmpeg with v4l2 driver (command below).
ffmpeg -f v4l2 -r 30 -s 640x480 -an -sn -i /dev/video0 -f avi temp
Unfortunately fps is too low for 640x480 (around 5 fps). During recording, ffmpeg loads the cpu by 6%. I tried to change the resolution to 1920x1080, but FPS has not changed and cpu load increased to 20%.
How to fix it?