How To Install libv4l.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libv4l.x86_64 in Amazon Linux 2. libv4l.x86_64 is Collection of video4linux support libraries

Introduction

In this tutorial we learn how to install libv4l.x86_64 on Amazon Linux 2.

What is libv4l.x86_64

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 offers functions to convert from any (known) pixel-format to V4l2_PIX_FMT_BGR24 or V4l2_PIX_FMT_YUV420. 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.

We can use yum to install libv4l.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install libv4l.x86_64.

Install libv4l.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libv4l.x86_64 using yum by running the following command:

sudo yum -y install libv4l.x86_64

How To Uninstall libv4l.x86_64 on Amazon Linux 2

To uninstall only the libv4l.x86_64 package we can use the following command:

sudo yum remove libv4l.x86_64

libv4l.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libdvbv5.so.0
/usr/lib64/libdvbv5.so.0.0.0
/usr/lib64/libv4l
/usr/lib64/libv4l/ov511-decomp
/usr/lib64/libv4l/ov518-decomp
/usr/lib64/libv4l/plugins
/usr/lib64/libv4l/plugins/libv4l-mplane.so
/usr/lib64/libv4l/v4l1compat.so
/usr/lib64/libv4l/v4l2convert.so
/usr/lib64/libv4l1.so.0
/usr/lib64/libv4l1.so.0.0.0
/usr/lib64/libv4l2.so.0
/usr/lib64/libv4l2.so.0.0.0
/usr/lib64/libv4l2rds.so.0
/usr/lib64/libv4l2rds.so.0.0.0
/usr/lib64/libv4lconvert.so.0
/usr/lib64/libv4lconvert.so.0.0.0
/usr/share/doc/libv4l-0.9.5
/usr/share/doc/libv4l-0.9.5/COPYING
/usr/share/doc/libv4l-0.9.5/COPYING.LIB
/usr/share/doc/libv4l-0.9.5/ChangeLog
/usr/share/doc/libv4l-0.9.5/README.lib
/usr/share/doc/libv4l-0.9.5/TODO

References

Summary

In this tutorial we learn how to install libv4l.x86_64 on Amazon Linux 2 using yum.