libmpeg2-0.5.1

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.

[注記]

注記

LFS や依存パッケージが本ブックに示す最新安定バージョンでなかった場合には、BLFS 開発版においては、パッケージのビルドや処理実行が適切に行われないことがあります。

Package Information

libmpeg2 Dependencies

Optional

グラフィック環境 and sdl12-compat-1.2.68

Installation of 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/libmpeg2-0.5.1 &&
install -v -m644 README doc/libmpeg2.txt \
                    /usr/share/doc/libmpeg2-0.5.1

Command Explanations

sed -i ...: This sed fixes problems with recent GCC compilers.

--disable-static: このスイッチはスタティックライブラリをインストールしないようにします。

Contents

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

Short Descriptions

extract_mpeg2

extracts MPEG video streams from a multiplexed stream

mpeg2dec

decodes MPEG1 and MPEG2 video streams

libmpeg2.so

contains API functions used to decode MPEG video streams

libmpeg2convert.so

contains API functions used for color conversions of MPEG video streams