Python extension to capture video with video4linux2 (fork of
C Python
Switch branches/tags
Nothing to show
Latest commit dc09a8c Jul 24, 2014


python-v4l2capture 1.4.x
Python extension to capture video with video4linux2

2009, 2010, 2011 Fredrik Portstrom
2011 Joakim Gebart

I, the copyright holder of this file, hereby release it into the
public domain. This applies worldwide. In case this is not legally
possible: I grant anyone the right to use this work for any purpose,
without any conditions, unless such conditions are required by law.


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

this fork of python-v4l2capture:

original python-v4l2capture:



v4l2capture requires libv4l by default. You can compile v4l2capture
without libv4l, but that reduces image format support to YUYV input
and RGB output only. You can do so by erasing ', libraries = ["v4l2"]'
in and erasing '#define USE_LIBV4L' in v4l2capture.c.

python-v4l2capture uses distutils.
To build: ./ build
To build and install: ./ install


See, and

Change log

(see git log for latest changes)

1.4 (2011-03-18) - Added support for YUV420 output.

1.3 (2010-07-21) - Added set of capabilities to the return value of
                   get_info. Updated

1.2 (2010-04-01) - Forked example script into and

1.1 (2009-11-03) - Updated URL and documentation.

1.0 (2009-02-28) - Initial release.