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

139.4. svt-av1-4.2.0

Scalable AV1 encoder

4.2.0-1 · BSD-3-Clause-Clear AND BSD-2-Clause · 4.5 SBU · 7.7 MiB, 18 files · 41_system, 695 of 1047 · ports/core/video-libs/svt-av1

Homepage: https://gitlab.com/AOMediaCodec/SVT-AV1

Why it is in KDOS. The comment above the 4 ports from x264 to svt-av1 in script/phases/41_system/packages.d/video-libs.txt:

ffmpeg and the gst plugin packages are configured against these and are only as capable as what is installed: each of those build systems answers a missing library by disabling the feature rather than failing. One encoder per format: adding a second earns nothing. See ports/core/media-frameworks/ffmpeg/LICENSE.notice for what --enable-gpl does to the shipped binary's licence.

Depends on: cmake, nasm.

Required by (4): ffmpeg, gst-plugins-bad, libavif, libheif.

Sources: svt-av1-4.2.0.tar.bz2 (9.9 MiB). Every step kpkg takes applies to this port.

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

build.sh:

export LDFLAGS="$LDFLAGS -Wl,-z,stack-size=1048576"

mkdir -p build && cd build
cmake .. \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DBUILD_SHARED_LIBS=ON \
	-DBUILD_TESTING=OFF \
	-DBUILD_APPS=ON \
	-DREPRODUCIBLE_BUILDS=ON
make
make DESTDIR=$PKG install

Programs: SvtAv1EncApp.

Libraries: libSvtAv1Enc.so.

Directories: /usr/include/svt-av1, /usr/lib/cmake/SVT-AV1, /usr/share/licenses/svt-av1.