Ubuntu Video4Linux2 (v4l2) 开发库安装
Ubuntu Video4Linux2 (v4l2) 开发库安装，Linux下视频开发居家必备之良药。
libv4l is a collection of libraries which adds a thin abstraction layer on top of video4linux2 devices. The purpose of this (thin) layer is to make it easy for application writers to support a wide variety of devices without having to write separate code for different devices in the same class. libv4l consists of 3 different libraries: libv4lconvert, libv4l1 and libv4l2.
libv4lconvert offers functions to convert from any (known) pixelformat to BGR24, RGB24, YUV420 and YVU420.
libv4l1 offers the (deprecated) v4l1 API on top of v4l2 devices, independent of the drivers for those devices supporting v4l1 compatibility (which many v4l2 drivers do not).
libv4l2 offers the v4l2 API on top of v4l2 devices, while adding for the application transparent libv4lconvert conversion where necessary.
This package contains development files (headers and static libraries).
sudo apt-get install libv4l-dev