Introduction to libmpeg2

The libmpeg2 package contains a library for decoding MPEG-2 and MPEG-1 video streams. The library is able to decode all MPEG streams that conform to certain restrictions: “constrained parameters” for MPEG-1, and “main profile” for MPEG-2. This is useful for programs and applications needing to decode MPEG-2 and MPEG-1 video streams.

Package Information

libmpeg2 Dependencies


X Window System and SDL-1.2.11

User Notes:

Installation of libmpeg2

Install libmpeg2 by running the following commands:

./configure --prefix=/usr --enable-shared &&

To test the results, issue: make check. To perform a more comprehensive regression test, see the file test/README in the source tree.

Now, as the root user:

make install &&
install -v -m755 -d /usr/share/doc/mpeg2dec-0.4.1 &&
install -v -m644 README doc/libmpeg2.txt \

Command Explanations

--enable-shared: This parameter forces building shared versions of the libraries as well as the static versions.


Installed Programs: corrupt_mpeg2, extract_mpeg2 and mpeg2dec
Installed Libraries: libmpeg2.{so,a} and libmpeg2convert.{so,a}
Installed Directories: /usr/include/mpeg2dec and /usr/share/doc/mpeg2dec-0.4.1

Short Descriptions


extracts MPEG video streams from a multiplexed stream.


decodes MPEG1 and MPEG2 video streams.


contains API functions used to decode MPEG video streams.


contains API functions used for color conversions of MPEG video streams.

Last updated on 2007-07-19 16:21:53 -0500