![]() |
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] Install the svn Mplayer under Intrepid Ibex
======================
Introduction ===================== This guide intends to show how to successfully compile the subversion MPlayer under Intrepid Ibex with a full codec pack. It is intended for use by advanced users only. If this advanced guide is really not what you are after perhaps you could try the very popular: Comprehensive Multimedia & Video Howto where Nathan will look after you ======================== Some Preparation ======================== For this guide to succeed you must ensure that you have all of the major Ubuntu Repositories enabled, details of enabling the Universe, Multiverse and Restricted Repositories can be found here. Compiling, subversion and installation tools are first required and these can be downloaded from the Repositories as follows: Code:
$ sudo apt-get install build-essential checkinstall subversion git-core yasm ====================== Set up the Codecs ====================== The codecs are the heart and soul of Mplayer and we will be downloading the 'full' pack, decompressing it and placing it in the appropriate location: Code:
$ cd $HOME $ wget ftp://ftp.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2 $ sudo mkdir -pv /usr/local/lib/codecs $ tar xjvf all-20071007.tar.bz2 $ sudo cp -v $HOME/all-20071007/* /usr/local/lib/codecs ============================= Source a Font ============================= Mplayer needs to know the location of a TrueType Font to show movie subtitles. This can be selected from the commandline but more traditionally a symlink is created to the font of your choice: Code:
$ sudo apt-get install ttf-bitstream-vera $ mkdir -v ~/.mplayer $ ln -sv /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf ~/.mplayer/subfont.ttf ==================================== Install the x264 Libraries ==================================== The version of x264 in the Ubuntu Repository is too old for MPlayer so we will need to download a copy from the x264 git repository: Code:
$ cd $HOME $ git clone git://git.videolan.org/x264.git $ cd x264 $ ./configure --enable-shared $ make $ sudo checkinstall --fstrans=no --install=yes --pakdir "$HOME/Desktop" \ --maintainer "$USER" --pkgname=x264 --pkgversion "1:0.svn`date +%Y%m%d`-0.0ubuntu1" \ --backup=no --deldoc=yes --deldesc=yes --delspec=yes --gzman --default $ make clean ==================================== Install the Live555 Libraries ==================================== The version of the Live555 libraries in Ubuntu (liblivemedia-dev) seems to have trouble with some of the streaming broadcasts that I routinely listen to so I always compile MPlayer against the latest upstream libraries: Code:
$ 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 And now to install the libopencore-amr libraries: ==================================== Install the libopencore-amr Libraries ==================================== These libraries enable amr playback for MPlayer: Code:
$ cd $HOME $ wget http://transact.dl.sourceforge.net/project/opencore-amr/opencore-amr/0.1.2/opencore-amr-0.1.2.tar.gz $ tar xvf opencore-amr-0.1.2.tar.gz $ cd opencore-amr-0.1.2/ $ ./configure --prefix=/usr $ make $ sudo checkinstall --fstrans=no --install=yes --pakdir "$HOME/Desktop" \ --maintainer "$USER" --pkgname="libopencore-amr" --pkgversion="0.1.2" \ --backup=no --deldoc=yes --deldesc=yes --delspec=yes --gzman --default $ make distclean ==================================== Download the 'Development' Files ==================================== By default Ubuntu does not offer a particularly rich development environment so we need to download the required 'dev' files which are specific to Intrepid Ibex. (These files are loosely modelled on the results of the command 'sudo apt-get build-dep mplayer-nogui', I have removed some files and added others.): Code:
$ sudo apt-get install 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 \ libglu1-mesa-dev libglu1-xorg-dev libgtk2.0-dev libice-dev libschroedinger-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 libstdc++5 ================================= Download and Compile the svn mplayer ================================= Finally after all of the preparation it is time to download Mplayer from the subversion repository, compile it and use checkinstall to create a package and install it: Code:
$ cd $HOME $ svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer $ cd $HOME/mplayer $ ./configure $ make $ sudo checkinstall -D --install=yes --fstrans=no --pakdir "$HOME/Desktop" \ --pkgname mplayer --backup=no --deldoc=yes --deldesc=yes --delspec=yes --default \ --pkgversion "3:1.0~svn-`grep "#define VERSION" version.h | cut -d"-" -f2`" $ make distclean ========================================= Downloading SMPlayer ========================================= The default gui for MPlayer is known as gmplayer and it has been out of development for some time. I personally use the amazing SMPLayer in its place and I would advise that you do the same. To download from the Ubuntu Repositories simply: Code:
$ sudo apt-get install smplayer ============================= And in conclusion..... ============================= And so you have successfully installed the svn MPlayer! You can check the options available for you with the following commands:
The commandline player is started with the command 'mplayer' in a Terminal window, the encoder with the command 'mencoder' while the gui SMPlayer should appear on your menu. And remember: "Have fun!". Andrew Strong March 28th, 2009 Last edited by andrew.46; November 10th, 2009 at 11:12 PM.. |
|
|
|
|
|
#2 |
|
100% Pure Ubuntu
![]() |
hi andrew,i just love terminal apps,now just running moc,i had initially installed mplayer but was not much working in terminal,i removed it through
sudo apt-get purge-- mplayer then i started following your guide,so i ended up with this error,i din't get how to remove locks, svn cleanup din't work for me...... abhilash@abhi:~$ svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer svn: Working copy 'mplayer' locked svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details) so the next step config file,i've been stuck,so where i need to correct the error?
__________________
abhilash-views I always believe that linux, "In a world of no walls or fences,we don't need WINDOWS or GATES" |
|
|
|
|
|
#3 |
|
100% Pure Ubuntu
![]() |
hey now i completely removed mplayer and mencoder,is this package correct?
***************************************** **** Debian package creation selected *** ***************************************** This package will be built according to these values: 0 - Maintainer: [ abhilash ] 1 - Summary: [ Package created with checkinstall 1.6.1 ] 2 - Name: [ mplayer ] 3 - Version: [ 3:1.0~svn ] 4 - Release: [ 1 ] 5 - License: [ GPL ] 6 - Group: [ checkinstall ] 7 - Architecture: [ i386 ] 8 - Source location: [ mplayer ] 9 - Alternate source location: [ ] 10 - Requires: [ ] Enter a number to change any of them or press ENTER to continue: Installing with make install... ========================= Installation results =========================== make: *** No rule to make target `install'. Stop. **** Installation failed. Aborting package creation. why this aborting package creation? abhilash@abhi:/$ mplayer p /media/MUSIC/Western Classical/Richard Clayderman Piano/Tango MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team CPU: Intel(R) Pentium(R) D CPU 2.66GHz (Family: 15, Model: 4, Stepping: 7) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. mplayer: could not connect to socket i think m messed up things while removing older mplayer,if u can tell where original files and config files are present,i can remove those and proceed coz many files din't download and terminal was telling files exist!!!!!!! will do after your reply.
__________________
abhilash-views I always believe that linux, "In a world of no walls or fences,we don't need WINDOWS or GATES" |
|
|
|
|
|
#4 | ||||
|
I Ubuntu, Therefore, I Am
![]() Join Date: Dec 2006
Beans: 3,326
Ubuntu 9.10 Karmic Koala
|
Re: [Howto] Install the svn Mplayer under Intrepid Ibex
Hi abhilashm86,
Good to hear from you again Quote:
Quote:
Quote:
Quote:
Don't worry too much if you already have some of the files. I deliberately reloaded Intrepid Ibex and installed MPlayer on a clean system so I would catch all dependencies. Some will have already been installed by many users or other purposes. All the very best with this, Andrew
__________________
Do you think that's air you're breathing? |
||||
|
|
|
|
|
#5 |
|
First Cup of Ubuntu
![]() Join Date: Dec 2008
Beans: 10
|
Re: [Howto] Install the svn Mplayer under Intrepid Ibex
I noticed you have libglide2 in this new guide for 8.10. Is this intentional? It was previously removed since it's no longer included in the repository, right?
|
|
|
|
|
|
#6 |
|
100% Pure Ubuntu
![]() |
hey andrew thanks one more,i had deleted from package managers,but some hidden files were problem which i searched and removed.
i did install completely and player is working fine,but can u tell how to install additional formats of video playing options like Untraceable.2008.DVDRip.x264.Adz-300MB.mkv this player din't recognise. ============ Sorry, this file format is not recognized/supported ============= === If this file is an AVI, ASF or MPEG stream, please contact the author! === Cannot open demuxer. one more,do have any idea about using DOSBOX emulator,using it and mounting is hard........
__________________
abhilash-views I always believe that linux, "In a world of no walls or fences,we don't need WINDOWS or GATES" Last edited by abhilashm86; December 30th, 2008 at 03:52 AM.. |
|
|
|
|
|
#7 |
|
Quad Shot of Ubuntu
![]() Join Date: Sep 2006
Beans: 418
|
Re: [Howto] Install the svn Mplayer under Intrepid Ibex
Thanks for maintaining this guide. Can I suggest that you point users to the updated PPA repository for smplayer given here. The version in Intrepid is at 0.6.1 while the latest version is 0.6.5.
Also, can you give any examples of where the live555 libs in Ubuntu give you problems with streams? What are the symptoms of this issue? I listen to a lot of streams as well.
__________________
System 1: Asus P5B-E | C2D E6420 | 2GB DDR2 | 900GB SATA II | Nvidia 9500GT (G96) | Hauppauge PVR-250 | Twinhan 1022A System 2: Asus A7N8X-E Dlx | Barton 2600+ | 1GB DDR | 280GB IDE | Nvidia 6200 | WinTV 401 |
|
|
|
|
|
#8 | |
|
I Ubuntu, Therefore, I Am
![]() Join Date: Dec 2006
Beans: 3,326
Ubuntu 9.10 Karmic Koala
|
Re: [Howto] Install the svn Mplayer under Intrepid Ibex
Hi piemaster,
Quote:
http://packages.ubuntu.com/intrepid/libglide2 Code:
andrew@skamandros:~$ apt-cache search libglide2 | grep library libglide2 - graphics library for 3Dfx Voodoo based cards - shared libraries libglide2-dev - graphics library for 3Dfx Voodoo based cards - development files Andrew
__________________
Do you think that's air you're breathing? |
|
|
|
|
|
|
#9 | ||
|
I Ubuntu, Therefore, I Am
![]() Join Date: Dec 2006
Beans: 3,326
Ubuntu 9.10 Karmic Koala
|
Re: [Howto] Install the svn Mplayer under Intrepid Ibex
Hi abhilashm86,
Quote:
MPlayer can identify elements in a file with the following synyax: Code:
$ mplayer -identify -frames 0 <filename> Code:
$ ffmpeg -i <filename> Quote:
All the best, Andrew
__________________
Do you think that's air you're breathing? |
||
|
|
|
|
|
#10 | ||
|
I Ubuntu, Therefore, I Am
![]() Join Date: Dec 2006
Beans: 3,326
Ubuntu 9.10 Karmic Koala
|
Re: [Howto] Install the svn Mplayer under Intrepid Ibex
Hi mocha:
Quote:
Quote:
The version I give in the guide is a little newer than the Intrepid version now: https://launchpad.net/ubuntu/intrepi...a/2008.07.25-2 so may be worth a try anyway? All the best, Andrew
__________________
Do you think that's air you're breathing? |
||
|
|
|
| Bookmarks |
| Tags |
| codecs, live555, mplayer, smplayer, svn, x264 |
| Thread Tools | |
| Display Modes | |
|
|