#linux #webcam

linuxvideo

V4L2 video capture and output library

10 releases

0.3.5 Jul 15, 2025
0.3.3 Dec 16, 2023
0.3.2 Sep 20, 2023
0.3.1 Jul 31, 2023
0.0.0 May 1, 2022

#197 in Video

Download history 65/week @ 2025-10-13 100/week @ 2025-10-20

632 downloads per month
Used in compeg

0BSD license

110KB
2.5K SLoC

Linux video device library.

This library provides a (hopefully) convenient and high-level wrapper around the V4L2 ioctls, and allows accessing video devices (capture cards, webcams, etc.) on Linux systems.

The main entry points to the library are list, for enumerating all V4L2 devices (and opening one of them by name), and Device::open, for opening a specific path.


V4L2 userspace library

This is a Linux Video library that provides access to V4L2 devices. It directly calls the V4L2 ioctls without depending on libv4l or other C code.

Reference

The V4L2 userspace API is documented in the following places:

Dependencies

~185–295KB