x264 package provides a library for encoding video streams into the H.264/MPEG-4 AVC format.
This package is known to build and work properly using an LFS 12.4 platform.
Download (HTTP): https://anduin.linuxfromscratch.org/BLFS/x264/x264-20250815.tar.xz
Download SHA256 Sum: eb9c8febcf4889d01a4fd97f67a9bec74981a67c89d04e492b74e81edd720031
Download MD5 sum: a4adb6f7d2644043765885e54abc3955
Download size: 5,770.1 KB
Estimated disk space required: 11,682.2 KB
Estimated build time: less than 0.5 SBU
Prepare x264 by running the following commands:
./configure --prefix=/usr \
--enable-shared \
--disable-climake
This package does not come with a test suite.
Now Install the package, as the root user:
make install
--disable-cli: This switch disables building the
command-line encoder which is redundant since it requires FFmpeg for
most of the input formats.
--disable-asm: Use this switch if you didn't install
NASM.