# Video Grabber example using libv4l

_Peios Kernel / Userspace interfaces / System and device interfaces / Video4Linux_

> This program demonstrates how to grab V4L2 images in ppm format by using libv4l handlers. The advantage is that this grabber can potentially work with any V4L2 driver.

<a id="rst-video-grabber-example-using-libv4l"></a>
<a id="rst-v4l2grab-example"></a>

<!-- SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later -->

<!-- c:namespace: V4L -->

This program demonstrates how to grab V4L2 images in ppm format by using libv4l handlers. The advantage is that this grabber can potentially work with any V4L2 driver.

- [file: media/v4l/v4l2grab.c](</kernel/userspace/userspace-api/media-v4l/v4l2grab-c.md>)
