How To Install libv4l on Fedora 34
Introduction
In this tutorial we learn how to install libv4l
on Fedora 34.
What is libv4l
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. libv4l 1.20.0 3.fc34 x86_64 199 k v4l-utils-1.20.0-3.fc34.src.rpm fedora Collection of video4linux support libraries http LGPLv2+ and GPLv2 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
or dnf
to install libv4l
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libv4l.
Install libv4l on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install libv4l
using dnf
by running the following command:
sudo dnf -y install libv4l
Install libv4l on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install libv4l
using yum
by running the following command:
sudo yum -y install libv4l
How To Uninstall libv4l on Fedora 34
To uninstall only the libv4l
package we can use the following command:
sudo dnf remove libv4l
libv4l Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/10
/usr/lib/.build-id/10/7397c2e29bf2d1e4a65d0df597110c047fa916
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/3286cd8832d05462486bfbdc5c7781418d4f95
/usr/lib/.build-id/3b
/usr/lib/.build-id/3b/ae20eb8a3eedf3e9c48980d91d9d85aaede57a
/usr/lib/.build-id/66
/usr/lib/.build-id/66/db166f3188333a0c88d73176f26855ea1ced69
/usr/lib/.build-id/7d
/usr/lib/.build-id/7d/99f90903f13d9056fed8790cddb367db9d4cb7
/usr/lib/.build-id/82
/usr/lib/.build-id/82/45a9a2f3a7b3b29060bd6f20567469a262dc39
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/80efc4c8de8f4f956851726940c917b5723b4d
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/d88112ef96f86ebc022ebd95e0ecdb9624a249
/usr/lib/.build-id/fe/aa4ea09b052771c56a822cae6311344b51ad18
/usr/lib/libv4l
/usr/lib/libv4l/ov511-decomp
/usr/lib/libv4l/ov518-decomp
/usr/lib/libv4l/plugins
/usr/lib/libv4l/plugins/libv4l-mplane.so
/usr/lib/libv4l/v4l1compat.so
/usr/lib/libv4l/v4l2convert.so
/usr/lib/libv4l1.so.0
/usr/lib/libv4l1.so.0.0.0
/usr/lib/libv4l2.so.0
/usr/lib/libv4l2.so.0.0.0
/usr/lib/libv4l2rds.so.0
/usr/lib/libv4l2rds.so.0.0.0
/usr/lib/libv4lconvert.so.0
/usr/lib/libv4lconvert.so.0.0.0
/usr/share/doc/libv4l
/usr/share/doc/libv4l/ChangeLog
/usr/share/doc/libv4l/README.libv4l
/usr/share/doc/libv4l/TODO
/usr/share/licenses/libv4l
/usr/share/licenses/libv4l/COPYING
/usr/share/licenses/libv4l/COPYING.libv4l
/usr/lib/.build-id
/usr/lib/.build-id/11
/usr/lib/.build-id/11/5ed3316e47a510795906a699c8bb43406e4a56
/usr/lib/.build-id/1c
/usr/lib/.build-id/1c/92b00f83d906b3e8d46329097a327481a5ea9f
/usr/lib/.build-id/1c/a31e41fdb295473e200a4514e525067c02b116
/usr/lib/.build-id/53/e52cf8461b7bd30dc96da87000e06bdad0a96f
/usr/lib/.build-id/98
/usr/lib/.build-id/98/927bc7b785c3741151bfb63a9f4db451be52ce
/usr/lib/.build-id/b4
/usr/lib/.build-id/b4/b81380d4cb90e56a05d394f403a49bb47572a1
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/26eb18439b004f165a26c7ac1969bff6c7a2dd
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/3a50f375ccbaf1aa0138a1948dcf569d4c218a
/usr/lib/.build-id/fd
/usr/lib/.build-id/fd/62b93e671c43bd42cc38cc409110b2053bf2ad
/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
/usr/share/doc/libv4l/ChangeLog
/usr/share/doc/libv4l/README.libv4l
/usr/share/doc/libv4l/TODO
/usr/share/licenses/libv4l
/usr/share/licenses/libv4l/COPYING
/usr/share/licenses/libv4l/COPYING.libv4l
References
- [libv4l website](http://hansdegoede.livejournal.com/3636.html http://hansdegoede.livejournal.com/3636.html)
Summary
In this tutorial we learn how to install libv4l
on Fedora 34 using yum and dnf.