Introduction to XviD

XviD is an MPEG-4 compliant video CODEC.



Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.

Package Information

XviD Dependencies


yasm-1.3.0 or NASM-2.16.01

User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/xvid

Installation of XviD



This package tarball expands to xvidcore, not the expected xvidcore-1.3.7.

Install XviD by running the following commands:

cd build/generic &&
sed -i 's/^[email protected]_S@/& -f -v/' platform.inc.in &&

./configure --prefix=/usr &&

This package does not come with a test suite.

Now, as the root user:

sed -i '/libdir.*STATIC_LIB/ s/^/#/' Makefile &&
make install &&

chmod -v 755 /usr/lib/libxvidcore.so.4.3 &&
install -v -m755 -d /usr/share/doc/xvidcore-1.3.7/examples &&
install -v -m644 ../../doc/* /usr/share/doc/xvidcore-1.3.7 &&
install -v -m644 ../../examples/* \

Command Explanations

sed -i 's/^[email protected]_S@/& -f -v/' platform.inc.in: Fix error during make install if reinstalling or upgrading.

sed -i '/libdir.*STATIC_LIB/ s/^/#/' Makefile: This command disables installing the static library.


Installed Programs: None
Installed Library: libxvidcore.so
Installed Directory: /usr/share/doc/xvidcore-1.3.7

Short Descriptions


provides functions to encode and decode most MPEG-4 video data