Results 1 to 10 of 65

Thread: Howto: Build the svn MPlayer under the latest release version of Ubuntu

Threaded View

  1. #1
    Join Date
    Dec 2006
    Beans
    7,230

    Howto: Build the svn MPlayer under the latest release version of Ubuntu

    This guide details how to install the development version of MPlayer on the latest release version of Ubuntu Linux. It will be periodically updated to cover the latest Ubuntu version in a 'rolling release' fashion. I hope you enjoy this guide and profit by it, feel free to post any problems or discussion in the thread that follows.

    Preparation: 14.04 LTS (Trusty Tahr)...

    To start with some basic tools are required, and we will also setup our build directory:

    Code:
    sudo apt-get -y install build-essential subversion checkinstall yasm \
    git docbook-xml docbook-xsl xsltproc libxml2-utils && \
    mkdir -pv $HOME/mplayer_build
    Next a considerable volume of interlinked development files are required, the following is a single command:

    Code:
    sudo apt-get -y install libaa1-dev libasound2-dev libcaca-dev libcdparanoia-dev libdca-dev \
    libdirectfb-dev libenca-dev libesd0-dev libfontconfig1-dev libfreetype6-dev \
    libfribidi-dev libgif-dev libgl1-mesa-dev libjack-jackd2-dev libopenal-dev libpulse-dev \
    libsdl1.2-dev libsvga1-dev libvdpau-dev libxinerama-dev libxv-dev libxvmc-dev libxxf86dga-dev \
    libxxf86vm-dev librtmp-dev libsctp-dev libass-dev libfaac-dev libsmbclient-dev libtheora-dev \
    libogg-dev libxvidcore-dev libspeex-dev libvpx-dev libschroedinger-dev libdirac-dev libdv4-dev \
    libopencore-amrnb-dev libopencore-amrwb-dev libmp3lame-dev libtwolame-dev \
    libmad0-dev libgsm1-dev libbs2b-dev liblzo2-dev ladspa-sdk libopenjpeg-dev libfaad-dev \
    libmpg123-dev libopus-dev libbluray-dev libaacs-dev libgtk2.0-dev
    Be a little wary of omitting any of these files as often a single file given here pulls in several more that are essential to a good MPlayer installation but feel free to add a few if required. With the basics done now we download some files external to the Ubuntu repositories:

    Codecs...

    MPlayer benefits from the use of some external codecs and these can be downloaded directly from the MPlayer website. The following is a single command:

    Code:
    cd $HOME/mplayer_build && \
    sudo mkdir -pv /usr/local/lib/codecs && \
    if [ "$(uname -m)" = "x86_64" ]; then
     wget http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-amd64-20071007.tar.bz2
     tar xjvf essential-amd64-20071007.tar.bz2
     sudo cp -v essential-amd64-20071007/* /usr/local/lib/codecs
    else
     wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20110131.tar.bz2
     tar xjvf all-20110131.tar.bz2
     sudo cp -v all-20110131/* /usr/local/lib/codecs
    fi
    Bear in mind that codecs for 64 bit users are pretty minimal, the real benefits here are for the 32 bit users. There is a continuing drive to bring access to these file formats under the libavcodec umbrella so hopefully one day these codecs will no longer be necessary.

    DVD Playback...

    The various libraries involved in DVD playback have all moved beyond repository versions and the newest libdvdcss requires newer libdvdread at least, I will throw in the newest libdvdnav for free . First remove all of the older libraries:

    Code:
    sudo apt-get remove libdvdcss2 libdvdnav-dev libdvdnav4 libdvdread-dev libdvdread4
    and now install the newer libraries:

    libdvdcss...

    Install the latest libdvdcss with the following single command:

    Code:
    cd $HOME/mplayer_build && \
    wget http://download.videolan.org/pub/libdvdcss/1.3.0/libdvdcss-1.3.0.tar.bz2 && \
    tar xvf libdvdcss-1.3.0.tar.bz2 && \
    cd libdvdcss-1.3.0 && \
    ./configure --disable-doc \
                --docdir=/usr/share/doc/libdvdcss && make && \
    mkdir -vp doc-pak && cp -v AUTHORS ChangeLog COPYING INSTALL NEWS README doc-pak && \
    sudo checkinstall --pakdir "$HOME/mplayer_build" --backup=no --deldoc=yes \
                      --pkgname libdvdcss2 --pkgversion "1.3.0" --fstrans=no \
                      --deldesc=yes --delspec=yes --default && \
    make distclean && sudo ldconfig
    libdvdread...

    Install the latest libdvdread with the following single command:

    Code:
    cd $HOME/mplayer_build && \
    wget http://www.videolan.org/pub/videolan/libdvdread/5.0.0/libdvdread-5.0.0.tar.bz2 && \
    tar xvf libdvdread-5.0.0.tar.bz2 && \
    cd libdvdread-5.0.0 && \
    ./configure && make && \
    mkdir -vp doc-pak && cp -v AUTHORS ChangeLog COPYING NEWS README doc-pak && \
    sudo checkinstall --pakdir "$HOME/mplayer_build" --backup=no --deldoc=yes \
                      --pkgname libdvdread --pkgversion "5.0.0" --fstrans=no \
                      --deldesc=yes --delspec=yes --default && \
    make distclean && sudo ldconfig
    libdvdnav...


    Install the latest libdvdnav with the following single command:

    Code:
    cd $HOME/mplayer_build && \
    wget http://www.videolan.org/pub/videolan/libdvdnav/5.0.1/libdvdnav-5.0.1.tar.bz2 && \
    tar xvf libdvdnav-5.0.1.tar.bz2 && \
    cd libdvdnav-5.0.1 && \
    ./configure  && make && \
    mkdir -vp doc-pak && cp -v AUTHORS ChangeLog COPYING README TODO doc-pak && \
    sudo checkinstall --pakdir "$HOME/mplayer_build" --backup=no --deldoc=yes \
                      --pkgname libdvdnav --pkgversion "5.0.1" --fstrans=no \
                      --deldesc=yes --delspec=yes --default && \
    make distclean && sudo ldconfig
    And now to compile the MPlayer code:

    Compiling MPlayer...

    Now to finally download and compile the svn MPlayer, bear in mind that you will be asked to also download the FFmpeg git source during this process which you should allow by pressing 'enter' when directed. The following is a single command:

    Code:
    cd $HOME/mplayer_build && \
    svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer && cd mplayer && \
    ./configure --disable-mencoder --codecsdir=/usr/local/lib/codecs && \
    make -j 2 && make html-chunked && \
    mkdir -vp doc-pak && \
    cp -v DOCS/HTML/*/* AUTHORS Changelog LICENSE README doc-pak && \
    sudo checkinstall -D --install=yes --fstrans=no --pakdir "$HOME/mplayer_build" \
       --pkgname mplayer --backup=no --deldoc=yes --deldesc=yes --delspec=yes --default \
       --pkgversion "3:1.0~svn$(LC_ALL=C svn info 2> /dev/null | \
         grep Revision | cut -d' ' -f2)" && \
    make distclean && sudo ldconfig
    And this is enough to get you a working copy of the great MPlayer! But it is a good idea to return from time to time and update your installation:

    Updating MPlayer...

    When you wish to update the svn MPlayer, as you definitely should do from time to time, the following single command will suffice:

    Code:
    cd $HOME/mplayer_build/mplayer && svn up && \
    ./configure --disable-mencoder --codecsdir=/usr/local/lib/codecs && \
    make -j 2 && make html-chunked && \
    mkdir -vp doc-pak && \
    cp -v DOCS/HTML/*/* AUTHORS Changelog LICENSE README doc-pak && \
    sudo checkinstall -D --install=yes --fstrans=no --pakdir "$HOME/mplayer_build" \
       --pkgname mplayer --backup=no --deldoc=yes --deldesc=yes --delspec=yes --default \
       --pkgversion "3:1.0~svn$(LC_ALL=C svn info 2> /dev/null | \
         grep Revision | cut -d' ' -f2)" && \
    make distclean && sudo ldconfig
    Using a gui...

    Many will want a gui to use with MPlayer and still the best is SMPlayer, although there is competition around these days! I conquer my usual misgivings about PPAs and give the directions for RVM's PPA:

    Code:
    sudo add-apt-repository ppa:rvm/smplayer && \
    sudo apt-get update && \
    sudo apt-get install smplayer smtube smplayer-themes smplayer-skins
    This completes the setup for this guide and I wish you all the best with your continued exploration of this great media player!

    And in conclusion...

    Guide updates:

    * Dec 02: Added compile instructions for DVD libraries to sort out some incompatibilites.
    * Dec 01: Added the required libraries (libdvdread & libdvdnav) to allow dvd reading post MPlayer source changes.
    * Oct 11: Update for Trusty Tahr, removed MEncoder and GMPlayer, added SMPlayer.
    Last edited by andrew.46; December 2nd, 2014 at 09:21 AM.
    You think that's air you're breathing now?

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •