Skip to content

Instantly share code, notes, and snippets.

View mrpossoms's full-sized avatar

mrpossoms

  • Loveland CO
View GitHub Profile
@mrpossoms
mrpossoms / framerate.c
Last active September 8, 2017 19:31 — forked from TIS-Edgar/framerate.c
set v4l2 framerate
bool set_framerate(int fd)
struct v4l2_streamparm parm;
parm.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
// 1/15 seconds per frame. Or 15 frames/second
parm.parm.capture.timeperframe.numerator = 1;
parm.parm.capture.timeperframe.denominator = 15;