Difference between revisions of "MPlayer"

From CBLFS
Jump to navigationJump to search
m
Line 114: Line 114:
 
  patch -Np1 -i ../MPlayer-1.0pre7try2-jack_fixes-1.patch &&
 
  patch -Np1 -i ../MPlayer-1.0pre7try2-jack_fixes-1.patch &&
 
  patch -Np1 -i ../MPlayer-1.0pre7try2-x264_fixes-1.patch &&
 
  patch -Np1 -i ../MPlayer-1.0pre7try2-x264_fixes-1.patch &&
  CC="gcc -m32" BUILDENV=32 PKG_CONFIG_PATH=/usr/lib/pkgconfig ./configure --prefix=/usr --confdir=/etc/mplayer --enable-largefiles \
+
  CC="gcc -m32" USE_ARCH=32 PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" ./configure --prefix=/usr --confdir=/etc/mplayer --enable-largefiles \
 
  --target=i686-pc-linux-gnu &&
 
  --target=i686-pc-linux-gnu &&
 
  make
 
  make

Revision as of 00:54, 17 November 2006

Download Source:
http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre7try2.tar.bz2
Download Patches:
http://svn.cross-lfs.org/svn/repos/patches/MPlayer/MPlayer-1.0pre7try2-gcc4-1.patch
http://svn.cross-lfs.org/svn/repos/patches/MPlayer/MPlayer-1.0pre7try2-round_function_fix-1.patch
http://svn.cross-lfs.org/svn/repos/patches/MPlayer/MPlayer-1.0pre7try2-x264_fixes-1.patch
http://svn.cross-lfs.org/svn/repos/patches/MPlayer/MPlayer-1.0pre7try2-jack_fixes-1.patch
http://svn.cross-lfs.org/svn/repos/patches/MPlayer/MPlayer-1.0pre7try2-kernel_2.6-1.patch
Download Codecs:
http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-20060501.tar.bz2
http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20060501.tar.bz2
http://www.mplayerhq.hu/MPlayer/releases/codecs/
Skins:
http://www.mplayerhq.hu/MPlayer/skins/Blue-1.6.tar.bz2
Additional skins:
http://www1.mplayerhq.hu/MPlayer/skins/
Fonts:
http://www1.mplayerhq.hu/MPlayer/releases/fonts/font-arial-iso-8859-1.tar.bz2

Dependencies

Non-Multilib

Install Additinal Codecs:

install -v -d -m755 /usr/lib/mplayer/codecs &&
tar -xvf ../essential-20060501.tar.bz2 -C /usr/lib/mplayer/codecs --strip-components=1 &&
chown -v -R root:root /usr/lib/mplayer/codecs

Install GUI:

install -v -d -m755 /usr/share/mplayer/Skin &&
tar -xvf ../Blue-1.6.tar.bz2 -C /usr/share/mplayer/Skin &&
chown -v -R root:root /usr/share/mplayer/Skin/Blue &&
chmod -v 755 /usr/share/mplayer/Skin/Blue{,/icons} &&
ln -sfv Blue /usr/share/mplayer/Skin/default

Configure and compile the package:

sed -i 's/getline/vobsub_&/' vobsub.c
patch -Np1 -i ../MPlayer-1.0pre7try2-kernel_2.6-1.patch &&
patch -Np1 -i ../MPlayer-1.0pre7try2-gcc4-1.patch &&
patch -Np1 -i ../MPlayer-1.0pre7try2-round_function_fix-1.patch &&
patch -Np1 -i ../MPlayer-1.0pre7try2-jack_fixes-1.patch &&
patch -Np1 -i ../MPlayer-1.0pre7try2-x264_fixes-1.patch &&
./configure --prefix=/usr --confdir=/etc/mplayer --enable-largefiles &&
make

Install the package:

make install
install -v -m755 -d /usr/share/doc/mplayer-1.0pre7try2 &&
cp -v -R DOCS/*     /usr/share/doc/mplayer-1.0pre7try2
ln -v -s libdha.so.1.0 /usr/lib/libdha.so
install -m644 etc/codecs.conf /etc/mplayer
install -m644 etc/*.conf /etc/mplayer
echo "dev.rtc.max-user-freq=1024" >> /etc/sysctl.conf

Install the fonts:

tar -xvf ../font-arial-iso-8859-1.tar.bz2 -C /usr/share/mplayer/font &&
chown -v -R root:root /usr/share/mplayer/font &&
cd /usr/share/mplayer/font &&
ln -v -sf font-arial-iso-8859-1/font-arial-FONT_SIZE-iso-8859-1/* .

Available font sizes are 14, 18, 24 or 28

Multilib x86_64

.....We build mplayer as 32bit for the codecs.....

Install Additinal Codecs:

install -v -d -m755 /usr/lib/mplayer/codecs &&
tar -xvf ../essential-20060501.tar.bz2 -C /usr/lib/mplayer/codecs --strip-components=1 &&
chown -v -R root:root /usr/lib/mplayer/codecs

Install GUI:

install -v -d -m755 /usr/share/mplayer/Skin &&
tar -xvf ../Blue-1.5.tar.bz2 -C /usr/share/mplayer/Skin &&
chown -v -R root:root /usr/share/mplayer/Skin/Blue &&
chmod -v 755 /usr/share/mplayer/Skin/Blue{,/icons} &&
ln -sfv Blue /usr/share/mplayer/Skin/default

Configure and compile the package:

sed -i 's/getline/vobsub_&/' vobsub.c
patch -Np1 -i ../MPlayer-1.0pre7try2-kernel_2.6-1.patch &&
patch -Np1 -i ../MPlayer-1.0pre7try2-gcc4-1.patch &&
patch -Np1 -i ../MPlayer-1.0pre7try2-round_function_fix-1.patch &&
patch -Np1 -i ../MPlayer-1.0pre7try2-jack_fixes-1.patch &&
patch -Np1 -i ../MPlayer-1.0pre7try2-x264_fixes-1.patch &&
CC="gcc -m32" USE_ARCH=32 PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" ./configure --prefix=/usr --confdir=/etc/mplayer --enable-largefiles \
--target=i686-pc-linux-gnu &&
make

Install the package:

make install
install -v -m755 -d /usr/share/doc/mplayer-1.0pre7try2 &&
cp -v -R DOCS/*     /usr/share/doc/mplayer-1.0pre7try2
ln -v -s libdha.so.1.0 /usr/lib/libdha.so
install -m644 etc/codecs.conf /etc/mplayer
install -m644 etc/*.conf /etc/mplayer
echo "dev.rtc.max-user-freq=1024" >> /etc/sysctl.conf

Install the fonts:

tar -xvf ../font-arial-iso-8859-1.tar.bz2 -C /usr/share/mplayer/font &&
chown -v -R root:root /usr/share/mplayer/font &&
cd /usr/share/mplayer/font &&
ln -v -sf font-arial-iso-8859-1/font-arial-FONT_SIZE-iso-8859-1/* .

Available font sizes are 14, 18, 24 or 28

Contents

The MPlayer package contains an audio/video player controlled via the command line or a graphical interface which is able to play almost every popular audio and video file format and CODEC (COder/DECoder, also COmpressor/DECompressor).

Installed Programs: gmplayer, mplayer, mencoder

Installed Libraries: libdha.so, libpostproc.so

Installed Directories: ~/.mplayer, /etc/mplayer, /usr/include/postproc, /usr/lib/mplayer, /usr/share/mplayer, /usr/share/doc/mplayer-1.0pre7try2

Short Descriptions

gmplayer: is a symlink to mplayer which brings up the graphical user interface component of MPlayer.

mplayer: manages the input formats, the CODECs and the output formats to play video files, DVDs, (S)VCDs or network streams containing audio and/or video information on your system.

mencoder: is used to encode any MPlayer playable movie to any CODEC in libavcodec.

libdha.so: contains functions used by the MPlayer programs.

libpostproc.so: is a post-processing filter library used by the MPlayer programs and other packages.

Retrieved from "?title=MPlayer&oldid=4122"