Difference between revisions of "MPlayer"
(I added the package description from BLFS.) |
|||
Line 3: | Line 3: | ||
!Download Source: | !Download Source: | ||
|- | |- | ||
− | | http://www.mplayerhq.hu/MPlayer/releases/MPlayer- | + | | http://www.mplayerhq.hu/MPlayer/releases/MPlayer-{{MPlayer-Version}}.tar.bz2 |
|- | |- | ||
!Download Patches: | !Download Patches: | ||
|- | |- | ||
− | | http://svn.cross-lfs.org/svn/repos/patches/MPlayer/MPlayer- | + | | http://svn.cross-lfs.org/svn/repos/patches/MPlayer/MPlayer-{{MPlayer-Version}}-gcc4-1.patch |
|- | |- | ||
− | | http://svn.cross-lfs.org/svn/repos/patches/MPlayer/MPlayer- | + | | http://svn.cross-lfs.org/svn/repos/patches/MPlayer/MPlayer-{{MPlayer-Version}}-round_function_fix-1.patch |
|- | |- | ||
− | | http://svn.cross-lfs.org/svn/repos/patches/MPlayer/MPlayer- | + | | http://svn.cross-lfs.org/svn/repos/patches/MPlayer/MPlayer-{{MPlayer-Version}}-x264_fixes-1.patch |
|- | |- | ||
− | | http://svn.cross-lfs.org/svn/repos/patches/MPlayer/MPlayer- | + | | http://svn.cross-lfs.org/svn/repos/patches/MPlayer/MPlayer-{{MPlayer-Version}}-jack_fixes-1.patch |
|- | |- | ||
− | | http://svn.cross-lfs.org/svn/repos/patches/MPlayer/MPlayer- | + | | http://svn.cross-lfs.org/svn/repos/patches/MPlayer/MPlayer-{{MPlayer-Version}}-kernel_2.6-1.patch |
|- | |- | ||
!Download Codecs: | !Download Codecs: | ||
|- | |- | ||
− | | http://www.mplayerhq.hu/MPlayer/releases/codecs/essential- | + | | http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-{{MPlayer-Codecs-Version}}.tar.bz2 |
|- | |- | ||
− | | http://www.mplayerhq.hu/MPlayer/releases/codecs/all- | + | | http://www.mplayerhq.hu/MPlayer/releases/codecs/all-{{MPlayer-Codecs-Version}}.tar.bz2 |
|- | |- | ||
| http://www.mplayerhq.hu/MPlayer/releases/codecs/ | | http://www.mplayerhq.hu/MPlayer/releases/codecs/ | ||
Line 53: | Line 53: | ||
install -v -d -m755 /usr/lib/mplayer/codecs && | install -v -d -m755 /usr/lib/mplayer/codecs && | ||
− | tar -xvf ../essential- | + | tar -xvf ../essential-{{MPlayer-Codecs-Version}}.tar.bz2 -C /usr/lib/mplayer/codecs --strip-components=1 && |
chown -v -R root:root /usr/lib/mplayer/codecs | chown -v -R root:root /usr/lib/mplayer/codecs | ||
Line 67: | Line 67: | ||
sed -i 's/getline/vobsub_&/' vobsub.c | sed -i 's/getline/vobsub_&/' vobsub.c | ||
− | patch -Np1 -i ../MPlayer- | + | patch -Np1 -i ../MPlayer-{{MPlayer-Version}}-kernel_2.6-1.patch && |
− | patch -Np1 -i ../MPlayer- | + | patch -Np1 -i ../MPlayer-{{MPlayer-Version}}-gcc4-1.patch && |
− | patch -Np1 -i ../MPlayer- | + | patch -Np1 -i ../MPlayer-{{MPlayer-Version}}-round_function_fix-1.patch && |
− | patch -Np1 -i ../MPlayer- | + | patch -Np1 -i ../MPlayer-{{MPlayer-Version}}-jack_fixes-1.patch && |
− | patch -Np1 -i ../MPlayer- | + | patch -Np1 -i ../MPlayer-{{MPlayer-Version}}-x264_fixes-1.patch && |
./configure --prefix=/usr --confdir=/etc/mplayer --enable-largefiles && | ./configure --prefix=/usr --confdir=/etc/mplayer --enable-largefiles && | ||
make | make | ||
Line 78: | Line 78: | ||
make install | make install | ||
− | install -v -m755 -d /usr/share/doc/mplayer- | + | install -v -m755 -d /usr/share/doc/mplayer-{{MPlayer-Version}} && |
− | cp -v -R DOCS/* /usr/share/doc/mplayer- | + | cp -v -R DOCS/* /usr/share/doc/mplayer-{{MPlayer-Version}} |
ln -v -s libdha.so.1.0 /usr/lib/libdha.so | ln -v -s libdha.so.1.0 /usr/lib/libdha.so | ||
install -m644 etc/codecs.conf /etc/mplayer | install -m644 etc/codecs.conf /etc/mplayer | ||
Line 101: | Line 101: | ||
install -v -d -m755 /usr/lib/mplayer/codecs && | install -v -d -m755 /usr/lib/mplayer/codecs && | ||
− | tar -xvf ../essential- | + | tar -xvf ../essential-{{MPlayer-Codecs-Version}}.tar.bz2 -C /usr/lib/mplayer/codecs --strip-components=1 && |
chown -v -R root:root /usr/lib/mplayer/codecs | chown -v -R root:root /usr/lib/mplayer/codecs | ||
Line 115: | Line 115: | ||
sed -i 's/getline/vobsub_&/' vobsub.c | sed -i 's/getline/vobsub_&/' vobsub.c | ||
− | patch -Np1 -i ../MPlayer- | + | patch -Np1 -i ../{{MPlayer-Version}}-kernel_2.6-1.patch && |
− | patch -Np1 -i ../MPlayer- | + | patch -Np1 -i ../{{MPlayer-Version}}-gcc4-1.patch && |
− | patch -Np1 -i ../MPlayer- | + | patch -Np1 -i ../{{MPlayer-Version}}-round_function_fix-1.patch && |
− | patch -Np1 -i ../MPlayer- | + | patch -Np1 -i ../{{MPlayer-Version}}-jack_fixes-1.patch && |
− | patch -Np1 -i ../MPlayer- | + | patch -Np1 -i ../{{MPlayer-Version}}-x264_fixes-1.patch && |
CC="gcc -m32" USE_ARCH=32 PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" ./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 && | ||
Line 127: | Line 127: | ||
make install | make install | ||
− | install -v -m755 -d /usr/share/doc/mplayer- | + | install -v -m755 -d /usr/share/doc/mplayer-{{MPlayer-Version}} && |
− | cp -v -R DOCS/* /usr/share/doc/mplayer- | + | cp -v -R DOCS/* /usr/share/doc/mplayer-{{MPlayer-Version}} |
ln -v -s libdha.so.1.0 /usr/lib/libdha.so | ln -v -s libdha.so.1.0 /usr/lib/libdha.so | ||
install -m644 etc/codecs.conf /etc/mplayer | install -m644 etc/codecs.conf /etc/mplayer | ||
Line 149: | Line 149: | ||
Installed Libraries: libdha.so, libpostproc.so | Installed Libraries: libdha.so, libpostproc.so | ||
− | Installed Directories: ~/.mplayer, /etc/mplayer, /usr/include/postproc, /usr/lib/mplayer, /usr/share/mplayer, /usr/share/doc/mplayer- | + | Installed Directories: ~/.mplayer, /etc/mplayer, /usr/include/postproc, /usr/lib/mplayer, /usr/share/mplayer, /usr/share/doc/mplayer-{{MPlayer-Version}} |
=== Short Descriptions === | === Short Descriptions === |
Revision as of 17:02, 17 December 2006
Contents
Introduction to MPlayer
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. With supported video hardware and additional drivers, MPlayer can play video files without an X Window System installed.
For MPlayer general information and available features, including a full list of file formats, codecs and output devices supported by MPlayer, visit the MPlayer web site.
Dependencies
Non-Multilib
Install Additinal Codecs:
install -v -d -m755 /usr/lib/mplayer/codecs && tar -xvf ../essential-20061022.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-Template:MPlayer-Version-kernel_2.6-1.patch && patch -Np1 -i ../MPlayer-Template:MPlayer-Version-gcc4-1.patch && patch -Np1 -i ../MPlayer-Template:MPlayer-Version-round_function_fix-1.patch && patch -Np1 -i ../MPlayer-Template:MPlayer-Version-jack_fixes-1.patch && patch -Np1 -i ../MPlayer-Template:MPlayer-Version-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-Template:MPlayer-Version && cp -v -R DOCS/* /usr/share/doc/mplayer-Template:MPlayer-Version 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-20061022.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 ../Template:MPlayer-Version-kernel_2.6-1.patch && patch -Np1 -i ../Template:MPlayer-Version-gcc4-1.patch && patch -Np1 -i ../Template:MPlayer-Version-round_function_fix-1.patch && patch -Np1 -i ../Template:MPlayer-Version-jack_fixes-1.patch && patch -Np1 -i ../Template:MPlayer-Version-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-Template:MPlayer-Version && cp -v -R DOCS/* /usr/share/doc/mplayer-Template:MPlayer-Version 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
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-Template:MPlayer-Version
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.