Difference between revisions of "MPlayer"

From CBLFS
Jump to navigationJump to search
m
 
(54 intermediate revisions by 15 users not shown)
Line 3: Line 3:
 
!Download Source:
 
!Download Source:
 
|-
 
|-
| http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre7try2.tar.bz2
+
| http://www.mplayerhq.hu/MPlayer/releases/mplayer-export-snapshot.tar.bz2
 
|-
 
|-
!Download Patches:
+
!Download Codecs:
|-
 
| 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-{{MPlayer-Codecs-Version}}.tar.bz2
 
|-
 
|-
| http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-20060501.tar.bz2  
+
| http://www.mplayerhq.hu/MPlayer/releases/codecs/all-{{MPlayer-Codecs-Version}}.tar.bz2  
 
|-
 
|-
| http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20060501.tar.bz2  
+
| http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-amd64-20061203.tar.bz2 (x86_64, 64-bit only)
 
|-
 
|-
 
| http://www.mplayerhq.hu/MPlayer/releases/codecs/
 
| http://www.mplayerhq.hu/MPlayer/releases/codecs/
Line 27: Line 17:
 
!Skins:
 
!Skins:
 
|-
 
|-
| http://www.mplayerhq.hu/MPlayer/skins/Blue-1.6.tar.bz2  
+
| http://www.mplayerhq.hu/MPlayer/skins/Blue-{{MPlayer-Blue-Version}}.tar.bz2
 
|-
 
|-
 
!Additional skins:  
 
!Additional skins:  
Line 39: Line 29:
  
 
----
 
----
 +
 +
{{Package-Introduction|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 [http://www1.mplayerhq.hu/homepage/design7/info.html MPlayer web site].|http://www1.mplayerhq.hu/homepage/}}
  
 
== Dependencies ==
 
== Dependencies ==
 +
 +
{{Note|It is important to unset CFLAGS. Otherwise build will fail! If it doesn't fail, it will most likely error when run.}}
 +
 +
=== Optional ===
 +
 +
* [[Libdvdcss]]
 +
* [[Libdvdread]]
 +
* [[Pkg-config]]
 +
* [[Samba]]
 +
* [[DirectFB]]
 +
* [[X_Window_System]]
 +
* [[Libcaca]]
 +
* [[Libpng]]
 +
* [[Libjpeg]]
 +
* [[SDL]]
 +
* [[NAS]]
 +
* [[EsounD]]
 +
* [[ARts]]
 +
* [[ALSA]]
 +
* [[JACK]]
 +
* [[OpenAL]]
 +
* [[FreeType]]
 +
* [[Libass]]
 +
* [[Libcdio]]
 +
* [[CDParanoia-III]]
 +
* [[FontConfig]]
 +
* [[Liba52]]
 +
* [[Libvorbis]]
 +
* [[Speex]]
 +
* [[FAAC]]
 +
* [[FAAD2]]
 +
* [[XviD]]
 +
* [[x264]]
 +
* [[XMMS]]
 +
* [[Lirc]]
 +
* [[Libdvdnav]]
 +
* [[FFmpeg]]
 +
 +
=== GUI Required ===
 +
 +
* [[Gtk2]]
  
 
== Non-Multilib ==
 
== Non-Multilib ==
  
Install Additinal Codecs:
+
Install additional codecs:
  
 
  install -v -d -m755 /usr/lib/mplayer/codecs &&
 
  install -v -d -m755 /usr/lib/mplayer/codecs &&
  tar -xvf ../essential-20060501.tar.bz2 -C /usr/lib/mplayer/codecs --strip-components=1 &&
+
  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
  
Install GUI:
+
Install a basic skin for use with the GUI:
  
 
  install -v -d -m755 /usr/share/mplayer/Skin &&
 
  install -v -d -m755 /usr/share/mplayer/Skin &&
  tar -xvf ../Blue-1.5.tar.bz2 -C /usr/share/mplayer/Skin &&
+
  tar -xvf ../Blue-{{MPlayer-Blue-Version}}.tar.bz2 -C /usr/share/mplayer/Skin &&
 
  chown -v -R root:root /usr/share/mplayer/Skin/Blue &&
 
  chown -v -R root:root /usr/share/mplayer/Skin/Blue &&
 
  chmod -v 755 /usr/share/mplayer/Skin/Blue{,/icons} &&
 
  chmod -v 755 /usr/share/mplayer/Skin/Blue{,/icons} &&
 
  ln -sfv Blue /usr/share/mplayer/Skin/default
 
  ln -sfv Blue /usr/share/mplayer/Skin/default
 +
 +
Correct a hard coded path to Xorg in the configure script:
 +
 +
sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" configure
 +
 +
If not installing the GUI, remove the "--enable-x11 --enable-gui" from the configure command.
  
 
Configure and compile the package:
 
Configure and compile the package:
  
sed -i 's/getline/vobsub_&/' vobsub.c
+
  ./configure --prefix=/usr --confdir=/etc/mplayer --enable-largefiles \
patch -Np1 -i ../MPlayer-1.0pre7try2-kernel_2.6-1.patch &&
+
    --enable-x11 --enable-gui &&
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
 
  make
  
Line 72: Line 108:
  
 
  make install
 
  make install
  install -v -m755 -d /usr/share/doc/mplayer-1.0pre7try2 &&
+
  install -v -m755 -d /usr/share/doc/mplayer &&
  cp -v -R DOCS/*    /usr/share/doc/mplayer-1.0pre7try2
+
  cp -v -R DOCS/*    /usr/share/doc/mplayer
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
 
  install -m644 etc/*.conf /etc/mplayer
 
  install -m644 etc/*.conf /etc/mplayer
Line 81: Line 116:
 
Install the fonts:
 
Install the fonts:
  
 +
mkdir -p /usr/share/mplayer/font
 
  tar -xvf ../font-arial-iso-8859-1.tar.bz2 -C /usr/share/mplayer/font &&
 
  tar -xvf ../font-arial-iso-8859-1.tar.bz2 -C /usr/share/mplayer/font &&
 
  chown -v -R root:root /usr/share/mplayer/font &&
 
  chown -v -R root:root /usr/share/mplayer/font &&
Line 86: Line 122:
 
  ln -v -sf font-arial-iso-8859-1/font-arial-FONT_SIZE-iso-8859-1/* .
 
  ln -v -sf font-arial-iso-8859-1/font-arial-FONT_SIZE-iso-8859-1/* .
  
Available font sizes are 14, 18, 24 or 28
+
Available font sizes are 14, 18, 24 or 28.
  
 
== Multilib ==
 
== Multilib ==
  
=== 32Bit ===
+
=== Common ===
 +
 
 +
Install a basic skin for use with the GUI:
 +
 
 +
install -v -d -m755 /usr/share/mplayer/Skin &&
 +
tar -xvf ../Blue-{{MPlayer-Blue-Version}}.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
  
Install Additinal Codecs:
+
=== 32Bit (ix86 and x86_64 only) ===
 +
 
 +
Install additional codecs:
  
 
  install -v -d -m755 /usr/lib/mplayer/codecs &&
 
  install -v -d -m755 /usr/lib/mplayer/codecs &&
  tar -xvf ../essential-20060501.tar.bz2 -C /usr/lib/mplayer/codecs --strip-components=1 &&
+
  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
  
Install GUI:
+
Correct a hard coded path to Xorg in the configure script:
 +
 
 +
sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" configure
 +
 
 +
If not installing the GUI, remove the "--enable-x11 --enable-gui" from the configure command.
 +
 
 +
Configure and compile the package:
 +
 
 +
CC="gcc ${BUILD32}" USE_ARCH=32 \
 +
PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" \
 +
./configure --prefix=/usr --confdir=/etc/mplayer \
 +
    --enable-largefiles --target=${CLFS_TARGET32} --enable-x11 --enable-gui &&
 +
make
 +
 
 +
Install the package:
 +
 
 +
make install
 +
install -v -m755 -d /usr/share/doc/mplayer &&
 +
cp -v -R DOCS/*    /usr/share/doc/mplayer &&
 +
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:
 +
 
 +
mkdir ~/.mplayer/{,font} &&
 +
tar -xvf ../font-arial-iso-8859-1.tar.bz2 -C /usr/share/mplayer/font &&
 +
chown -v -R root:root /usr/share/mplayer/font
 +
 
 +
Available font sizes are 14, 18, 24 or 28.
 +
 
 +
=== 64Bit (x86_64 only) ===
 +
 
 +
Install additional codecs:
 +
 
 +
install -v -d -m755 /usr/lib64/mplayer/codecs &&
 +
tar -xvf ../essential-amd64-20061203.tar.bz2 -C /usr/lib64/mplayer/codecs --strip-components=1 &&
 +
chown -v -R root:root /usr/lib64/mplayer/codecs
 +
 
 +
If not installing the GUI, remove the "--enable-x11 --enable-gui" from the configure command.
 +
 
 +
Correct a hard coded path to Xorg in the configure script:
  
  install -v -d -m755 /usr/share/mplayer/Skin &&
+
  sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" configure
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:
 
Configure and compile the package:
  
sed -i 's/getline/vobsub_&/' vobsub.c
+
  CC="gcc ${BUILD64}" USE_ARCH=64 \
patch -Np1 -i ../MPlayer-1.0pre7try2-kernel_2.6-1.patch &&
+
PKG_CONFIG_PATH="$PKG_CONFIG_PATH64" \
patch -Np1 -i ../MPlayer-1.0pre7try2-gcc4-1.patch &&
+
./configure --prefix=/usr --confdir=/etc/mplayer \
patch -Np1 -i ../MPlayer-1.0pre7try2-round_function_fix-1.patch &&
+
    --enable-largefiles --target=${CLFS_TARGET} --enable-x11 --enable-gui &&
patch -Np1 -i ../MPlayer-1.0pre7try2-jack_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 \
 
--target=i686-pc-linux-gnu &&
 
 
  make
 
  make
  
Line 121: Line 200:
  
 
  make install
 
  make install
  install -v -m755 -d /usr/share/doc/mplayer-1.0pre7try2 &&
+
  install -v -m755 -d /usr/share/doc/mplayer &&
  cp -v -R DOCS/*    /usr/share/doc/mplayer-1.0pre7try2
+
  cp -v -R DOCS/*    /usr/share/doc/mplayer &&
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
+
  install -m644 etc/*.conf /etc/mplayer &&
  install -m644 etc/*.conf /etc/mplayer
 
 
  echo "dev.rtc.max-user-freq=1024" >> /etc/sysctl.conf
 
  echo "dev.rtc.max-user-freq=1024" >> /etc/sysctl.conf
  
 
Install the fonts:
 
Install the fonts:
  
 +
mkdir ~/.mplayer/{,font} &&
 
  tar -xvf ../font-arial-iso-8859-1.tar.bz2 -C /usr/share/mplayer/font &&
 
  tar -xvf ../font-arial-iso-8859-1.tar.bz2 -C /usr/share/mplayer/font &&
  chown -v -R root:root /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
 +
 
 +
=== Short Descriptions ===
  
Available font sizes are 14, 18, 24 or 28
+
gmplayer: GMPlayer is the graphical version of MPlayer.
  
=== N32 ===
+
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.
  
TO DO!
+
mencoder: is used to encode any MPlayer playable movie to any codec in libavcodec.
  
=== 64Bit ===
+
libdha.so: contains functions used by the MPlayer programs.
  
......We build mplayer as 32bit for the codecs.......
+
libpostproc.so: is a post-processing filter library used by the MPlayer programs and other packages.
  
*[[Audio/Media]]
+
[[Category:Media Utilities]]
*[[Main Page]]
 

Latest revision as of 23:52, 15 August 2009

Download Source:
http://www.mplayerhq.hu/MPlayer/releases/mplayer-export-snapshot.tar.bz2
Download Codecs:
http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2
http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20061022.tar.bz2
http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-amd64-20061203.tar.bz2 (x86_64, 64-bit only)
http://www.mplayerhq.hu/MPlayer/releases/codecs/
Skins:
http://www.mplayerhq.hu/MPlayer/skins/Blue-1.8.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

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.

Project Homepage: http://www1.mplayerhq.hu/homepage/

Dependencies

Caution.png

Note

It is important to unset CFLAGS. Otherwise build will fail! If it doesn't fail, it will most likely error when run.

Optional

GUI Required

Non-Multilib

Install additional 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 a basic skin for use with the GUI:

install -v -d -m755 /usr/share/mplayer/Skin &&
tar -xvf ../Blue-1.8.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

Correct a hard coded path to Xorg in the configure script:

sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" configure

If not installing the GUI, remove the "--enable-x11 --enable-gui" from the configure command.

Configure and compile the package:

./configure --prefix=/usr --confdir=/etc/mplayer --enable-largefiles \
    --enable-x11 --enable-gui &&
make

Install the package:

make install
install -v -m755 -d /usr/share/doc/mplayer &&
cp -v -R DOCS/*     /usr/share/doc/mplayer
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:

mkdir -p /usr/share/mplayer/font
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

Common

Install a basic skin for use with the GUI:

install -v -d -m755 /usr/share/mplayer/Skin &&
tar -xvf ../Blue-1.8.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

32Bit (ix86 and x86_64 only)

Install additional 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

Correct a hard coded path to Xorg in the configure script:

sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" configure

If not installing the GUI, remove the "--enable-x11 --enable-gui" from the configure command.

Configure and compile the package:

CC="gcc ${BUILD32}" USE_ARCH=32 \
PKG_CONFIG_PATH="$PKG_CONFIG_PATH32" \
./configure --prefix=/usr --confdir=/etc/mplayer \
    --enable-largefiles --target=${CLFS_TARGET32} --enable-x11 --enable-gui &&
make

Install the package:

make install
install -v -m755 -d /usr/share/doc/mplayer &&
cp -v -R DOCS/*     /usr/share/doc/mplayer &&
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:

mkdir ~/.mplayer/{,font} &&
tar -xvf ../font-arial-iso-8859-1.tar.bz2 -C /usr/share/mplayer/font &&
chown -v -R root:root /usr/share/mplayer/font

Available font sizes are 14, 18, 24 or 28.

64Bit (x86_64 only)

Install additional codecs:

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

If not installing the GUI, remove the "--enable-x11 --enable-gui" from the configure command.

Correct a hard coded path to Xorg in the configure script:

sed -i "s@/usr/X11R6@${XORG_PREFIX}@g" configure

Configure and compile the package:

CC="gcc ${BUILD64}" USE_ARCH=64 \
PKG_CONFIG_PATH="$PKG_CONFIG_PATH64" \
./configure --prefix=/usr --confdir=/etc/mplayer \
    --enable-largefiles --target=${CLFS_TARGET} --enable-x11 --enable-gui &&
make

Install the package:

make install
install -v -m755 -d /usr/share/doc/mplayer &&
cp -v -R DOCS/*     /usr/share/doc/mplayer &&
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:

mkdir ~/.mplayer/{,font} &&
tar -xvf ../font-arial-iso-8859-1.tar.bz2 -C /usr/share/mplayer/font &&
chown -v -R root:root /usr/share/mplayer/font

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

Short Descriptions

gmplayer: GMPlayer is the graphical version 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=18893"