Difference between revisions of "MPlayer"
Bigdissaved (talk | contribs) m (add note) |
Bigdissaved (talk | contribs) (Added GUI stuff and started deps) |
||
Line 36: | Line 36: | ||
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/}} | 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 == | ||
+ | |||
+ | To Do | ||
+ | |||
+ | |||
+ | === GUI Required == | ||
+ | |||
+ | * [[Gtk2} | ||
== Non-Multilib == | == Non-Multilib == | ||
Line 55: | Line 61: | ||
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 | ||
+ | |||
+ | If wanting the GUI, add --enable-x11 --enable-gui to the command line and use this sed script: | ||
+ | |||
+ | sed -i "s@ -lXext @${XORG_PREFIX}/lib &@g" configure | ||
Configure and compile the package: | Configure and compile the package: | ||
+ | |||
patch -Np1 -i ../MPlayer-{{MPlayer-Version}}-internal_dvd_fix-1.patch | patch -Np1 -i ../MPlayer-{{MPlayer-Version}}-internal_dvd_fix-1.patch | ||
./configure --prefix=/usr --confdir=/etc/mplayer --enable-largefiles && | ./configure --prefix=/usr --confdir=/etc/mplayer --enable-largefiles && | ||
− | make | + | make (If compiling the GUI, use this LDFLAGS: LDFLAGS="-L${XORG_PREFIX}/lib") |
Install the package: | Install the package: | ||
Line 98: | Line 109: | ||
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 | ||
+ | |||
+ | If wanting the GUI, add --enable-x11 --enable-gui to the command line and use this sed script: | ||
+ | |||
+ | sed -i "s@ -lXext @${XORG_PREFIX}/lib &@g" configure | ||
Configure and compile the package: | Configure and compile the package: | ||
Line 107: | Line 122: | ||
--enable-largefiles --target=${CLFS_TARGET32} --enable-x11 --enable-gui \ | --enable-largefiles --target=${CLFS_TARGET32} --enable-x11 --enable-gui \ | ||
--with-x11incdir=${XORG_PREFIX}/include --with-x11libdir=${XORG_PREFIX}/lib && | --with-x11incdir=${XORG_PREFIX}/include --with-x11libdir=${XORG_PREFIX}/lib && | ||
− | make | + | make (If compiling the GUI, use this LDFLAGS: LDFLAGS="-L${XORG_PREFIX}/lib") |
Install the package: | Install the package: |
Revision as of 19:49, 12 February 2008
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.
Project Homepage: http://www1.mplayerhq.hu/homepage/
Dependencies
To Do
= GUI Required
- [[Gtk2}
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.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
If wanting the GUI, add --enable-x11 --enable-gui to the command line and use this sed script:
sed -i "s@ -lXext @${XORG_PREFIX}/lib &@g" configure
Configure and compile the package:
patch -Np1 -i ../MPlayer-Template:MPlayer-Version-internal_dvd_fix-1.patch ./configure --prefix=/usr --confdir=/etc/mplayer --enable-largefiles && make (If compiling the GUI, use this LDFLAGS: LDFLAGS="-L${XORG_PREFIX}/lib")
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.Template:MPlayer-Version2 /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.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
If wanting the GUI, add --enable-x11 --enable-gui to the command line and use this sed script:
sed -i "s@ -lXext @${XORG_PREFIX}/lib &@g" configure
Configure and compile the package:
patch -Np1 -i ../MPlayer-Template:MPlayer-Version-internal_dvd_fix-1.patch 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 \ --with-x11incdir=${XORG_PREFIX}/include --with-x11libdir=${XORG_PREFIX}/lib && make (If compiling the GUI, use this LDFLAGS: LDFLAGS="-L${XORG_PREFIX}/lib")
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.Template:MPlayer-Version2 /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:
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 && cd /usr/share/mplayer/font && cp font-arial-iso-8859-1/font-arial-FONT_SIZE-iso-8859-1/* ~/.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-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.