1. First of all you need to activate the Medibuntu-repositories at http://www.medibuntu.org. Follow the instructions for your ubuntu version.
ex. for Intrepid Ibex:
sudo wget http://www.medibuntu.org/sources.list.d/intrepid.list --output-document=/etc/apt/sources.list.d/medibuntu.list
sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update
2. Then you need som packages and their devs:
sudo apt-get install build-essential w32codecs subversion msttcorefonts libdvdcss2 em8300-headers gawk gettext html2text intltool-debian ladspa-sdk libaa1-dev libartsc0 libartsc0-dev libasound2-dev libatk1.0-dev libaudio-dev libaudio2 libaudiofile-dev libavahi-client-dev libavahi-common-dev libcaca-dev libcairo2-dev libcdparanoia0-dev libcucul-dev libdbus-1-dev libdbus-glib-1-dev libdirectfb-dev libdirectfb-extra libdts-dev libdv4-dev libenca-dev libenca0 libesd0-dev libexpat1-dev libfaac-dev libfaac0 libfontconfig1-dev libfreebob0 libfreetype6-dev libfribidi-dev libggi-target-x libggi2 libggi2-dev libggimisc2 libggimisc2-dev libgif-dev libgii1 libgii1-dev libgii1-target-x libgl1-mesa-dev libglib2.0-dev libglide2 libglu1-mesa-dev libglu1-xorg-dev libgtk2.0-dev libice-dev libjack-dev libjack0 libjpeg62-dev liblzo-dev liblzo1 liblzo2-2 liblzo2-dev libmad0 libmad0-dev libmail-sendmail-perl libmp3lame-dev libmp3lame0 libmpcdec-dev libmpcdec3 libncurses5-dev libogg-dev libopenal-dev libopenal1 libpango1.0-dev libpixman-1-dev libpng12-dev libpopt-dev libpthread-stubs0 libpthread-stubs0-dev libpulse-dev libpulse-mainloop-glib0 libsdl1.2-dev libslang2-dev libsm-dev libsmbclient-dev libspeex-dev libsvga1 libsvga1-dev libsys-hostname-long-perl libsysfs-dev libtheora-dev libtwolame-dev libtwolame0 libvorbis-dev libx11-dev libxau-dev libxcb-render-util0-dev libxcb-render0-dev libxcb-xlib0-dev libxcb1-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxrandr-dev libxrender-dev libxt-dev libxv-dev libxvidcore4 libxvidcore4-dev libxvmc-dev libxvmc1 libxxf86dga-dev libxxf86vm-dev mesa-common-dev po-debconf sharutils x11proto-composite-dev x11proto-core-dev x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-video-dev x11proto-xext-dev x11proto-xf86dga-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev xtrans-dev zlib1g-dev libamrnb-dev libamrwb-dev libschroedinger-dev
3. You will also need the mplayer codecs from http://www.mplayerhq.hu (if link does not work visit mplayer.hu to get the latest version):
wget http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
tar xvf essential-20071007.tar.bz2
sudo mkdir /usr/local/lib/mcodecs
sudo mv essential-20071007/* /usr/local/lib/mcodecs/
4. Next up is to get the latest version of mplayer:
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
cd mplayer
svn update
./configure --prefix=/usr/local --codecsdir=/usr/local/lib/codecs --win32codecsdir=/usr/lib/win32
(remember to change path to the codecs if different on your system)
make
sudo make install
To keep your mplayer up to date at all times run 'svn update' from the mplayer folder once a month - or week :-) and compile again to get the latest updates.
5. If all goes well you will now have the latest release of mplayer installed on your system, and it's time to configure mplayer:
gedit $HOME/.mplayer/config
Insert the following lines, and save the file:
#General setup
ao="alsa" #audio out
mixer-channel="Master"
srate=48000
really-quiet="1" #Very very little console output
vo="xv" #video out
zoom="1" #Allow sofware scaling if I use x11 for vo
aid="1" #audio channel
sid="0" #subtitle set
autoq=100 #This sets the postprocessing into overdrive using all possible
vf=pp=de,hqdn3d #spare cpu cycles to make the movie look better
#Display
double="yes" #double buffering(recommended for subtitles)
monitoraspect="16:9" #I'm on a widescreen laptop so keeps 4:3 content from stretching
framedrop="1" #For slow machines
hardframedrop="0" #Make sure hard frame drop is off but can turn on easily now
#subtitle code
font=/usr/share/fonts/truetype/msttcorefonts/impact.ttf
ffactor="10" #black outline
sub-bg-alpha="0" #background color ala closed captions
sub-bg-color="0" #black to white
subfont-text-scale="3.7" #truetype font scaling
subfont-blur="1" #Slight blur
subpos="90" #By default subtitles are too low
subalign="2"
#always keep mplayer on top
ontop="1"
#turns off xscreen saver...maybe
stop-xscreensaver="yes"
6. You're done, and you can now play most mediafiles either from CLI with
mplayer <filename>
or from ex. nautilus (rightclick and 'Open with...", select mplayer if in list, or your own command at the bottom of the dialogbox - eg. mplayer, then Open). Tip: rightclick a mediafile, selct Properties, the Open with-tab and select/add mplayer so that this type of file always opens with mplayer.
This howto does NOT install either the mplayer-plugin for Firefox nor any mplayer GUI. This you will have to do yourself :-)
ex. for Intrepid Ibex:
sudo wget http://www.medibuntu.org/sources.list.d/intrepid.list --output-document=/etc/apt/sources.list.d/medibuntu.list
sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update
2. Then you need som packages and their devs:
sudo apt-get install build-essential w32codecs subversion msttcorefonts libdvdcss2 em8300-headers gawk gettext html2text intltool-debian ladspa-sdk libaa1-dev libartsc0 libartsc0-dev libasound2-dev libatk1.0-dev libaudio-dev libaudio2 libaudiofile-dev libavahi-client-dev libavahi-common-dev libcaca-dev libcairo2-dev libcdparanoia0-dev libcucul-dev libdbus-1-dev libdbus-glib-1-dev libdirectfb-dev libdirectfb-extra libdts-dev libdv4-dev libenca-dev libenca0 libesd0-dev libexpat1-dev libfaac-dev libfaac0 libfontconfig1-dev libfreebob0 libfreetype6-dev libfribidi-dev libggi-target-x libggi2 libggi2-dev libggimisc2 libggimisc2-dev libgif-dev libgii1 libgii1-dev libgii1-target-x libgl1-mesa-dev libglib2.0-dev libglide2 libglu1-mesa-dev libglu1-xorg-dev libgtk2.0-dev libice-dev libjack-dev libjack0 libjpeg62-dev liblzo-dev liblzo1 liblzo2-2 liblzo2-dev libmad0 libmad0-dev libmail-sendmail-perl libmp3lame-dev libmp3lame0 libmpcdec-dev libmpcdec3 libncurses5-dev libogg-dev libopenal-dev libopenal1 libpango1.0-dev libpixman-1-dev libpng12-dev libpopt-dev libpthread-stubs0 libpthread-stubs0-dev libpulse-dev libpulse-mainloop-glib0 libsdl1.2-dev libslang2-dev libsm-dev libsmbclient-dev libspeex-dev libsvga1 libsvga1-dev libsys-hostname-long-perl libsysfs-dev libtheora-dev libtwolame-dev libtwolame0 libvorbis-dev libx11-dev libxau-dev libxcb-render-util0-dev libxcb-render0-dev libxcb-xlib0-dev libxcb1-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxrandr-dev libxrender-dev libxt-dev libxv-dev libxvidcore4 libxvidcore4-dev libxvmc-dev libxvmc1 libxxf86dga-dev libxxf86vm-dev mesa-common-dev po-debconf sharutils x11proto-composite-dev x11proto-core-dev x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-video-dev x11proto-xext-dev x11proto-xf86dga-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev xtrans-dev zlib1g-dev libamrnb-dev libamrwb-dev libschroedinger-dev
3. You will also need the mplayer codecs from http://www.mplayerhq.hu (if link does not work visit mplayer.hu to get the latest version):
wget http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
tar xvf essential-20071007.tar.bz2
sudo mkdir /usr/local/lib/mcodecs
sudo mv essential-20071007/* /usr/local/lib/mcodecs/
4. Next up is to get the latest version of mplayer:
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
cd mplayer
svn update
./configure --prefix=/usr/local --codecsdir=/usr/local/lib/codecs --win32codecsdir=/usr/lib/win32
(remember to change path to the codecs if different on your system)
make
sudo make install
To keep your mplayer up to date at all times run 'svn update' from the mplayer folder once a month - or week :-) and compile again to get the latest updates.
5. If all goes well you will now have the latest release of mplayer installed on your system, and it's time to configure mplayer:
gedit $HOME/.mplayer/config
Insert the following lines, and save the file:
#General setup
ao="alsa" #audio out
mixer-channel="Master"
srate=48000
really-quiet="1" #Very very little console output
vo="xv" #video out
zoom="1" #Allow sofware scaling if I use x11 for vo
aid="1" #audio channel
sid="0" #subtitle set
autoq=100 #This sets the postprocessing into overdrive using all possible
vf=pp=de,hqdn3d #spare cpu cycles to make the movie look better
#Display
double="yes" #double buffering(recommended for subtitles)
monitoraspect="16:9" #I'm on a widescreen laptop so keeps 4:3 content from stretching
framedrop="1" #For slow machines
hardframedrop="0" #Make sure hard frame drop is off but can turn on easily now
#subtitle code
font=/usr/share/fonts/truetype/msttcorefonts/impact.ttf
ffactor="10" #black outline
sub-bg-alpha="0" #background color ala closed captions
sub-bg-color="0" #black to white
subfont-text-scale="3.7" #truetype font scaling
subfont-blur="1" #Slight blur
subpos="90" #By default subtitles are too low
subalign="2"
#always keep mplayer on top
ontop="1"
#turns off xscreen saver...maybe
stop-xscreensaver="yes"
6. You're done, and you can now play most mediafiles either from CLI with
mplayer <filename>
or from ex. nautilus (rightclick and 'Open with...", select mplayer if in list, or your own command at the bottom of the dialogbox - eg. mplayer, then Open). Tip: rightclick a mediafile, selct Properties, the Open with-tab and select/add mplayer so that this type of file always opens with mplayer.
This howto does NOT install either the mplayer-plugin for Firefox nor any mplayer GUI. This you will have to do yourself :-)
Kommentarer