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.
-Dqv4l2=disabled, line 22: qv4l2 (explained with the switches below)
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
-D_LARGEFILE64_SOURCE— InCFLAGSandCXXFLAGS: musl declaresopen64andmmap64, whichv4l2-tracer’s preload library wraps and its retrace calls, only under this macro; see A glibc-only call on musl.-Dudevdir=/lib/udev— Install the udev rules andir-keytable’s remote-control keymaps where eudev reads them;/libis/usr/libon KDOS.-Dbpf=enabled— Buildir-keytable’s BPF protocol decoders, compiled with clang for the BPF target and loaded through libbpf;clang,libbpfandelfutilsare dependencies for this.-Dgconv=disabled— Build no gconv modules for the ARIB STD-B24 and EN 300 468 character sets DVB broadcasts use. gconv is glibc’s converter-plugin interface, and musl has nogconv.h.-Djpeg=enabled— Letlibv4lconvertdecode JPEG and Motion-JPEG cameras through libjpeg-turbo.-Dlibdvbv5=enabled— Buildlibdvbv5and thedvb*tools.-Dqv4l2=disabled— With-Dqvidcap=disabled, build neither Qt program here. The qv4l2 port builds them from the same source in44_apps; this phase has no toolkit.-Dv4l2-tracer=enabled— Buildv4l2-tracer, which records and replays a program’s V4L2 calls, through json-c.-Dv4l-plugins=true— With-Dv4l-utils=true,-Dv4l-wrappers=true,-Dv4l2-compliance-libv4l=true,-Dv4l2-ctl-libv4l=trueand-Dv4l2-ctl-stream-to=true, build libv4l’s plugin support, the utilities, thev4l1compatandv4l2convertpreload wrappers, the libv4l paths inv4l2-complianceandv4l2-ctl, andv4l2-ctl --stream-to. All are on wherever their options are left unset; the recipe names them.-Ddoxygen-doc=disabled— Build no Doxygen documentation.
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.