v4l2capture is a slim and easy-to-use Python module for capturing video with video4linux2. It supports libv4l to convert any image format to RGB.

Installation:

v4l2capture requires libv4l by default. You can compile v4l2capture without libv4l if you only want it to support video devices supporting the YUYV pixel format. You can do so by erasing ', libraries = ["v4l2"]' in setup.py and erasing '#define USE_LIBV4L' in v4l2capture.c.