![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
I Ubuntu, Therefore, I Am
![]() Join Date: Dec 2006
Beans: 3,326
Ubuntu 9.10 Karmic Koala
|
Howto: Utilise the svn MPlayer to Improve Karmic Koala's 'mplayer-nogui' Package
Over the last few years I have written several guides for the installation of the development version of MPlayer under Ubuntu. This particular version of that long series of guides is intended to bring the benefits of the cutting edge svn MPlayer to users of Karmic Koala by concentrating on upgrading the mplayer-nogui package. I should mention at this time that the mplayer-nogui package from the Karmic Repository is an improvement over packages seen in previous versions of Ubuntu and if the information below looks a little too much you will still be reasonably well served by simply installing the repository package. This guide is perhaps for those who want a little more...
============================ Some requirements... ============================ There is a little preparation work required before we actually lay hands on the MPlayer application and this will probably take about 30 minutes and involve a download of about 100 megabytes of extra software. First then for some necessary software: ------------------------ Required tools: ------------------------ Some compiling will be required for this guide so we will be downloading some compiling sotware as well as software to access subversion and git repositories and finally the utility checkinstall which will be used to keep the installation within the Ubuntu package management system. Copy the following and paste into a Terminal window, exclude the '$' marks which among other things demonstrates a new line of commands in this guide: Code:
$ sudo apt-get install build-essential gcc-4.3 g++-4.3 subversion checkinstall --------------------------- Development files: --------------------------- MPlayer works by automatically gathering functionality from various development files installed on your computer. The following list of files has been winnowed out from the standard sudo apt-get build-dep mplayer-nogui command in the interests of maintaining a cleaner system. Special note concerning vdpau support: As of r29823 the svn MPlayer requires Version 190.32 (or later) of the NVidia drivers to enable vdpau output, which effectively renders the Karmic NVidia drivers and libvdpau package obsolete. To obtain vdpau output you will now need to obtain the latest drivers from NVidia and compile MPlayer against them, no extra options are needed as MPlayer will detect the drivers/libraries and enable vdpau support automagically. Code:
$ sudo apt-get install ladspa-sdk libaa1-dev libasound2-dev libatk1.0-dev \ libaudio-dev libaudio2 libaudiofile-dev libavahi-client-dev libavahi-common-dev \ libcaca-dev libcairo2-dev libcdparanoia-dev libcelt0 libdbus-1-dev libdc1394-22 \ libdca-dev libdca0 libdirectfb-dev libdirectfb-extra libdts-dev libesd0-dev \ libexpat1-dev libffado1 libfontconfig1-dev libfreebob0 libfreetype6-dev \ libfribidi-dev libgif-dev libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev \ libgsm1 libgtk2.0-dev libice-dev libjack-dev libjack0 libjpeg62-dev liblzo2-2 \ liblzo2-dev libmail-sendmail-perl libncurses5-dev libogg-dev liboil0.3-dev \ libopenal-dev libopenal1 libpango1.0-dev libpixman-1-dev libpng12-dev \ libpthread-stubs0 libpthread-stubs0-dev libpulse-dev libruby1.8 \ libschroedinger-dev libsdl1.2-dev libslang2-dev libsm-dev libsmbclient-dev \ libspeex-dev libsvga1 libsvga1-dev libsys-hostname-long-perl libsysfs-dev \ libtheora-dev libvorbis-dev libvorbisidec-dev libvorbisidec1 libx11-dev libxau-dev \ libxcb-render-util0-dev libxcb-render0-dev libxcb1-dev libxcomposite-dev \ libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev \ libxi-dev libxinerama-dev libxml++2.6-2 libxrandr-dev libxrender-dev libxt-dev \ libxv-dev libxvidcore4 libxvidcore4-dev libxvmc-dev libxxf86dga-dev libxxf86vm-dev \ mesa-common-dev vstream-client-dev 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 libopencore-amrwb-dev libopencore-amrnb-dev libopenjpeg-dev Code:
$ sudo apt-get remove liblivemedia-dev $ cd $HOME $ wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz $ tar xvf live555-latest.tar.gz $ cd live $ ./genMakefiles linux $ make $ sudo cp -r $HOME/live /usr/lib Next however to install a codec package: ------------- Codecs: ------------- MPlayer has the ability to use and external library of codecs to playback some media files. Conveniently Medibuntu holds these files and I would suggest that you now read over the following page to understand the implications of utilising this repository which is not part of Ubuntu: Medibuntu - Community Ubuntu Documentation https://help.ubuntu.com/community/Medibuntu The actual syntax to add the repository (taken directly from the page above) is as follows: Code:
sudo wget http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list \ --output-document=/etc/apt/sources.list.d/medibuntu.list && sudo apt-get -q update && sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring && sudo apt-get -q update Code:
$ sudo apt-get install w32codecs Code:
$ sudo apt-get install w64codecs ============================== Downloading & Compiling ============================== The development version of MPlayer is held in a subversion repository that allows read access by users, which is to say that you can download files from the repository but not alter files in this repository. To download our copy of the MPlayer files the following commands are required: Code:
$ cd $HOME $ svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer Code:
$ cd $HOME/mplayer $ ./configure --cc=gcc-4.3 --confdir=/etc/mplayer --disable-mencoder --disable-x264 $ make $ sudo checkinstall -D --install=yes --fstrans=no --pakdir "$HOME/Desktop" \ --pkgname mplayer-nogui --backup=no --deldoc=yes --deldesc=yes --delspec=yes --default \ --pkgversion "3:1.0~svn-`grep "#define VERSION" version.h | cut -d"-" -f2`" $ make distclean =========================== Completing the setup... =========================== There are a couple of other small steps that I would recommend you attend to before launching your brand new copy of mplayer-nogui. The first step is to copy the user configuration file to the appropriate location. The following will accomplish that and also backup any existing configuration file: Code:
$ mv -v $HOME/.mplayer/config $HOME/.mplayer/config_bak $ cp -v $HOME/mplayer/etc/example.conf $HOME/.mplayer/config Code:
$ sudo apt-get remove totem-mozilla $ sudo apt-get install gecko-mediaplayer Code:
$ sudo add-apt-repository ppa:rvm/smplayer Code:
$ sudo apt-get update && sudo apt-get install smplayer =========================== Some Resources... ===========================
__________________
Do you think that's air you're breathing? Last edited by andrew.46; 1 Week Ago at 08:15 PM.. |
|
|
|
|
|
#2 |
|
The Muffin Man Can
![]() Join Date: Aug 2007
Location: Leicester, UK
Beans: 8,108
Ubuntu 9.10 Karmic Koala
|
Re: Howto: Utilise the svn MPlayer to Improve Karmic Koala's 'mplayer-nogui' Package
Though I probably won't use it, this looks like a pretty comprehensive guide
|
|
|
|
|
|
#3 |
|
Quad Shot of Ubuntu
![]() Join Date: Apr 2005
Beans: 420
Ubuntu 9.04 Jaunty Jackalope
|
Re: Howto: Utilise the svn MPlayer to Improve Karmic Koala's 'mplayer-nogui' Package
What are the benefits of the nogui version? A cursory look at the links you posted and a Google search doesn't give me much. I mainly use mplayer with MythTV.
|
|
|
|
|
|
#4 | |
|
I Ubuntu, Therefore, I Am
![]() Join Date: Dec 2006
Beans: 3,326
Ubuntu 9.10 Karmic Koala
|
Re: Howto: Utilise the svn MPlayer to Improve Karmic Koala's 'mplayer-nogui' Package
Hi NTolerance,
Quote:
Plus the benefits and perils of using up to date code that is for the most part updated each and every day. But for MythTV I am not sure of the actual benefits, perhaps another MythTV user could comment here? All the best, Andrew
__________________
Do you think that's air you're breathing? |
|
|
|
|
|
|
#5 |
|
Has an Ubuntu Drip
![]() |
Re: Howto: Utilise the svn MPlayer to Improve Karmic Koala's 'mplayer-nogui' Package
For Mythtv you would certainly want to build mplayer-nogui with the vdpau dev files if you have an Nvidia card series 8 or above.You probably would also want to make sure you have support for x264.
__________________
I used to be "with it," but then they changed what "it" was, and now what I'm "with" isn't "it" anymore, and what's "it" is weeeird and scary. It'll happen to you! |
|
|
|
|
|
#6 | |
|
I Ubuntu, Therefore, I Am
![]() Join Date: Dec 2006
Beans: 3,326
Ubuntu 9.10 Karmic Koala
|
Re: Howto: Utilise the svn MPlayer to Improve Karmic Koala's 'mplayer-nogui' Package
Hi fenian,
Quote:
Edit: I have finally bowed to a bit of pressure and added in nvidia-185-libvdpau-dev. But h264 playback is well covered with the svn MPlayer with the native ffh264. x264 support is of course only required for encoding with MEncoder, which is not covered in this guide. All the best, Andrew
__________________
Do you think that's air you're breathing? Last edited by andrew.46; November 1st, 2009 at 02:10 AM.. |
|
|
|
|
|
|
#7 |
|
First Cup of Ubuntu
![]() Join Date: Mar 2007
Location: Seoul, South Korea
Beans: 6
Ubuntu 9.10 Karmic Koala
|
Re: Howto: Utilise the svn MPlayer to Improve Karmic Koala's 'mplayer-nogui' Package
This dosn't work for me:
Code:
$ sudo apt-get install ladspa-sdk libaa1-dev libasound2-dev libatk1.0-dev \ libaudio-dev libaudio2 libaudiofile-dev libavahi-client-dev libavahi-common-dev \ libcaca-dev libcairo2-dev libcdparanoia-dev libcelt0 libdbus-1-dev libdc1394-22 \ libdca-dev libdca0 libdirectfb-dev libdirectfb-extra libdts-dev libesd0-dev \ libexpat1-dev libffado1 libfontconfig1-dev libfreebob0 libfreetype6-dev \ libfribidi-dev libgif-dev libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev \ libgsm1 libgtk2.0-dev libice-dev libjack-dev libjack0 libjpeg62-dev liblzo2-2 \ liblzo2-dev libmail-sendmail-perl libncurses5-dev libogg-dev liboil0.3-dev \ libopenal-dev libopenal1 libpango1.0-dev libpixman-1-dev libpng12-dev \ libpthread-stubs0 libpthread-stubs0-dev libpulse-dev libruby1.8 \ libschroedinger-dev libsdl1.2-dev libslang2-dev libsm-dev libsmbclient-dev \ libspeex-dev libsvga1 libsvga1-dev libsys-hostname-long-perl libsysfs-dev \ libtheora-dev libvorbis-dev libvorbisidec-dev libvorbisidec1 libx11-dev libxau-dev \ libxcb-render-util0-dev libxcb-render0-dev libxcb1-dev libxcomposite-dev \ libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev \ libxi-dev libxinerama-dev libxml++2.6-2 libxrandr-dev libxrender-dev libxt-dev \ libxv-dev libxvidcore4 libxvidcore4-dev libxvmc-dev libxxf86dga-dev libxxf86vm-dev \ mesa-common-dev vstream-client-dev 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 libopencore-amrwb-dev libopencore-amrnb-dev Code:
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libgl1-mesa-dev: Depends: libgl1-mesa-glx (= 7.6.0-1ubuntu4) but 7.6.1~git20091107.9348ac03-0ubuntu0~xup~1 is to be installed libglu1-mesa-dev: Depends: libglu1-mesa (= 7.6.0-1ubuntu4) but 7.6.1~git20091107.9348ac03-0ubuntu0~xup~1 is to be installed E: Broken packages |
|
|
|
|
|
#8 | |
|
Fresh Brewed Ubuntu
![]() Join Date: Jan 2007
My beans are hidden!
|
Re: Howto: Utilise the svn MPlayer to Improve Karmic Koala's 'mplayer-nogui' Package
Quote:
|
|
|
|
|
|
|
#9 |
|
First Cup of Ubuntu
![]() Join Date: Mar 2007
Location: Seoul, South Korea
Beans: 6
Ubuntu 9.10 Karmic Koala
|
Re: Howto: Utilise the svn MPlayer to Improve Karmic Koala's 'mplayer-nogui' Package
Hmm, I have "deb http://packages.medibuntu.org/ karmic free non-free" in my sources.list, I've updated and it still gives the same error. From Synaptic, when I go to install "libgl1-mesa-dev", it gives me a similar error:
Code:
libgl1-mesa-dev: Depends: libgl1-mesa-glx (=7.6.0-1ubuntu4) but 7.6.1~git20091107.9348ac03-0ubuntu0~xup~1 is to be installed |
|
|
|
|
|
#10 | |
|
Fresh Ground Ubuntu
![]() Join Date: Jun 2007
Beans: 4,661
|
Re: Howto: Utilise the svn MPlayer to Improve Karmic Koala's 'mplayer-nogui' Package
Quote:
(and not that long ago, look at the date Your best bet, considering the libs involved, is to re-enable the source, update and then proceed. This seems like a possible ppa where you may have got the updated mesa libs https://launchpad.net/~ubuntu-x-swat...ates/+packages |
|
|
|
|
| Bookmarks |
| Tags |
| amr, live555, mplayer, svn, vdpau |
| Thread Tools | |
| Display Modes | |
|
|