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.
This package is known to build and work properly using an LFS-8.4 platform.
Download (HTTP): http://libmpeg2.sourceforge.net/files/libmpeg2-0.5.1.tar.gz
Download (FTP): ftp://ftp.mirrorservice.org/sites/distfiles.gentoo.org/distfiles/libmpeg2-0.5.1.tar.gz
Download MD5 sum: 0f92c7454e58379b4a5a378485bbd8ef
Download size: 513 KB
Estimated disk space required: 6 MB
Estimated build time: 0.1 SBU
X Window System and SDL-1.2.15
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/libmpeg2
Install libmpeg2 by running the following commands:
sed -i 's/static const/static/' libmpeg2/idct_mmx.c && ./configure --prefix=/usr \ --enable-shared \ --disable-static && make
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.5.1 && install -v -m644 README doc/libmpeg2.txt \ /usr/share/doc/mpeg2dec-0.5.1
sed -i ...: This sed fixes problems with recent GCC compilers.
--disable-static
: This
switch prevents installation of static versions of the libraries.
Last updated on 2019-02-17 13:55:58 -0800