Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

140.2. v4l-utils-1.32.0

Video4Linux userspace — libv4l2 and libv4lconvert, libdvbv5, v4l2-ctl, media-ctl, ir-keytable, cec-ctl

1.32.0-1 · GPL-2.0-or-later AND LGPL-2.1-or-later · 1.3 SBU · 6.1 MiB, 284 files · 41_system, 752 of 1047 · ports/core/media-frameworks/v4l-utils

Homepage: https://linuxtv.org/wiki/index.php/V4l-utils

v4l-utils is the userspace half of Video4Linux: libv4l2 and libv4lconvert, which let a program read a webcam in a pixel format it understands whatever the camera sends; libdvbv5 for DVB tuners; and the tools v4l2-ctl, media-ctl, v4l2-compliance, cec-ctl, ir-keytable and v4l2-tracer. GStreamer’s camera source in gst-plugins-good, obs-studio, vlc, zbar, wine and sane-backends link it.

Depends on: meson, ninja, pkgconf, perl, bash, gettext, libintl, argp-standalone, libjpeg-turbo, eudev, json-c, libbpf, elfutils, clang.

Required by (10): baresip, gst-plugins-good, obs-studio, qsstv, qv4l2, retroarch, sane-backends, vlc, wine, zbar.

Sources: v4l-utils-1.32.0.tar.xz (1.3 MiB). Every step kpkg takes applies to this port.

Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install v4l-utils'

build.sh:

export CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE"
export CXXFLAGS="$CXXFLAGS -D_LARGEFILE64_SOURCE"
meson setup build \
	--prefix=/usr --sysconfdir=/etc --libdir=lib \
	--buildtype=release \
	-Dudevdir=/lib/udev \
	-Dbpf=enabled \
	-Dgconv=disabled \
	-Djpeg=enabled \
	-Dlibdvbv5=enabled \
	-Dqv4l2=disabled \
	-Dqvidcap=disabled \
	-Dv4l2-tracer=enabled \
	-Dv4l-plugins=true \
	-Dv4l-utils=true \
	-Dv4l-wrappers=true \
	-Dv4l2-compliance-libv4l=true \
	-Dv4l2-ctl-libv4l=true \
	-Dv4l2-ctl-stream-to=true \
	-Ddoxygen-doc=disabled
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build

Programs: cec-compliance, cec-ctl, cec-follower, cx18-ctl, decode_tm6000, dvb-fe-tool, dvb-format-convert, dvbv5-daemon, dvbv5-scan, dvbv5-zap, edid-decode, ir-ctl, ir-keytable, ivtv-ctl, media-ctl, rds-ctl, v4l2-compliance, v4l2-ctl, v4l2-dbg, v4l2-sysfs-path, v4l2-tracer.

Libraries: libdvbv5.so, libv4l1.so, libv4l2.so, libv4l2rds.so, libv4lconvert.so.

Directories: /etc/rc_keymaps, /lib/udev/rc_keymaps, /usr/include/libdvbv5, /usr/lib/libv4l, /usr/share/licenses/v4l-utils.