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

139.7. libvpx-1.17.0

VP8 and VP9 codecs — BSD, so this one does not relicense ffmpeg

1.17.0-1 · BSD-3-Clause · 1.7 SBU · 3.7 MiB, 17 files · 41_system, 986 of 1047 · ports/core/video-libs/libvpx

Homepage: https://www.webmproject.org/

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.

libvpx is the reference VP8 and VP9 encoder and decoder from the WebM project. ffmpeg, the GStreamer plugins and the browsers’ media stacks link it. It is BSD-licensed, so linking it leaves ffmpeg’s licence as it is, which the GPL encoders x264 and x265 do not.

Depends on: nasm.

Required by (10): avidemux, baresip, ffmpeg, firefox-esr, gst-plugins-good, handbrake, librewolf, scummvm, thunderbird, vlc.

Sources: libvpx-1.17.0.tar.gz (5.4 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 libvpx'

build.sh:

export CFLAGS="$CFLAGS -flto=auto -frandom-seed=libvpx" CXXFLAGS="$CXXFLAGS -flto=auto -frandom-seed=libvpx"
export LDFLAGS="$LDFLAGS -flto=auto"
./configure \
	--prefix=/usr \
	--as=nasm \
	--libdir=/usr/lib \
	--enable-shared \
	--disable-static \
	--enable-pic \
	--enable-vp8 \
	--enable-vp9 \
	--enable-postproc \
	--enable-vp9-highbitdepth \
	--disable-examples \
	--disable-unit-tests \
	--disable-docs
make
make DESTDIR=$PKG install

Libraries: libvpx.so.

Directories: /usr/include/vpx, /usr/share/licenses/libvpx.