Introduction to x264

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.0 platform.

Package Information

x264 Dependencies



ffms2, gpac or liblsmash

Installation of x264

Install x264 by running the following commands:

./configure --prefix=/usr \
            --enable-shared \
            --disable-cli &&

This package does not come with a test suite.

Now, as the root user:

make install

Command Explanations

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


Installed Programs: None
Installed Library: libx264.so
Installed Directory: None

Short Descriptions


provides the functions used to encode video streams into the H.264/MPEG-4 AVC format