cv2 can not set the fps but I can change the fps with ;
v4l2-ctl -d 1 --set-parm=60
and resolution with ;
v4l2-ctl -d 1 --set-fmt-video=width=640,height=480
but when I try to ;
camcapture = cv2.VideoCapture(1)
_,f = camcapture.read()
cv2.imwrite(filename, f)
capture is 60fps BUT resolution is 320x240. It's obvious that cv2.VideoCapture changes the resolution. Ok so it doesn't care about v4l2-ctl written settings and overrides it's own. So I try ;
camcapture.set(3,640)
camcapture.set(4,480)
image is 640x480 as expected but frame rate decreases to 30fps. This time it overrides the fps value.Eventhough the camera supports it, I can not get it working at 640x480@60fps.
Any idea preventing cv2.VideoCapture overriding v4l2-ctl written settings ?