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

139.6. x264-20250608.1624

H.264 encoder — GPL-2+, and it relicenses the ffmpeg that links it

20250608.1624-1 · GPL-2.0-or-later · 1.1 SBU · 2.8 MiB, 6 files · 41_system, 985 of 1047 · ports/core/video-libs/x264

Homepage: https://www.videolan.org/developers/x264.html

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: nasm.

Required by (6): avidemux, ffmpeg, gst-plugins-ugly, handbrake, obs-studio, vlc.

Sources: x264-20250608.1624.tar.bz2 (828.8 KiB). Every step kpkg takes applies to this port.

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

build.sh:

export CFLAGS="${CFLAGS/-O2/-O3} -frandom-seed=x264"

./configure \
	--prefix=/usr \
	--libdir=/usr/lib \
	--enable-shared \
	--enable-pic \
	--enable-lto \
	--disable-cli \
	--disable-opencl
make
make DESTDIR=$PKG install

Libraries: libx264.so.

Directories: /usr/share/licenses/x264.