View Full Version : [Howto] Successfully install the svn MPlayer under Hardy Heron
andrew.46
September 24th, 2007, 04:31 AM
This guide shows how to successfully compile a fully featured svn MPlayer and MEncoder with all of the codecs and with the Graphical User Interface (GUI) SMPlayer. It is designed to work with Ubuntu Hardy Heron LTS and will be supported by myself until the 'end-of-life' of Hardy in April 2011 courtesy of my new best friend VirtualBox.
==========================================
Some 'External' Libraries ...
===========================================
There are a few libraries that are important to have installed before compiling the svn MPlayer and I give the details here for installing x264, Live555 and libopencore-amr:
-----------------
x264 ...
-----------------
The MPlayer developers advise that current x264 sources should be used with the svn MPlayer and details follow for compiling both a of yasm newer than that found in the Ubuntu repository and the git x264. But first to assemble some compiling software and a few vital utilities:
$ sudo apt-get install build-essential checkinstall subversion git-core
and then to install yasm which is required for optimising the x264 build:
$ cd $HOME
$ wget http://www.tortall.net/projects/yasm/releases/yasm-0.8.0.tar.gz
$ tar xzvf yasm-0.80.tar.gz
$ cd yasm-0.8.0
$ ./configure
$ make
$ sudo checkinstall -D --pkgname=yasm --fstrans=no --pakdir "$HOME/Desktop" \
--maintainer "$USER" --pkgversion "0.8.0" --backup=no \
--deldoc=yes --deldesc=yes --delspec=yes --default
$ make distclean
and now to install the x264 libraries from git:
$ sudo apt-get purge x264 libx264-dev
$ cd $HOME
$ git clone git://git.videolan.org/x264.git
$ cd x264
$ ./configure --prefix=/usr --enable-shared
$ make
$ sudo checkinstall -D --pkgname=x264 --fstrans=no --pakdir "$HOME/Desktop" \
--maintainer "$USER" --pkgversion "1:0.svn`date +%Y%m%d`-0.0ubuntu1" --backup=no \
--deldoc=yes --deldesc=yes --delspec=yes --default
$ make distclean
Next to install the Live555 libraries:
-------------------
Live555 ...
-------------------
Live555 is a vital library if you ever intend to access streaming radio or television broadcasts:
$ 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
$ make clean
This library is updated quite frequently so you may like to return here at some stage and pick up a newer version? Next to install the libopencore-amr libraries:
-------------------
libopencore-amr ...
-------------------
These libraries are required to give the svn MPlayer the ability to playback files with amr sound:
$ 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
With this preparation complete it is time now to setup the codecs:
======================
Set up the 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:
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
Once the repository is in place users of a 32bit system will need to run the following:
$ sudo apt-get install w32codecs
while users of a 64bit system will need to run the following instead:
$ sudo apt-get install w64codecs
=============================
Source a Font
=============================
Mplayer needs to know the location of a TrueType Font to show movie subtitles. (As you probably know this can be activated with the 'j' key.) This can be selected from the commandline but more traditionally a symlink is created to the font of your choice:
$ mkdir -v $HOME/.mplayer
$ ln -sv /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf ~/.mplayer/subfont.ttf
Feel free to choose your own font but this will certainly do to start with.
====================================
Download the 'Development' Files
====================================
By default Ubuntu does not offer a particularly rich development environment so we need to download the required 'dev' files plus a few extra programs. Do not be alarmed if the repository suggests other files as well, or informs you that you already have some of this impressive list. And certainly feel free to add your own!
$ sudo apt-get install comerr-dev ladspa-sdk libaa1-dev libarts1c2a libarts1-dev \
libartsc0 libartsc0-dev libasound2-dev libaudio2 libaudio-dev libaudiofile-dev \
libavahi-client-dev libavahi-common-dev libcaca-dev libcairo-directfb2 \
libcairo-directfb2-dev libcdio-dev libcdparanoia0-dev libcucul-dev libcupsys2-dev \
libdbus-1-dev libdirectfb-dev libdirectfb-extra libdts-dev libdv4-dev libenca0 \
libenca-dev libesd0-dev libfaac0 libfaac-dev libfreebob0 libfribidi-dev \
libgcrypt11-dev libggi2 libggi2-dev libggiwmh0 libggiwmh0-dev libgii1 libgii1-dev \
libgii1-target-x libgl1-mesa-dev libglu1-mesa-dev libgnutls-dev libgnutlsxx13 \
libgpg-error-dev libgtk2.0-dev libgtk-directfb-2.0-0 libgtk-directfb-2.0-dev \
libjack0 libjack-dev libjpeg62-dev libkadm55 libkrb5-dev libladspa-ocaml \
libladspa-ocaml-dev liblame0 liblame-dev liblcms1-dev libstdc++5 \
liblzo2-dev libmad0 libmad0-dev libmng-dev libmpcdec3 libamrnb3 libamrwb3 \
libmpcdec-dev libncurses5-dev libogg-dev libopenal-dev libopencdk10-dev \
libpng12-dev libpopt-dev libpulse-browse0 libpulse-dev libpulse-mainloop-glib0 \
libqt3-headers libqt3-mt libqt3-mt-dev libsdl1.2-dev libslang2-dev libsmbclient-dev \
libsmpeg0 libsmpeg-dev libspeex-dev libsvga1 libsvga1-dev libsysfs-dev libtasn1-3-dev \
libtheora-dev libtwolame0 libtwolame-dev libungif4-dev libungif4g libvorbis-dev \
libx11-dev libxcb-shm0 libxcb-shm0-dev libxcb-xv0 \
libxcb-xv0-dev libxcb-xvmc0 libxcb-xvmc0-dev libxext-dev libxi-dev libxinerama-dev \
libxmu-dev libxmu-headers libxss-dev libxt-dev libxv-dev libxvidcore4 libxvidcore4-dev \
libxvmc1 libxvmc-dev libxxf86dga-dev libxxf86vm-dev mesa-common-dev ocaml-base-nox \
ocaml-findlib ocaml-interp ocaml-nox qt3-dev-tools x11proto-core-dev \
x11proto-scrnsaver-dev x11proto-video-dev x11proto-xf86dga-dev \
x11proto-xf86vidmode-dev zlib1g-dev zlib1g-dev
=================================
Download and Compile the svn mplayer
=================================
Finally after all of the preparation it is time to download MPlayer from the subversion repository:
$ cd $HOME
$ svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
$ cd $HOME/mplayer
$ ./configure --confdir=/etc/mplayer
$ 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`" \
--provides "mplayer,mencoder"
$ make distclean
This of course has only installed the commandline MPlayer, now to install the GUI SMPlayer:
===========================
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 SMPLayer in its place and I would advise that you do the same. The versions of SMplayer in both the main repository and the repository backports are a little dated so I would suggest using a copy from a PPA generously maintained by the developer of SMPlayer. Add the following to your /etc/apt/sources.list:
deb http://ppa.launchpad.net/rvm/smplayer/ubuntu hardy main
deb-src http://ppa.launchpad.net/rvm/smplayer/ubuntu hardy main
If you feel that you can trust rvm and his packages, as I do, you can also install the OpenPGP key for this PPA:
$ sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com E4A4F4F4
and then simply run:
$ sudo apt-get update && sudo apt-get upgrade
$ sudo apt-get install smplayer
It is a little bit of futzing around but well worth the trouble taken and you will then be using a version of SMPlayer that will work well with the cutting edge MPlayer.
=============================
And in conclusion.....
=============================
And so you have successfully installed the svn MPlayer! You can check the options available for you with the following commands:
mplayer -vo help : Video output available to mplayer
mplayer -ao help : Audio output available to mplayer
mplayer -vc help : Available video codecs
mplayer -ac help : Available audio codecs
mencoder -ovc help : Video encoding available to mencoder
mencoder -oac help : Audio encoding available to mencoder
Start both from the command line, the player with the command mplayer and the movie encoder with mencoder. The gui SMPlayer should appear on your menu. And remember: "Have fun!".
Andrew Strong
November 11th, 2009
tribble222
September 26th, 2007, 05:51 PM
Thanks for the guide!
When installing all the dev's I had to change the 0.9-22 to 0.9-25 in all cases. Also it didn't like me doing libglu-dev because it's part of the libglu-mesa-dev metapackage or something.
andrew.46
September 26th, 2007, 05:59 PM
Hi,
Thanks for the message:
Thanks for the guide!
When installing all the dev's I had to change the 0.9-22 to 0.9-25 in all cases. Also it didn't like me doing libglu-dev because it's part of the libglu-mesa-dev metapackage or something.
There is a slight problem with specifying all these dev packages: they vary from one version of ubuntu to another. I am planning on setting up a Gutsy set of dev files and then labelling the walkthough: "Gutsy Gibbon: svn + etc etc"
Everything else worked out ok though?
Andrew
tribble222
September 26th, 2007, 06:39 PM
Hi,
Everything else worked out ok though?
Actually, I'm having a problem compiling it now. I seem to have some problem with libavformat.
I get:
libavformat/libavformat.a(allformats.o): In function `av_register_all':
allformats.c:(.text+0xf3): undefined reference to `avisynth_demuxer'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
Edit: I compiled ffmpeg from source and now mplayer compiles great with your instructions
Edit2: But I don't get any video, just greenish stuff...
Edit3: I just had to specify -vo. Now everything works perfectly!
jrmink
September 26th, 2007, 07:40 PM
Does Not Work With Ubuntu Fiesty Fawn 7
andrew.46
September 26th, 2007, 11:02 PM
Hi,
Sorry you had so much trouble,
Actually, I'm having a problem compiling it now. I seem to have some problem with libavformat.
I get:
libavformat/libavformat.a(allformats.o): In function `av_register_all':
allformats.c:(.text+0xf3): undefined reference to `avisynth_demuxer'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
Edit: I compiled ffmpeg from source and now mplayer compiles great with your instructions
Edit2: But I don't get any video, just greenish stuff...
Edit3: I just had to specify -vo. Now everything works perfectly!
Oddly enough you should not have to compile ffmpeg apart from the svn package, but if it has worked for you ....
You should have a choice of -vo. Run the following in a terminal:
mplayer -vo help
and all available options will be seen. If you want a default one start up a ~/ .mplayer/config and place it in there.
ALl the best,
Andrew
PS I have mplayer running on gutsy, but reasonably extensive changes in the required dev files. I shall change everything when Gutsy is officially released
tribble222
September 26th, 2007, 11:34 PM
Hi,
Sorry you had so much trouble,
Oddly enough you should not have to compile ffmpeg apart from the svn package, but if it has worked for you ....
Yes, I found out later that ffmpeg compiles with mplayer so I'm not sure how installing ffmpeg helped.
Thanks for the tip with the config file!
andrew.46
September 27th, 2007, 12:12 AM
Hi,
Good to see a satisfied customer:
Yes, I found out later that ffmpeg compiles with mplayer so I'm not sure how installing ffmpeg helped.
Thanks for the tip with the config file!
There is a system one somewhere as well. Search for mplayer.conf which should get you started. I probably should add that to the guide but you really have to stop somewhere :-)
Beta of the Gutsy version is here:
http://people.aapt.net.au/~adjlstrong/ftgws.html
I have left out checkinstall, jazzed up the directory selection and changed all the devs. The radio business won't be appearing on the forums though :-)
Andrew
xieu90
September 27th, 2007, 04:15 PM
how do I know if my computer has GTK or not ?
Checking for GTK+ version ... GTK-2 devel packages were not found, trying GTK 1.2
Checking for GTK version ...
Error: The GUI requires GTK devel packages (which were not found).
Check "configure.log" if you do not understand why it failed.
how can I install that one ?
andrew.46
September 27th, 2007, 06:23 PM
Hi,
Saw your message:
how do I know if my computer has GTK or not ?
Checking for GTK+ version ... GTK-2 devel packages were not found, trying GTK 1.2
Checking for GTK version ...
Error: The GUI requires GTK devel packages (which were not found).
Check "configure.log" if you do not understand why it failed.
how can I install that one ?
Looks like you are missing libgtk2.0-dev which you can install with apt-get.
A broader issue is a miscalculation that I have made in the differences between versions of Ubuntu. What I am working on is a small rewrite of this guide that will target only one version: Gutsy Gibbon, This will make installation and troubleshooting easier.
Really the major difference will be the dev packages. The use of svn, setting up of skins etc will remain unchanged.
Andrew
tribble222
September 27th, 2007, 06:24 PM
how do I know if my computer has GTK or not ?
Checking for GTK+ version ... GTK-2 devel packages were not found, trying GTK 1.2
Checking for GTK version ...
Error: The GUI requires GTK devel packages (which were not found).
Check "configure.log" if you do not understand why it failed.
how can I install that one ?
The GTK-2 dev package is called libgtk2.0-dev I believe. So running "sudo apt-get install libgtk2.0-dev should install it.
tribble222
September 27th, 2007, 06:33 PM
Hi,
A broader issue is a miscalculation that I have made in the differences between versions of Ubuntu. What I am working on is a small rewrite of this guide that will target only one version: Gutsy Gibbon, This will make installation and troubleshooting easier.
Really the major difference will be the dev packages. The use of svn, setting up of skins etc will remain unchanged.
Andrew
Why not have a list of dev packages for a few versions of Ubuntu? I can confirm that the following works in Feisty:
sudo apt-get install liblame-dev libdvdread3-dev libdvdnav-dev libogg-dev \
libvorbis-dev libxv-dev libtheora-dev libpng12-dev libmpcdec-dev \
libcdparanoia0-dev libxinerama-dev x11proto-xinerama-dev libjpeg62-dev \
libgdk-pixbuf-dev libfreetype6-dev libexpat1-dev libfontconfig1-dev \
libcaca-dev libfaac-dev libmp4v2-dev libaa1-dev libavcodec-dev \
libavifile-0.7-dev libsdl1.2-dev libesd0-dev libfaad2-dev libice-dev \
libmatroska-dev libmad0-dev libmp4v2-dev libmikmod2-dev libpostproc-dev \
libspeex-dev libxvidcore4-dev libxvidcore4 avifile-xvid-plugin \
avifile-divx-plugin ladspa-sdk libsvga1-dev libsvga1 libungif4-dev \
libungif4g libenca-dev libdfb++-0.9-25 libdfb++-dev libdirectfb-0.9-25 \
libdirectfb-dev libavformat-dev libfame-0.9 libfame-dev zlib1g-dev \
liblivemedia-dev libfribidi-dev libdvdnav4 libdvdplay0 libasound2-dev \
libdv4-dev libpopt-dev zlib1g-dev xlibs-dev libflac++-dev libflac-dev \
liboggflac++-dev liboggflac-dev toolame ttf-bitstream-vera \
libdbus-glib-1-dev libx264-dev libggi2-dev libxvmc-dev libxxf86vm-dev \
libxxf86dga-dev libfontconfig-dev libartsc0-dev \
libglu1-mesa-dev libdts-dev libdvdread-dev libdv-dev \
libpng12-dev libsmbclient-dev gawk sharutils libaudiofile-dev liblzo-dev \
libc6-dev libggimisc2 libggimisc2-dev libggiwmh0 libggiwmh0-dev \
libatk1.0-dev libcairo2-dev libgtk2.0-dev libpango1.0-dev \
libxcursor-dev libxfixes-dev x11proto-fixes-dev liba52-0.7.4-dev
andrew.46
September 28th, 2007, 12:05 AM
Hi,
Thanks for your message:
Why not have a list of dev packages for a few versions of Ubuntu? I can confirm that the following works in Feisty [...]:
I guess because my aim was to establish a guide that I could troubleshoot, answer questions on, be reasonably authoritative on and continue to develop. To do this with complex software like mplayer and with the limited time available to me it would make sense to focus on one version of ubuntu.only. And as gusty is coming into its own....
Mind you as you have posted the dev files that work with Feisty this has now gone on permanent record in these forums and will be a resource for those who use Feisty.
All the best,
Andrew
andrew.46
September 28th, 2007, 10:25 PM
Hi,
Well hopefully this will not put too many people out but I have changed the guide a little to reflect Gutsy Gibbons needs. Specifically this will mean that the dev files will need to be adjusted for Dapper, Edgy and Feisty.
As I have mentioned before this gives me the chance to focus specifically on one version of the guide rather than troubleshooting a few different versions.
Sorry if anybody is put out by this. Note that a version of the dev files for Feisty has already been posted in this thread. Plus of course experimentation with different libraris / dev files will alter and extend mplayer's capabilities. I am hoping that this guide will only be a start.
BTW if you are not familiar with svn I probably should mention that you can open a Terminal window in the directory of the mplayer source code and run:
svn update
to retrieve updated files from the svn repository rather than download the full thing again. And of course run the command:
make clean
before reconfiguring. To uninstall mplayer run the following command from the mplayer source code directory,:
sudo make uninstall
How cool is that!!!
Andrew
shirilover
September 29th, 2007, 12:05 AM
$ tar xjvf all-20061022.tar.bz2
$ sudo mkdir -v /usr/local/lib/codecs
$ sudo cp -v $HOME/Desktop/all-20061022/*.* /usr/local/lib/codecs
The above can be shortened to:
mkdir -v /usr/local/lib/codecs
sudo tar -xjvf all-20061012.tar.bz2 -C /usr/local/lib/codecs
The switch --codecsdir is not needed if you place the codecs in either /usr/lib/codecs or /usr/local/lib/codecs.
I usually compile x264 from svn as well before building mplayer.
If you happen to be using compiz, the patch attached here -> http://lists.freedesktop.org/archives/compiz/2007-July/002494.html
will help video playback using -vo xv.
Also, if you would like to create a deb package you can do the following (needs fakeroot and dpkg-dev):
cd /path/to/mplayer-svn/source
DEB_BUILD_OPTIONS="--enable-gui --enable-largefiles --enable-xvmc" fakeroot debian/rules binary
andrew.46
September 29th, 2007, 05:00 AM
Hi,
Thanks very much for your comments and suggestions:
The above can be shortened to:
mkdir -v /usr/local/lib/codecs
sudo tar -xjvf all-20061012.tar.bz2 -C /usr/local/lib/codecs
I love this and have added it to the guide.
The switch --codecsdir is not needed if you place the codecs in either /usr/lib/codecs or /usr/local/lib/codecs.
I have also specified a reasonably redundant --prefix=/usr/local in the configure options. I have been a little overly pedantic to ensure that those who do not have a lot of experience with svn / compiling etc should be very unlikely to come to grief.
I usually compile x264 from svn as well before building mplayer.
This sounds fascinating and I will investigate it for my own copy of mplayer. I suspect it goes a little beyond this little guide though :-)
If you happen to be using compiz, the patch attached here -> http://lists.freedesktop.org/archives/compiz/2007-July/002494.html
will help video playback using -vo xv.
Don't use compiz myself and I have a deep-seated suspicion about all eye-candy (retires briefly to put on asbestos suit).
Also, if you would like to create a deb package you can do the following (needs fakeroot and dpkg-dev):
cd /path/to/mplayer-svn/source
DEB_BUILD_OPTIONS="--enable-gui --enable-largefiles --enable-xvmc" fakeroot debian/rules binary
Thanks for this information and all the other suggestions. I appreciate the time and effort you have put into your post.
Andrew
Gouz
September 29th, 2007, 10:13 AM
Hey all.
I tried to install the mplayer and when I used sudo mkdir -v /usr/local/lib/codecs
I got an out put: mkdir: cannot create directory `/usr/local/lib/codecs': File exists
do you know why?
And yes I have root rights. in case you wander
tribble222
September 29th, 2007, 01:41 PM
Hey all.
I tried to install the mplayer and when I used sudo mkdir -v /usr/local/lib/codecs
I got an out put: mkdir: cannot create directory `/usr/local/lib/codecs': File exists
do you know why?
That's okay -- it existed already for me too. In my case because I had already installed mplayer before. Just ignore it and move on to the next step and you'll be fine.
Gouz
September 29th, 2007, 03:12 PM
ok I think I did it, but I can't install a skin, I go confused from the code in the first page cause of the $ and then HOME isnt it /home/ the directory?
tribble222
September 29th, 2007, 04:11 PM
ok I think I did it, but I can't install a skin, I go confused from the code in the first page cause of the $ and then HOME isnt it /home/ the directory?
When you type $home into the terminal it will act as your home directory. If you login name is gouz, then your home directory is /home/gouz/
Gouz
September 29th, 2007, 08:37 PM
ok what I get from cp -v $HOME/Desktop/Blue/*.* $HOME/.mplayer/skins/default
which as I can understand it is one command (correct me if I am wrong)
is: cp: target `/home/rosi/.mplayer/skins/default' is not a directory (where rosi is my log in name)
And so I can add a skin on the mplayer is it not that what this command does?
andrew.46
September 30th, 2007, 02:28 AM
Hi,
Saw you in a bit of a pickle:
ok what I get from cp -v $HOME/Desktop/Blue/*.* $HOME/.mplayer/skins/default
which as I can understand it is one command (correct me if I am wrong)
is: cp: target `/home/rosi/.mplayer/skins/default' is not a directory (where rosi is my log in name)
And so I can add a skin on the mplayer is it not that what this command does?
That is exactly what this command does. gmplayer looks in a few places for the default skin and I selected this one for the walkthrough.
Sounds like the required directory might not be there. Try this:
$ cd
$ mkdir -pv .mplayer/skins/default
$ cp -Rv /home/rosi/Desktop/Blue/* /home/rosi/.mplayer/skins/default
And this should copy the contents of the Blue folder into the required directory.
I use $HOME rather than /home/username so people do not have to remember to substitute 'username' for their own username :-)
Try the following and it will make sense:
echo $HOME
All the very best with this, if you are down to the skin you must be almost there!
Andrew
synd7
September 30th, 2007, 04:08 AM
Thanks for the guide andrew and also to shirilover for the packaging info.
The only problem is my gmplayer wont start:
$ gmplayer
MPlayer dev-SVN-r24673-4.1.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.00GHz (Family: 15, Model: 2, Stepping: 4)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf doesn't look like a bitmap font description, ignoring.
Cannot load bitmap font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
[skin] file ( /usr/share/mplayer/skins/default/skin ) not found.
Skin not found (default).
I've copied the skin data to the folder. Is there any other info that need to go into a config file or something?
andrew.46
September 30th, 2007, 05:28 AM
Hi,
Sounds like you are almost there. Just 2 small steps have gone awry:
Thanks for the guide andrew and also to shirilover for the packaging info.
The only problem is my gmplayer wont start:
[...]
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf doesn't look like a bitmap font description, ignoring.
Cannot load bitmap font: /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
[skin] file ( /usr/share/mplayer/skins/default/skin ) not found.
Skin not found (default).
I've copied the skin data to the folder. Is there any other info that need to go into a config file or something?
You need to get a font configured for the On Screen Display and put the skin where gmplayer can find it. There are many ways to do this but my guide aims to make it straightfoward. Although I seem to have confused you a little :)
For the OSN Font
gmplayer needs to have a font specified for subtitles and the on-screen-display. There are several ways to do this, easiest way is to copy a decent font to the ~/.mplayer folder and give it a different name. Try this:
$ mkdir -v $HOME/.mplayer
$ sudo apt-get install ttf-bitstream-vera
$ sudo cp -v /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf ~/.mplayer/subfont.ttf
This is a fairly crude way of doing it, a symlink would be better but I am trying to keep a complex subject simple. That should take care of the OSD error.
For the skin
gmplayer needs a skin to run and this does not come with the package, in fact the GUI is actually looked down at by some. The trick is to create the relevant folders and place a full skin pack in them in the right location.
So:
$ cd $HOME
$ mkdir -pv .mplayer/skins/default
$ cd $HOME/Desktop
$ wget http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2
$ tar xjvf Blue-1.7.tar.bz2
$ cp -Rv $HOME/Desktop/Blue/* $HOME/.mplayer/skins/default
And this should complete your setup. As you explore a bit more you will see that you can have many skins and chose from them, in fact I believe that there is a skin 'browser' in gmplayer.
All the -v settings are for 'verbose' which should tell you if something is going wrong. Post the errors if there are any and they should be fixable.
Let me know how you go?
Andrew
Gouz
September 30th, 2007, 06:43 AM
Hey thanks for the info there were help full and everything worked until the command gmplayer..
Then I got the following
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Warning unknown option vo_dxr3_device at line 6
[skin] file ( /usr/local/share/mplayer/skins/default/skin ) not found.
Skin not found (default).
I know that the rest of those commands that you send me worked cause I read all the log and I found that everything was copied and the file for the skin was made. *shrugs*
andrew.46
September 30th, 2007, 07:27 AM
Hi,
Looks like a problem that can be solved:
Hey thanks for the info there were help full and everything worked until the command gmplayer..
Then I got the following
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Warning unknown option vo_dxr3_device at line 6
[skin] file ( /usr/local/share/mplayer/skins/default/skin ) not found.
Skin not found (default).
I know that the rest of those commands that you send me worked cause I read all the log and I found that everything was copied and the file for the skin was made. *shrugs*
It is my suspicion that the skin is not placed correctly. Could you post the results of the following, the first reloads you locate database and the second looks for the exact location of one of the Blue skin files:
$ sudo updatedb
$ locate subblue.png
As for the error:
Warning unknown option vo_dxr3_device at line 6
I presume that you have written an ~/.mplayer/config file that has an error?
Anyway please post the results of the locate command and then I suspect we can get gmplayer going.
Andrew
Gouz
September 30th, 2007, 07:47 AM
rosi@rosi:~$ sudo updatedb
Password:
rosi@rosi:~$ locate subblue.png
/home/rosi/.mplayer/skins/default/subblue.png
/home/rosi/Blue/subblue.png
/home/rosi/Desktop/Blue/subblue.png
now that i see it, I think because I have 3 they may conflict with each other. I don't know *shrugs*
for the error no, I just run gmplayer and I got the error (and all the above message)
andrew.46
September 30th, 2007, 08:12 AM
Hi,
I have found the solution:
rosi@rosi:~$ sudo updatedb
Password:
rosi@rosi:~$ locate subblue.png
/home/rosi/.mplayer/skins/default/subblue.png
/home/rosi/Blue/subblue.png
/home/rosi/Desktop/Blue/subblue.png
now that i see it, I think because I have 3 they may conflict with each other. I don't know *shrugs*
for the error no, I just run gmplayer and I got the error (and all the above message)
The syntax that I gave before to install the skin was a little sloppy for which you have my apologies. Can I suggest that you delete the contents of your /home/rosi/.mplayer/skins/default directory but not the actual directory. And then run the following:
$ cp -Rv $HOME/Desktop/Blue/* $HOME/.mplayer/skins/default
And again my apologies for the sloppy syntax of the guide that has now been corrected. Hopefully you will be looking at the glorious blue mplayer skin shortly :-)
Andrew
Gouz
September 30th, 2007, 08:22 AM
how do i do that, I know just
sudo rm -i
which will delete the file that I will name after the -i
and the rm -r that will remove all the directory.
even better how can I delete everything so i can reinstall them from the start step by step.
Gouz
September 30th, 2007, 08:52 AM
BTW it worked perfectly only with one video for the rest I get an error: Fail to open :(
ok here is what happens, if I right click on a video file and say open with mplayer it can't be open if I brows the file from right click on the skin and say open file then brows it and open it is works...
But the image is not good at all it is too bright and the subs are not that good, if I change to X11 from Xv it fixes the color of the image and the subs. few subs are misplaced and there is to big space between them and the image is small even in full screen the image is like normal size.
any ideas?
andrew.46
September 30th, 2007, 06:20 PM
Hi,
Good to see that you are persisting:
BTW it worked perfectly only with one video for the rest I get an error: Fail to open :(
ok here is what happens, if I right click on a video file and say open with mplayer it can't be open if I brows the file from right click on the skin and say open file then brows it and open it is works...
But the image is not good at all it is too bright and the subs are not that good, if I change to X11 from Xv it fixes the color of the image and the subs. few subs are misplaced and there is to big space between them and the image is small even in full screen the image is like normal size.
any ideas?
It is sometimes a struggle to get things just right but it will be worthwhile in the end. Have a look at what video output is available to you:
mplayer -vo help
and have a play with these. The one that works best can be selected as default in an ~/.mplayer/conf file or selected on the command line as you have already found.
Subtitles go a little beyond the scope of my walkthrough which is designed to get you up and going rather than move through the program itself. But if you use the gui you will see a section under preferences marked 'Subtitles and OSD' which will get you started. For the command line you would normally load all your preferences into a configuration file in ~./mplayer. You should find many 'recipes' online to experiment with.
But otherwise the program is up and running with gui and on screen display + access to all codecs?
Andrew
csulok
September 30th, 2007, 07:34 PM
hey
first of all thank you for the guide.
i came here to ask for some advice, halfway through the make install (actually checkinstall but i dont think that counts) i'm getting an error, that i can't resolve, not with google, not with this forum.
install -m 755 -s mplayer /usr/local/bin
strip: could not create temporary file to hold stripped copy of '/usr/local/bin/mplayer'
install: strip failed
make: *** [install-mplayer] Error 1
**** Installation failed. Aborting package creation.
these are the last couple of lines. what could i have done wrong? how do i resolve this issue?
Gouz
September 30th, 2007, 07:40 PM
Hey, sorry for posting all this an stuff.
It is up and running all the videos that I have tried to run. The only thing is that I can't drug and drop and I can't do a -right click open with-
And I think that the mplayer may choke with few videos, at least the older version that I was using was choking with something that can have big resolution (1024x786) and higher I will check that tomorrow and I will try to use what you posted and I will keep the topic updated with everything I found.
Btw mplayer has some great skins :P
I have tried most of them, it is easy to change them when you get the hung of it :P
Thanks for the help! *G*
Edit to csulok : Hey have you tried to pass the huge post(commands for the codecs) all at once or one by one?
If you have tried all at one try with few every time It worked for me with 3 line per time just don't forget the "sudo apt-get intall" before passing the first line and then copy past the rest ;)
andrew.46
September 30th, 2007, 07:44 PM
Hi,
Saw your message:
hey
first of all thank you for the guide.
i came here to ask for some advice, halfway through the make install (actually checkinstall but i dont think that counts) i'm getting an error, that i can't resolve, not with google, not with this forum.
install -m 755 -s mplayer /usr/local/bin
strip: could not create temporary file to hold stripped copy of '/usr/local/bin/mplayer'
install: strip failed
make: *** [install-mplayer] Error 1
**** Installation failed. Aborting package creation.
these are the last couple of lines. what could i have done wrong? how do i resolve this issue?
Hmmm... not sure about that one. I presume that this follows from:
$ make
$ sudo checkinstall -D
Try without checkinstall, as 'package creation' would probably refer to the creation of the deb package by checkinstall. So just try the usual:
$ make
$ sudo make install
and this may be enough to get you out of trouble. I took checkinstall out of the guide because of other error messages with deb creation. And actually stopped using it myself at all.
Andrew
csulok
October 1st, 2007, 03:22 AM
thanks for the reply andrew
i wanted to make an easily removable and if needed reinstallable package by creating a deb
although you were right and with make install it didn't have a problem, i'd still prefer an easily removable solution..
andrew.46
October 1st, 2007, 03:49 AM
Hi,
Read your comments about checkinstall:
thanks for the reply andrew
i wanted to make an easily removable and if needed reinstallable package by creating a deb
although you were right and with make install it didn't have a problem, i'd still prefer an easily removable solution..
I agree with you completely, and checkinstall will do a great job. But better written software, like mplayer, has the ability to uninstall from the source code. To uninstall the mplayer program go to the source directory of mplayer and type:
$ sudo make uninstall
and the program is gone. If you read the fine print of checkinstall you will see that it was produced for those programs that don't have this facility built in. Checkinstall by creating a deb and installing from it also places mplayer in the packet management system which is pointless in this case as it is extremely unlikely that Ubuntu will ever present the svn version of mplayer in its repository.
Don't misunderstand me, I have checkinstall on my system and I use it for some software but for mplayer I do not. Mind you I have actually used checkinstall with the svn mplayer quite successfully in the past. If you want to try again just try changing options 2 and 3 in the deb creation section. From memory section 2 by default has a space that checkinstall does not like and section 3 needs a number.
Otherwise all is working well with mplayer?
Andrew
taisao
October 1st, 2007, 12:01 PM
my smplayer doesn't work after installing the svn version of mplayer, where is the mplayer executeble found?
--
oke, it's in /usr/local/bin/
the old one is in /usr/bin/
so smplayer works now, how can I delete/remove the old mplayer version? Or just leave it like that?
andrew.46
October 1st, 2007, 06:07 PM
Hi,
Glad you resolved your issue:
[....] how can I delete/remove the old mplayer version? Or just leave it like that?
To uninstall the mplayer program go to the source directory of mplayer and type:
$ sudo make uninstall
and the program is gone. But is smplayer a front-end for mplayer? In which case I assume you will need a copy of mplayer on your system either repository or compiled.
Regards,
Andrew
TheMono
October 1st, 2007, 06:40 PM
Yes, smplayer packages depend on either mplayer or mplayer-nogui.
andrew.46
October 1st, 2007, 09:04 PM
Hi,
Thanks for that:
Yes, smplayer packages depend on either mplayer or mplayer-nogui.
I have a small confession: although I am a huge fan of mplayer if I watch a dvd on a computer (rarely) I tend to use vlc :-) The gui gmplayer is a little primitive for my taste, I guess that is where a program like smplayer steps in.
Andrew
taisao
October 2nd, 2007, 01:07 AM
Hi,
Glad you resolved your issue:
To uninstall the mplayer program go to the source directory of mplayer and type:
$ sudo make uninstall
and the program is gone. But is smplayer a front-end for mplayer? In which case I assume you will need a copy of mplayer on your system either repository or compiled.
Regards,
Andrew
uhm, but there is 2x mplayer on my kubuntu :confused:
one executeable is in /usr/local/bin/
(MPlayer dev-SVN-r24680-4.1.2 (C) <- installed with the howto)
the other is in /usr/bin/ (which is MPlayer 2:1.0~rc1-0ubuntu9.1 (C) <- this one is installed with apt-get)
anyway, I think I just leave it like that, it works anyway.
andrew.46
October 2nd, 2007, 02:18 AM
Hi,
Hmmm.... mplayer x 2:
uhm, but there is 2x mplayer on my kubuntu :confused: one executeable is in /usr/local/bin/
(MPlayer dev-SVN-r24680-4.1.2 (C) <- installed with the howto)
the other is in /usr/bin/ (which is MPlayer 2:1.0~rc1-0ubuntu9.1 (C) <- this one is installed with apt-get) anyway, I think I just leave it like that, it works anyway.
That's something you don't see every day :-) Certainly this validates my caution in specifying --prefix=/usr/local (which is the default) in the guide that avoids one version overwriting the other.
I guess this means that the repository version will uninstall with:
$ sudo apt-get remove mplayer
while the svn version will uninstall with:
$ sudo make uninstall
from the source directory.
Andrew
NZ-Wanderer
October 2nd, 2007, 04:09 AM
Hi there...
I seem to have a problem when it comes to pasting that really HUGE list of files to get...
I get the following:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libartsc0 is already the newest version.
libflac++6 is already the newest version.
liblzo2-2 is already the newest version.
libmpcdec3 is already the newest version.
libungif4g is already the newest version.
libxvmc1 is already the newest version.
ttf-bitstream-vera is already the newest version.
ttf-bitstream-vera set to manual installed.
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:
libexpat1-dev: Depends: libexpat1 (= 1.95.8-4) but 1.95.8-4ubuntu1 is to be installed
E: Broken packages
simplicity@Kubuntu:~/source$
I checked apept and it told me that libexpat1 1.95.8-4ubuntu1 is already installed, and when I tried to use adept to install the dev file it would not let me
Please help :) :)
andrew.46
October 2nd, 2007, 05:33 AM
Hi,
In fact it is a truly huge list of files:
Hi there...
I seem to have a problem when it comes to pasting that really HUGE list of files to get...
I get the following:
[...]
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:
libexpat1-dev: Depends: libexpat1 (= 1.95.8-4) but 1.95.8-4ubuntu1 is to be installed
E: Broken packages
I checked apept and it told me that libexpat1 1.95.8-4ubuntu1 is already installed, and when I tried to use adept to install the dev file it would not let me
Please help :) :)
All is not lost :-) As long as there is only a couple of dev files missing from this 50 megs collection I suspect that you will be ok to continue with the configure process. Have a look at the output of ./configure and it will tell you what is missing and what is included.
The collection of libs and devs has been put together (by me!) to grab as much functionality as possible from mplayer, not all of it would be used by all users. For example did you see all the libungif material? This enables mplayer to output frames of a movie in gif format: multiple stills. So if you did not load all the libungif dev files you would not have access to this feature.
See what I mean? The files are not all mandatory. My advice is to continue, check what configure says and you will probably be ok.
Actually I just dug this out of the official docs. It illustrates perfectly the trial and error nature of compiling the program:
STEP2: Configuring MPlayer
~~~~~~~~~~~~~~~~~~~~~~~~~~
MPlayer can be adapted to all kinds of needs and hardware environments. Run
./configure
to configure MPlayer with the default options. GUI support has to be enabled
separately, run
./configure --enable-gui
if you want to use the GUI.
If something does not work as expected, try
./configure --help
to see the available options and select what you need.
The configure script prints a summary of enabled and disabled options. If you
have something installed that configure fails to detect, check the file
configure.log for errors and reasons for the failure. Repeat this step until
you are satisfied with the enabled feature set.
The rest of this doc can be read at: http://www.mplayerhq.hu/DOCS/README
Andrew
jmrichky
October 4th, 2007, 01:23 AM
The guide worked perfect for me. It has played every file I have thrown at flawlessly. Note that since I am using the 64-bit version of Ubuntu, I needed to:
$ wget http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-amd64-20061203.tar.bz2
Instead of:
$ wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20061022.tar.bz2
I do have one question though. How can I get mplayer to play embedded video in Firefox? When I try to install the plugin through apt, it wants to install mplayer from the repos as well. I am afraid it will replace the shiny new version that I just built.
andrew.46
October 4th, 2007, 03:17 AM
Hi,
You echo my own question:
I do have one question though. How can I get mplayer to play embedded video in Firefox? When I try to install the plugin through apt, it wants to install mplayer from the repos as well. I am afraid it will replace the shiny new version that I just built.
I am a little puzzled with this one too and have been racking my brains for a solution. Any ideas anybody else?
Good to hear it all worked well for you though. I had no idea that there were different codecs for 64bit: you live and learn :-)
Andrew
shirilover
October 4th, 2007, 05:42 AM
I do have one question though. How can I get mplayer to play embedded video in Firefox? When I try to install the plugin through apt, it wants to install mplayer from the repos as well. I am afraid it will replace the shiny new version that I just built.
You can also build mplayerplug-in as well.
The latest version 3.4.5 works well for me.
I'm going to assume you have already successfully built mplayer.
First, we need to grab the source.
wget http://internap.dl.sourceforge.net/sourceforge/mplayerplug-in/mplayerplug-in-3.45.tar.gz
tar -xzvf mplayerplug-in-3.45.tar.gz
cd mplayerplug-in
Also, we need the firefox development files
sudo apt-get install firefox-dev libnss-dev libnspr-dev
Now, we can build the plugin.
./configure
make
make install
make install will install the plugin to your firefox profile directory, usually ~/.mozilla/plugins. If you wish to make them globally available, use sudo make install instead.
andrew.46
October 4th, 2007, 06:26 AM
Hi,
I tried that several times before:
You can also build mplayerplug-in as well.
The latest version 3.4.5 works well for me.
and for the life of me I could never compile it :-) For Gutsy:
sudo apt-get install firefox-dev libnss3-dev libnspr4-dev
Wish I could get it going!!
Andrew
jmrichky
October 4th, 2007, 09:35 AM
I just figured out to get the embedded video in firefox with t he mplayer built from your guide. First you must go to the mplayer source directory and "sudo make uninstall" then (in the same directory) "sudo checkinstall" and finally "sudo apt-get mozilla-mplayer". Hope this helps.
owcarnia
October 4th, 2007, 02:52 PM
I did what your guide said and still have no gui. ubuntu says:
MPlayer 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) (Family: 6, Model: 8, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
Usage: mplayer [options] [url|path/]filename
Basic options: (complete list in the man page)
and then the options... No gui errors for me :/ And since there still was na mozilla plugin I did what jmrichy said and command 'checkinstall' is not found and 'apt-get mozilla-mplayer' is inapropriate somehow. The funny thing is that synaptic finds no installed mplayer packages at all. Is it normal?
jmrichky
October 4th, 2007, 04:35 PM
MPlayer 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) (Family: 6, Model: 8, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
Usage: mplayer [options] [url|path/]filename
It appears that you have an older version of mplayer (1.0rc1-4.1.2). It should look like this:
MPlayer dev-SVN-r24698-4.1.3 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3200+ (Family: 15, Model: 15, Stepping: 0)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE
owcarnia
October 4th, 2007, 04:58 PM
well i've downloaded it yesterday from mplayers webpage :P And what about this whole gui stuff ? I've seen on the forum that normally gui problems are somehow indicated.
jmrichky
October 4th, 2007, 07:48 PM
well i've downloaded it yesterday from mplayers webpage :P And what about this whole gui stuff ? I've seen on the forum that normally gui problems are somehow indicated.
Are you using Gutsy? Does MPlayer show up in Applications>Sound&Video on the menu? Did you try "gmplayer" instead of "mplayer" in the console? With my limited knowledge, I would have no idea why your version of mplayer does not display the same as mine if you followed the guide exactly. If I were you, I would remove mplayer altogether and start the guide again. Just remember to use "sudo checkinstall" in the place of "sudo make install" if you want to install the plug-in for Firefox. Again, I am relatively new to Linux but this did work for me. There may be a better way to get the plug-in to work.
andrew.46
October 5th, 2007, 07:07 AM
Hi,
Saw a small bit of confusion here:
well i've downloaded it yesterday from mplayers webpage :P And what about this whole gui stuff ? I've seen on the forum that normally gui problems are somehow indicated.
I suspect that you have actually installed 'MPlayer v1.0rc1 source' from the mplayer web site. This is fine, although the svn version is newer. Hopefully you installed the codecs pack first?
To run the gui you will also need to install a skin.
Andrew
owcarnia
October 6th, 2007, 12:56 PM
Ok. So there were some problems with downloading lib's I guees. Now I stick strictly to your guide installing the svn version and there's another problem. While configuring I got problem at the end:
Error: The GUI requires libavcodec with PNG support (needs zlib).
Check "configure.log" if you do not understand why it failed.
Nothing interesting in log though. Still searching for some solution on discussion lists.
And that's what happens when I try 'make' anyway :
################################################## ##########
####### Please run ./configure again - it's changed! #######
################################################## ##########
./version.sh `cc -dumpversion`
cc -I./libavcodec -I./libavformat -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -I. -I./libavutil -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=athlon-xp -mtune=athlon-xp -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -I/usr/include/directfb -I/usr/include/ -I/usr/include/SDL -D_REENTRANT -c -o mplayer.o mplayer.c
libvo/font_load.h:97: warning: 'render_one_glyph' defined but not used
libvo/font_load.h:98: warning: 'kerning' defined but not used
mplayer.c: In function 'playing_audio_pts':
mplayer.c:1602: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions,
see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.
Preprocessed source stored into /tmp/ccEmL47g.out file, please attach this to your bugreport.
make: *** [mplayer.o] Error 1
andrew.46
October 10th, 2007, 07:46 AM
Hi,
Most gratifying to see that this guide has almost 2,000 views! Might be a good time to point out that a new release version has just come out. Anybody who is interested more in stability than cutting edge has three choices in ascending order of excitement:
Ubuntu repository mplayer
Release version from mplayer site
svn mplayer
The gap between svn and release version should be a little tighter right now.
Andrew
owcarnia
October 10th, 2007, 03:09 PM
damn there is no way this can work. I installed checkinstall for better view of things done during installation, and after installing mplayer it doesnt work. Ubuntu says that 'gmplayer' is not installed and inputing 'mplayer' gives "Segmentation fault (core dumped)" error.
Uninstalling it completely (with make uninstall and apt-get remove) and reinstalling didn't fix the issue. Also installation through synaptic isn't the right way :/
andrew.46
October 10th, 2007, 05:38 PM
Hi,
Sorry to hear you are having this trouble:
damn there is no way this can work. I installed checkinstall for better view of things done during installation, and after installing mplayer it doesnt work. Ubuntu says that 'gmplayer' is not installed and inputing 'mplayer' gives "Segmentation fault (core dumped)" error.
Uninstalling it completely (with make uninstall and apt-get remove) and reinstalling didn't fix the issue. Also installation through synaptic isn't the right way :/
If this svn mplayer is giving you a lot of trouble it is not the end of the world to use the repository version:
sudo apt-get install mplayer
This will give you a functioning mplayer, gmplayer and many of the codecs.
Andrew
owcarnia
October 11th, 2007, 03:22 PM
Ha yeah I tried this also but still get 'Segmentation fault (core dumped)" :/ Guess I have to wait for edgy or at least new kernel.
andrew.46
October 11th, 2007, 04:36 PM
Hi,
Ha yeah I tried this also but still get 'Segmentation fault (core dumped)" :/ Guess I have to wait for edgy or at least new kernel.
hmmm.... edgy? You mean Gutsy?
Andrew
owcarnia
October 11th, 2007, 05:52 PM
Ha yeah I tried this also but still get 'Segmentation fault (core dumped)" :/ Guess I have to wait for edgy or at least new kernel.
Yeah Gutsy,sry.
Frijolie
October 15th, 2007, 02:52 AM
Thanks for this awesome guide. It was amazing that I was able to compile anything, and from svn to boot! I did have to tweak it a little myself after all was compiled and installed, I had to:
sudo cp -R $HOME/.mplayer/skins/default/clearplayer /usr/local/share/mplayer/skins
to get my gmplayer to recognize my skin. However, this still hasn't fixed my problem of navigating DVD menus. Hmm...
Also I'm getting this error:
[mpeg2video @ 0x892f5b0]ac-tex damaged at 25 9
[mpeg2video @ 0x892f5b0]Warning MVs not available
[mpeg2video @ 0x892f5b0]concealing 945 DC, 945 AC, 945 MV errors
and a pop-up in the GUI that says "Warning: MVs are not available"
How do I fix this one?
gav616
October 18th, 2007, 07:34 AM
was just trying your guide...
am i alriight using the newer codecs? http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2
andrew.46
October 18th, 2007, 09:59 AM
Hi,
Thanks for that tip:
was just trying your guide...
am i alriight using the newer codecs? http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2
You certainly are! These must have come out with mplayer rc 2. I have adjusted the guide to match this. Plus downloaded and installed them myself.
Thanks!
Andrew
aboe
October 19th, 2007, 04:35 AM
I'm running gutsy right now, but can't get mplayer to compile...
it gives error with the ivtv part. I tried disable it with --disable-ivtv but that didn't work.
how did you bypass/solve this problem??
andrew.46
October 19th, 2007, 06:46 PM
Hi,
Saw your message:
I'm running gutsy right now, but can't get mplayer to compile...
it gives error with the ivtv part. I tried disable it with --disable-ivtv but that didn't work.
how did you bypass/solve this problem??
I suspect that you must have a fancy mpeg decoder board on your system? From the manual:
Player supports a wide range of video and audio output drivers. It works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, libcaca, DirectFB, Quartz, Mac OS X CoreVideo, but you can also use GGI, SDL (and all their drivers), VESA (on every VESA-compatible card, even without X11), some low-level card-specific drivers (for Matrox, 3dfx and ATI) and some hardware MPEG decoder boards, such as the Siemens DVB, Hauppauge PVR (IVTV), DXR2 and DXR3/Hollywood+. Most of them support software or hardware scaling, so you can enjoy movies in fullscreen mode.
I am not familiar with this hardware or the techiniques to run it with mplayer I am afraid :confused:
Andrew
foureight84
October 20th, 2007, 01:01 AM
wait, so how do i compile the firefox plugin from svn? also, this is an awesome guide. works like a charm. awesome work from everyone who contributed.
edit: i noticed that after a clean install of gusty, the codecs are not installed so divx, and etc media files do not have thumbnails. how do i go about getting thumbnails to work? would i install the w32codec and other codec packs?
foureight84
October 20th, 2007, 03:23 AM
for anyone using compiz and you're getting blank video. then do the following:
go into preference, and change the video driver to:
X11 (XImage/Shm)
then gedit ~/.mplayer/config and add:
zoom=yes
this should allow full video playback in compiz without the blue screen when moving the movie around.
mocha
October 20th, 2007, 04:54 AM
I noticed that this guide was updated for Gutsy. How does it differ from Feisty? For those of us with nvidia cards too scared to upgrade.. :( Thanks!
andrew.46
October 20th, 2007, 12:27 PM
Hi,
Saw your message concerning Feisty:
I noticed that this guide was updated for Gutsy. How does it differ from Feisty? For those of us with nvidia cards too scared to upgrade.. :( Thanks!
I decided to focus on a specific version as it gets a little too complex to describe different strategies for different versions of Ubuntu. However the basic setup is exactly the same but the listing of libraries and dev files will be different. If you scroll back a few messages you will see that somebody has posted a list of Feisty dev files / libraries.
I have not tried this list myself as I do not run feisty, actually I no longer run Gutsy either but that is another story :-)
Andrew
mocha
October 20th, 2007, 04:19 PM
I just complied and installed, no problems. I was mainly interested in compiling for the sake of mencoder. Thanks for the guide!
Now I have for video encoding:
Available codecs:
copy - frame copy, without re-encoding. Doesn't work with filters.
frameno - special audio-only file for 3-pass encoding, see DOCS.
raw - uncompressed video. Use fourcc option to set format explicitly.
lavc - libavcodec codecs - best quality!
vfw - VfW DLLs, read DOCS/HTML/en/encoding-guide.html.
qtvideo - QuickTime DLLs, currently only SVQ1/3 are supported.
libdv - DV encoding with libdv v0.9.5
xvid - XviD encoding
x264 - H.264 encoding
and for audio encoding:
Available codecs:
copy - frame copy, without re-encoding (useful for AC3)
pcm - uncompressed PCM audio
mp3lame - cbr/abr/vbr MP3 using libmp3lame
lavc - FFmpeg audio encoder (MP2, AC3, ...)
twolame - Twolame MP2 audio encoder
faac - FAAC AAC audio encoder
Twolame was my main concern, now I got it!
andrew.46
October 20th, 2007, 05:57 PM
Hi,
Good to see a satisfied customer:
I just complied and installed, no problems. I was mainly interested in compiling for the sake of mencoder. Thanks for the guide!
Now I have for video encoding:
Available codecs:
copy - frame copy, without re-encoding. Doesn't work with filters.
frameno - special audio-only file for 3-pass encoding, see DOCS.
raw - uncompressed video. Use fourcc option to set format explicitly.
lavc - libavcodec codecs - best quality!
vfw - VfW DLLs, read DOCS/HTML/en/encoding-guide.html.
qtvideo - QuickTime DLLs, currently only SVQ1/3 are supported.
libdv - DV encoding with libdv v0.9.5
xvid - XviD encoding
x264 - H.264 encoding
and for audio encoding:
Available codecs:
copy - frame copy, without re-encoding (useful for AC3)
pcm - uncompressed PCM audio
mp3lame - cbr/abr/vbr MP3 using libmp3lame
lavc - FFmpeg audio encoder (MP2, AC3, ...)
twolame - Twolame MP2 audio encoder
faac - FAAC AAC audio encoder
Twolame was my main concern, now I got it!
mencoder still remains a dark mystery for me. The few times I have used it I have copied and pasted other people's instructions :-)
For H.264 encoding I understand that the mplayer people advise the svn H.264 encoder:
http://www.mplayerhq.hu/DOCS/HTML/en/video-codecs.html
Something I have not investigated myself but if you are a keen encoder ...:
svn co svn://svn.videolan.org/x264/trunk x264
Andrew
mocha
October 20th, 2007, 07:31 PM
Another bonus of compiling this svn mplayer is my FLV files can now be rewound and fast forwarded! Yay!!
porphiron
October 22nd, 2007, 01:52 AM
Thanks for the tutorial!, it worked a treat.
I it installed ok, but am having a problem getting applications to recognise that mplayer / mencoder are installed, for example k9copy (which i use alot) just keeps trying to install the stock version that comes with gutsy, even though mencoder / mplayer are there, I've checked aptitude and theres nothing there to say that mplayer/mencoder are installed......
cheers!
Porph
andrew.46
October 22nd, 2007, 03:26 AM
Hi,
Glad my walkthough was useful to you:
Thanks for the tutorial!, it worked a treat.
I it installed ok, but am having a problem getting applications to recognise that mplayer / mencoder are installed, for example k9copy (which i use alot) just keeps trying to install the stock version that comes with gutsy, even though mencoder / mplayer are there, I've checked aptitude and theres nothing there to say that mplayer/mencoder are installed......
cheers!
Porph
Installing in this way goes outside the ubuntu package management system. The solution is to locate mplayer in synaptic and use the 'lock version' option. I would give more detailed directions but my dark secret is that I no longer run ubuntu :(. Can someone post the exact instructions?
Andrew
porphiron
October 22nd, 2007, 03:27 PM
Ta! for the reply,
Have mamanged to lock the version of mplayer by using checkinstall, then looking it up in aptitude, instead of make install, but only mplayer looked liked it had been "installed" not mencoder, is there any way of doing a separate ./configure and make for mencoder?? then i could simply do a checkinstall for that and everything would be fine??
Porph!
andrew.46
October 22nd, 2007, 04:48 PM
Hi,
Glad to see that you silently corrected my 'senior moment' :
Ta! for the reply,
Have mamanged to lock the version of mplayer by using checkinstall, then looking it up in aptitude, instead of make install, but only mplayer looked liked it had been "installed" not mencoder, is there any way of doing a separate ./configure and make for mencoder?? then i could simply do a checkinstall for that and everything would be fine??Porph!
Of course checkinstall will put the mplayer install back into the ubuntu package management system and then you can lock the version.
Looks like you can install mencoder without mplayer although I have never done this:
Optional features:
--disable-mencoder disable MEncoder (A/V encoder) compilation [enable]
--disable-mplayer disable MPlayer compilation [enable]
--enable-gui enable GMPlayer compilation (GTK+ GUI) [disable]
These and many other options are found by typing ./configure --help in the mplayer source code directory. I am not so sure that this will help though but I am sure there is room there for several hours of mucking around :)
Andrew
Sunnz
October 23rd, 2007, 03:04 PM
Just wondering, why use the SVN version? If you only want some compile option not turned on by default by the Ubuntu team + CPU optimisation, why not just use the source from launchpad.net?
I just did that and it worked out pretty well... I even did a `sudo aptitude hold mplayer` so it doesn't "upgrade" it when I install other things like gnome-mplayer.
andrew.46
October 23rd, 2007, 05:31 PM
Hi,
Thanks for your comments:
Just wondering, why use the SVN version? If you only want some compile option not turned on by default by the Ubuntu team + CPU optimisation, why not just use the source from launchpad.net?
I just did that and it worked out pretty well... I even did a `sudo aptitude hold mplayer` so it doesn't "upgrade" it when I install other things like gnome-mplayer.
Using the svn mplayer is certainly a choice, and one that is available for everybody to make. As I see it there are 3 choices:
Use the Ubuntu repository version.This is the safest option and will give you an mplayer that has been expertly crafted to fit in with Ubuntu. Certain choices will have already been made for you, some codecs added but not others, but it will be a safe, solid bit of software that will be automatically updated by the Ubuntu team if a newer version is produced for Ubuntu.
Use the source code for the latest Release Candidate. This can be downloaded from the mplayer web site and represents a "polished" version of mplayer. This is a tempting option as MPlayer v1.0rc2 has only recently been released. You have to download a skin + codecs yourself and decide on your own compile time options as well as ensuring that dependancies are satisfied.
Use the svn mplayer. This is what my guide describes and it delivers features that have not made it into either of the 2 versions. If a new feature has been added yesterday, you have it today by utilising "svn update". Always carrying the possibility of instability in the case of mplayer it delivers performance often better that either of the 2 options with a stability that I personally have never seen in question. There are some very clever people out there and the svn mplayer allows you to share the product of their labours.
It is of course all about choice and any of the 3 above will deliver you a decent copy of mplayer, it depends how involved you want to get. BTW when you say "lanchpad.net" do you mean https://code.launchpad.net/mplayer??
Andrew
ephman
October 23rd, 2007, 11:00 PM
for anyone using compiz and you're getting blank video. then do the following:
go into preference, and change the video driver to:
X11 (XImage/Shm)
then gedit ~/.mplayer/config and add:
zoom=yes
this should allow full video playback in compiz without the blue screen when moving the movie around.
hey thanks,
good news is that i can now play a video full screen... bad new, runs way too slow... any idea how to speed it up?? am i the only person with this issue, did a little hunting and can't find the answer. i have an ati x300, not the heaviest video card, but should be able to run the video full speed. any help would be greatly appreciated.
thanks for the bandwidth,
ephman
Sunnz
October 24th, 2007, 12:46 AM
Using the svn mplayer is certainly a choice, and one that is available for everybody to make. As I see it there are 3 choices:
Use the Ubuntu repository version.This is the safest option and will give you an mplayer that has been expertly crafted to fit in with Ubuntu. Certain choices will have already been made for you, some codecs added but not others, but it will be a safe, solid bit of software that will be automatically updated by the Ubuntu team if a newer version is produced for Ubuntu.
Use the source code for the latest Release Candidate. This can be downloaded from the mplayer web site and represents a "polished" version of mplayer. This is a tempting option as MPlayer v1.0rc2 has only recently been released. You have to download a skin + codecs yourself and decide on your own compile time options as well as ensuring that dependancies are satisfied.
Use the svn mplayer. This is what my guide describes and it delivers features that have not made it into either of the 2 versions. If a new feature has been added yesterday, you have it today by utilising "svn update". Always carrying the possibility of instability in the case of mplayer it delivers performance often better that either of the 2 options with a stability that I personally have never seen in question. There are some very clever people out there and the svn mplayer allows you to share the product of their labours.
It is of course all about choice and any of the 3 above will deliver you a decent copy of mplayer, it depends how involved you want to get. BTW when you say "lanchpad.net" do you mean https://code.launchpad.net/mplayer??
Andrew
Yea, that would be the source used to build the mplayer in (1), or am I missing something?
Precisely, I really meant this one: https://code.launchpad.net/~ubuntu-dev/mplayer/ubuntu "MPlayer for Ubuntu".
andrew.46
October 24th, 2007, 02:33 AM
Hi,
Now I see:
Yea, that would be the source used to build the mplayer in (1), or am I missing something?
Precisely, I really meant this one: https://code.launchpad.net/~ubuntu-dev/mplayer/ubuntu "MPlayer for Ubuntu".
I think that this source represents an in-between stage for Ubuntu. The _actual_ source is found here:
http://www.mplayerhq.hu/design7/dload.html
which no doubt the Ubuntu devs start with and modify to produce the repositiory version. I have never used this 'in-between' version; I have used the Repository version via apt-get, compiled the latest release candidate and settled on the svn mplayer. But if this version works for you go for it :-)
Andrew
rvm4000
October 24th, 2007, 07:52 PM
good news is that i can now play a video full screen... bad new, runs way too slow... any idea how to speed it up?? am i the only person with this issue, did a little hunting and can't find the answer. i have an ati x300, not the heaviest video card, but should be able to run the video full speed. any help would be greatly appreciated.
x11 is much slower than xv.
andrew.46
October 24th, 2007, 08:33 PM
Hi,
Excellent point:
x11 is much slower than xv.
Perhaps try full screen with xv:
$ mplayer -vo xv -fs filename.mpg
Andrew
ephman
October 24th, 2007, 10:33 PM
Hi,
Excellent point:
Perhaps try full screen with xv:
$ mplayer -vo xv -fs filename.mpg
Andrew
hi,
thanks for your help, so appreciated. ok here's what i noticed, when i switch to xv and go to full screen all i get is a blank screen. here's the thing i noticed. i have a sneaky feeling xgl has something to do with it. just noticed that when i enable xgl is when i have this 'slow full screen' issue. googled around a bit and found i'm not the only person with this issue. so i took their suggestion of using gl2, so i tried it and the strangest thing was that my machine autologged me off. so i tried it again, and i got logged off again. so i think xgl has something to do with this issue of having a slow video at full screen. any other suggestions??
thanks for your bandwidth,
ephman
andrew.46
October 26th, 2007, 06:02 AM
Wooooo hooooo!!!
5,000 views! I cannot believe my little guide is so popular!! Do I get a T-shirt or something?
Andrew
lordViN
October 26th, 2007, 09:09 PM
Andrew.46 Great guide, thanks
I'm having problems with the mplayer, It doesn't work very well on the graphic interface, when I try to open within xfce. It only works when I drag & drop files to the gui but not if I doble click or rigjht click open with "mplayer".
and one more question, where is the mplayer source directory, is there where I need to do "make uninstall" for uninstalling the svn version right? is in "/usr/local/bin", or is in the same directory where it was compiled "/home/user/mplayer"
loko
October 27th, 2007, 06:57 AM
hey
first of all thank you for the guide.
i came here to ask for some advice, halfway through the make install (actually checkinstall but i dont think that counts) i'm getting an error, that i can't resolve, not with google, not with this forum.
install -m 755 -s mplayer /usr/local/bin
strip: could not create temporary file to hold stripped copy of '/usr/local/bin/mplayer'
install: strip failed
make: *** [install-mplayer] Error 1
**** Installation failed. Aborting package creation.
these are the last couple of lines. what could i have done wrong? how do i resolve this issue?
Hello, today i got the same error while installing cheese.
For you, and anybody elsa having this error:
/usr/local/bin does not exist
so create it first, then it will work
(sudo mkdir /usr/local/bin and sudo chmod 755 /usr/local/bin)
andrew.46
October 29th, 2007, 05:37 AM
Hi,
Good to see a fellow xfce user:
Andrew.46 Great guide, thanks
I'm having problems with the mplayer, It doesn't work very well on the graphic interface, when I try to open within xfce. It only works when I drag & drop files to the gui but not if I doble click or rigjht click open with "mplayer".
Hmmm... I suspect that this might be a problem with your setup rather than an mplayer problem. I use xfce myself with no such problem. What is the error message you receive?
and one more question, where is the mplayer source directory, is there where I need to do "make uninstall" for uninstalling the svn version right? is in "/usr/local/bin", or is in the same directory where it was compiled "/home/user/mplayer"
The directory will be the one you unpacked and compiled the archive in. In this walkthrough I have nominated $HOME/Desktop/mplayer but this is an arbitrary choice and you may have chosen a different location?
Don't forget you can update mplayer easily now by entering the command:
$ svn update
in this directory also and then recompiling. The mplayer svn repository is always busy :-)
All the very best!!
Andrew
lordViN
October 30th, 2007, 04:35 AM
thanks for your help,
the message I receive is "Failed to open the file xxxx" but it only happens with some files.
about updating you wrote:
Don't forget you can update mplayer easily now by entering the command:
Code:
$ svn update
in this directory also and then recompiling. The mplayer svn repository is always busy
After updating using the "svn update", it's necessary to do a new ./configure, and then "make" and "sudo make install" again? and also I need to a "sudo make uninstall" before all that right?
so probably if I'm right the order for updating is:
$ sudo make uninstall
$ svn update
$ make clean
$ ./configure \
--prefix=/usr/local \
--enable-largefiles \
--enable-gui \
--codecsdir=/usr/local/lib/codecs
$ make
$ sudo make install
I'm right?
andrew.46
October 30th, 2007, 06:37 AM
Hi,
Sounds like you have the idea:
After updating using the "svn update", it's necessary to do a new ./configure, and then "make" and "sudo make install" again? and also I need to a "sudo make uninstall" before all that right?
so probably if I'm right the order for updating is:
$ sudo make uninstall
$ svn update
$ make clean
$ ./configure \
--prefix=/usr/local \
--enable-largefiles \
--enable-gui \
--codecsdir=/usr/local/lib/codecs
$ make
$ sudo make install
I'm right?
I would tend to run make clean at the very beginning but it really makes no difference :-)
A small secret of this walkthrough is that 2 of the ./configure options are not absolutely necessary: --prefix=/usr/local and --codecsdir=/usr/local/lib/codecs. I have included these to minimise potential problems of installation and to demonstrate how easily such things can be altered.
The default installation directory is /usr/local so this does not really have to be specified, but if you select a different location this is the line to be altered.
The ./configure process will find the codecs directory without it necessarily being specified in the manner that I have in the walkthrough but it is so important that mplayer find the codecs that I put this line in to be totally sure.
So in reality you could as easily run as follows:
$ sudo make clean
$ sudo make uninstall
$ svn update
$ ./configure --enable-largefiles --enable-gui
$ make
$ sudo make install
with the same end result.
I trust you are having a great time with this amazing program!
Andrew
cf1709
October 31st, 2007, 09:37 PM
Hi, I'm a complete newbie in MPlayer. I tried to play an audio file and I heard nothing. I looked at the terminal and this came out:
MPlayer dev-SVN-r24909-4.1.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Celeron(R) CPU 2.80GHz (Family: 15, Model: 4, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
xscreensaver_disable: Could not find XScreenSaver window.
Playing /home/cf1709/Videos/Clannad OP_ED/OST/01 - Megumeru ~cuckool mix 2007~.mp3.
Audio file file format detected.
Clip info:
Title: Megumeru ~cuckool mix 2007~
Artist: eufonius
Album: Megumeru ~cuckool mix 2007~
Year: 2007
Comment: #NIPPONSEI @ IRC.RIZON.NET
Track: 1
Genre: Anime
================================================== ========================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 320.0 kbit/22.68% (ratio: 40000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
================================================== ========================
[AO ESD] esd_open_sound failed: No such file or directory
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video
EDIT: Please disregard this concern of mine. I just got it fixed by choosing drivers. Thanks anyway for this info.
andrew.46
October 31st, 2007, 09:50 PM
Hi,
Not such a noob that couldn't fix your own problem :-)
MPlayer dev-SVN-r24909-4.1.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Celeron(R) CPU 2.80GHz (Family: 15, Model: 4, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
[...]
[AO ESD] esd_open_sound failed: No such file or directory
Could not open/initialize audio device -> no sound.
EDIT: Please disregard this concern of mine. I just got it fixed by choosing drivers. Thanks anyway for this info.
In fact as you found mplayer couldn't find esd sound driver. You can specify the successful sound device in your ~/.mplayer/config file which will make it the default rather than specifying it on the command line each time.
All the best!
Andrew
andrew.46
October 31st, 2007, 10:00 PM
Hi,
I am not sure if people are interested in mplayer beyond its ability to read multiple audio and video formats? I have done a little work with some of its other features:
http://people.aapt.net.au/~adjlstrong/ftgws.html
http://people.aapt.net.au/~adjlstrong/iRiverX20.html
I would love to hear what uses others are putting the svn mplayer to. It is a lot of work to put the program together in this way, is the program working for you now?
Andrew
PS The ftgws.html page contains a Slackware version of this walkthrough, the more interesting material is after this :-)
gav616
November 1st, 2007, 01:33 AM
on the
sudo make install
you could do a
sudo checkinstall
helpful in managing cvs's through synaptic :)
also andrew.46;
i would like to see you add that svn update section to your lovely guide;
http://ubuntuforums.org/showpost.php?p=3668385&postcount=91
garybrlow
November 1st, 2007, 08:57 AM
Nice how to. :) I have compiled Mplayer rc2 SVN as stated in the howto and everything went fine. (\\:D/ Yay!) Everything works as it should except that when playing files with blank spaces in the filename it lets out an error saying it can not play the file because it can not be found. If you rename the file removing the blank spaces it plays fine. The same thing happens if the file is located in a directory with blank spaces even if the filename is without blank spaces. This behavior should not be happening but it is. My System specs are Celeron 2.0 Ghz, 256MB RAM, Geforce FX5200, using Xubuntu Gutsy with Compiz-Fusion. Anybody having the same problem? :confused:
dabotsonline
November 1st, 2007, 10:51 AM
So, if we wanted to use CoreAVC with coreavc-for-linux (does v1.6 work?) instead of libavcodec, and following thse instructions: http://code.google.com/p/coreavc-for-linux/wiki/MplayerInstallation , would we follow this sequence after having downloaded the mplayer source code, and downloaded, compiled and installed x264:
$ svn checkout http://coreavc-for-linux.googlecode.com/svn/trunk/ coreavc-for-linux
$ cd coreavc-for-linux
$ ./mplayer/build_patch.pl $HOME/Desktop/mplayer > mplayerfull.patch
$ cd $HOME/Desktop/mplayer
$ patch -p0 < $HOME/Desktop/mplayer/mplayerfull.patch directly before doing
$ ./configure \
--prefix=/usr/local \
--enable-largefiles \
--enable-gui \
--codecsdir=/usr/local/lib/codecs
$ make
$ sudo make install
$ cp loader/registercodec /usr/local/bin/
and then update codecs.conf ?
andrew.46
November 1st, 2007, 05:07 PM
Hi,
Glad my guide has helped you:
[...]Everything works as it should except that when playing files with blank spaces in the filename it lets out an error saying it can not play the file because it can not be found. If you rename the file removing the blank spaces it plays fine. The same thing happens if the file is located in a directory with blank spaces even if the filename is without blank spaces. This behavior should not be happening but it is. [...]
This behaviour is quite normal for Linux, space in filenames and directories is something to be avoided at all costs unless you want to write and elaborate series of escapes for every file and directory you have. Some of the gui tools shield you from this which shows one of the many drawbacks of gui tools.
Try quotation marks around filnames with spaces: "filename wirh spaces.txt" for example.
Andrew
kaambiz
November 2nd, 2007, 07:26 AM
works perfect. that's awsome. thanks man.
andrew.46
November 2nd, 2007, 04:53 PM
Hi:
works perfect. that's awsome. thanks man.
My pleasure :-)
Andrew
thepaulmorris
November 3rd, 2007, 07:01 PM
Hello all! I am having some serious problems with mPlayer and streaming all internet radio stations!!! First and foremost I am running Gutsy. I followed the installation instructions to the 'T" on the first page of this post and my first wall that I hit is when I do ./configure I receive the following
./configure
Detected operating system: Linux
Detected host architecture: i386
Checking for cc version ... 4.1.3, ok
Checking for host cc ... cc
Checking for cross compilation ... yes
Checking for CPU vendor ... AuthenticAMD (15:72:2)
Checking for CPU type ... AMD Turion(tm) 64 X2 Mobile Technology TL-50
Checking for kernel support of mmx ... failed
It seems that your kernel does not correctly support mmx.
To use mmx extensions in MPlayer, you have to upgrade/recompile your kernel!
Checking for kernel support of mmxext ... failed
It seems that your kernel does not correctly support mmxext.
To use mmxext extensions in MPlayer, you have to upgrade/recompile your kernel!
Checking for kernel support of 3dnow ... failed
It seems that your kernel does not correctly support 3dnow.
To use 3dnow extensions in MPlayer, you have to upgrade/recompile your kernel!
Checking for kernel support of 3dnowext ... failed
It seems that your kernel does not correctly support 3dnowext.
To use 3dnowext extensions in MPlayer, you have to upgrade/recompile your kernel!
Checking for kernel support of sse ... failed
It seems that your kernel does not correctly support sse.
To use sse extensions in MPlayer, you have to upgrade/recompile your kernel!
Checking for kernel support of sse2 ... failed
It seems that your kernel does not correctly support sse2.
To use sse2 extensions in MPlayer, you have to upgrade/recompile your kernel!
Checking for kernel support of cmov ... failed
It seems that your kernel does not correctly support cmov.
To use cmov extensions in MPlayer, you have to upgrade/recompile your kernel!
Checking for mtrr support ... yes
Checking for GCC & CPU optimization abilities ... CPU optimization disabled. CPU not recognized or your compiler is too old.
error
Checking for assembler support of -pipe option ... no
Checking for compiler support of named assembler arguments ... yes
Checking for assembler (as ) ... ok
Checking for .align is a power of two ... no
Checking for Linux kernel version ... 2.6.22-14-generic, ok
Checking for -lposix ... no
Checking for -lm ... no
Checking for langinfo ... no
Checking for language ... using en (man pages: en )
Checking for enable sighandler ... yes
Checking for runtime cpudetection ... no
Checking for restrict keyword ... none
Checking for __builtin_expect ... no
Checking for kstat ... no
Checking for posix4 ... no
Checking for lrintf ... no
Checking for mkstemp ... no
Checking for nanosleep ... no
Checking for socklib ... no
Checking for inet_pton() ... no (trying inet_aton next)
Checking for inet_aton() ... no (network support disabled)
Checking for network ... no
Checking for inttypes.h (required) ... no
Checking for bitypes.h (inttypes.h predecessor) ...
Error: Cannot find header either inttypes.h or bitypes.h. There is no chance for compilation to succeed.
Check "configure.log" if you do not understand why it failed.
I checked the configure.log and I am not familiar enough with the Linux language yet to fully understand what the issue is. So what I did (out of frustration) I ignored the error message above and continued on with the installation. I can get MPlayer to open both from Applications and from Terminal, the skin works and all. Now I have the MediaConnectivity plug-in installed for Firefox and it is setup to have gmplayer be the player for all file types. When I click what should be an internet radio station, lets take NPR for example I receive the following error:
Failed to open icy-url:http://www.shoutcast.com. When trying to open a sirius channel, MPlayer opens and I receive a similar error. I installed all of the codecs per the instructions on page 1.
Prior to this installation attempt I installed MPLayer from Synaptic and I was still unable to play any internet radio streams, all other forms of sound work, videos, CD's systems sounds, etc. Except for streaming video and radio. I am wondering if the issue I am having getting streaming media to work is related to the same issue I am having with Sipie. If anyone isnt familiar with Sipie (ignore the last sentence) Sipie works perfectly except for sound!! This all is very frustrating!! To the point that I am considering re-imaging my laptop and I really don't want to!! Anyone that could possibly help it would be greatly appreciated!!!
Thank You,
Paul
EDIT
I ran mplayer from terminal using the command mplayer (stream location) and this worked. When I ran the command gmplayer (stream location) I still receive the errors stated above. So I guess this can be a temporary stopgap but any insight would be appreciated on the issues I am having.
andrew.46
November 4th, 2007, 06:20 PM
Hi Paul,
Sorry to hear you are having such trouble:
Hello all! I am having some serious problems with mPlayer and streaming all internet radio stations!!! First and foremost I am running Gutsy. I followed the installation instructions to the 'T" on the first page of this post and my first wall that I hit is when I do ./configure I receive the following [....]
You might be best to uninstall mplayer by changing to the source directory and issuing this command:
$ sudo make uninstall
$ make clean
My only thought is that perhaps there is an AMD 64 problem. The faqs speak of this:
http://www.mplayerhq.hu/DOCS/HTML/en/faq.html#id2552970
But I am afraid that my experience with the AMD 64 chip and compiling mplayer is zero :confused: You could try the directions on the faqs but I am not in a position to test them myself to guarantee their effectiveness or suitability for your particular AMD chip.
An alternative is to post on the Mplayer Users list:
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
Be aware some of the users can be a little terse but the information gained there is almost always worthwhile.
Sorry I cannot be much more help than this!
Andrew
episodic
November 4th, 2007, 10:29 PM
Everything works fine but this. It does not seem to install a plugin that firefox sees at all. Can you advise?
You can also build mplayerplug-in as well.
The latest version 3.4.5 works well for me.
I'm going to assume you have already successfully built mplayer.
First, we need to grab the source.
wget http://internap.dl.sourceforge.net/sourceforge/mplayerplug-in/mplayerplug-in-3.45.tar.gz
tar -xzvf mplayerplug-in-3.45.tar.gz
cd mplayerplug-in
Also, we need the firefox development files
sudo apt-get install firefox-dev libnss-dev libnspr-dev
Now, we can build the plugin.
./configure
make
make install
make install will install the plugin to your firefox profile directory, usually ~/.mozilla/plugins. If you wish to make them globally available, use sudo make install instead.
andrew.46
November 5th, 2007, 03:26 AM
Hi,
Glad that you have successfully installed the svn mplayer:
Everything works fine but this. It does not seem to install a plugin that firefox sees at all. Can you advise?
but unfortunately I have no experience with this plugin and in fact I have never installed it. Your quote is from someone else I suspect who has volunteered this information?
Andrew
hype
November 25th, 2007, 03:47 AM
Hey,
i'm getting this error a few seconds after "make";
command.c:1001: warning: passing argument 2 of 'set_video_colors' discards qualifiers from pointer target type
command.c:1008: warning: passing argument 2 of 'get_video_colors' discards qualifiers from pointer target type
command.c:1017: warning: passing argument 2 of 'set_video_colors' discards qualifiers from pointer target type
command.c: In function 'mp_property_sub_source':
command.c:1393: error: 'MSGTR_SubSourceFile' undeclared (first use in this function)
command.c:1393: error: (Each undeclared identifier is reported only once
command.c:1393: error: for each function it appears in.)
command.c:1396: error: 'MSGTR_SubSourceVobsub' undeclared (first use in this function)
command.c:1399: error: 'MSGTR_SubSourceDemux' undeclared (first use in this function)
command.c: At top level:
command.c:2015: error: 'MSGTR_SubSourceStatus' undeclared here (not in a function)
make: *** [command.o] Erreur 1
Should i just wait for some mplayer svn updates? :p
ildfroe
November 25th, 2007, 05:28 AM
Hi,
I get the same error :-(
Edit:
It works now :-) I guess the mplayer-guys fixed the bug.:)
Update your source folder and make again.
cd mplayer
svn update
make
sudo make install
Or use sudo checkinstall to build a .deb package. Go to synaptic and lock the version, and then you can install the mozilla plugin from the repos.
andrew.46
December 10th, 2007, 07:34 PM
Hi,
Wooo hooo!!! Almost 10,000 views of this walkthrough!! I am hoping for an Ubuntu T-shirt or a coffee mug when it hits the big 10,000 :-)
Hopefully a lot of people have just sailed through it with great success, I know there have been some with problems; it is a difficult bit of software to compile from source.
Andrew
andrew.46
December 10th, 2007, 07:43 PM
Hi,
Glad it sorted itself out:
It works now :-) I guess the mplayer-guys fixed the bug.:)
[...] use sudo checkinstall to build a .deb package. Go to synaptic and lock the version, and then you can install the mozilla plugin from the repos.
I thought for some time about using checkinstall in this walkthrough, particularly when I saw that the mozilla plugin wanted to drag in the repository mplayer with it.
But checkinstall introduced a few potential problems with it that I was not keen to troubleshoot. I reasoned eventually that anybody cluey enough to run through a walkthrough that involved svn and compiling from source could make their own way with checkinstall :)
But perhaps if anyone writes a similar guide for Hardy Heron checkinstall might feature as it ties mplayer back into the Ubuntu package management system.
Andrew
tachibana
December 28th, 2007, 08:06 PM
Thank you, thank you, thank you so much!!!!!!
andrew.46
December 28th, 2007, 08:40 PM
Hi:
Thank you, thank you, thank you so much!!!!!!
And thank you for your message :-)
Andrew
Shakey_Jake33
January 6th, 2008, 08:57 PM
Apologies if this has been answered, but I'm assuming we just follow the process in the guide every time a new SVN build is released?
Does this process also give us the newest ffmpeg build? Sorry if that's an obvious question.
I've just come over from Windows, and I know a bit about setting up Directshow codecs, been using ffdshow-tryouts for most uses for the past 2 years, obviously that's based on ffmpeg (usually the latest SVN).
andrew.46
January 7th, 2008, 12:30 AM
Hi,
Thanks for your message:
Apologies if this has been answered, but I'm assuming we just follow the process in the guide every time a new SVN build is released?
The good news is that only part of the process needs to be repeated. If you change to the directory that holds the source code and issue the command:
svn updateyou only then need to repeat the actual compile process. You will find it hard to keep up with the svn process as the updates roll in every day, almost without exception. Just keep a record of the revision number as sometimes a revision will break mplayer. If this is the case the following syntax will return the successful version:
svn checkout -r <revision> svn://svn.mplayerhq.hu/mplayer/trunk mplayerwhere <revision> represents the "safe" version (without the angle brackets).
Does this process also give us the newest ffmpeg build? Sorry if that's an obvious question.The svn mplayer imports the most recent ffmpeg build. If you watch the svn process you will see this happening, watch for 'importing into livavcodec' etc
I've just come over from Windows, and I know a bit about setting up Directshow codecs, been using ffdshow-tryouts for most uses for the past 2 years, obviously that's based on ffmpeg (usually the latest SVN).The 2007 codec pack requires nothing more that to placed in the appropriate directory and sourced by mplayer. However my knowledge of Directshow codecs is simply that mplayer uses them successfully :-)
I wish you all the best with the svn mplayer. Subversion itself has a wealth of options that are well worth exploring if you have an interest.
Regards,
Andrew Strong
pritamps
January 7th, 2008, 01:51 AM
Thanks for your guide! It worked like a charm. I was reading as I was "make"ing, so I uninstalled the mplayer that I had, used checkinstall and them compiled the plugin too!
Thanks!!
I'm just waiting for the day when we can rewind and fast-forward divx videos in linux :)
Introduction
This guide intends to show how to successfully compile a fully featured svn mplayer with all the codecs and with the GUI player gmplayer. It is designed for the Ubuntu distro Gutsy Gibbon but will work with Dapper, Edgy or Feisty with adjustments to the required dev files, but this is not covered in this 'Howto'. Mplayer is a bit of a difficult one to compile so first make yourself a cup of tea and then get your keyboard ready!!
Note: Downloading mplayer using subversion means that you will get the very latest version of this amazing software with all the latest features. But it also exposes you to the newest bugs and problems. If you value safety and stability in your system rather than access to cutting edge versions use the Ubuntu Repository mplayer instead.
First of the Downloads
Still with me? Firstly install subversion + compiling tools and then download the svn mplayer plus the full codec pack:
$ sudo apt-get install build-essential subversion
$ cd Desktop
$ svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
$ wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2So far so good? Next to decompress the codec package and copy all them to the appropriate location. Make sure you are still on the Desktop and:
$ sudo mkdir -v /usr/local/lib/codecs
$ tar xjvf all-20071007.tar.bz2
$ sudo cp -v all-20071007/* /usr/local/lib/codecsAll the dev files
Next comes quite a large download of development files, about 50 megs. These are required so that when mplayer is compiled you will pick up a huge amount of functionality. Don't be surprised if more are suggested, or if you already have some on your system.
Note: These dev files are specific to Gutsy Gibbon, there will be different requirements, not covered in this guide, for Feisty, Edgy and Dapper.
$ sudo apt-get install avifile-divx-plugin avifile-xvid-plugin gawk \
libxcursor-dev ladspa-sdk liba52-0.7.4 liba52-0.7.4-dev libaa1-dev libartsc0 \
libartsc0-dev libasound2-dev libatk1.0-dev libaudiofile-dev libavcodec1d libavcodec-dev \
libavformat1d libavformat-dev libavifile-0.7c2 libavifile-0.7-dev libavutil1d \
libavutil-dev libcaca-dev libcairo2-dev libcdparanoia0-dev libcucul-dev libdv4-dev \
libdirectfb-dev libdirectfb-extra libdbus-1-dev libdbus-glib-1-dev libdc1394-13 \
libdc1394-13-dev libdfb++-0.9-25 libdfb++-dev libdts-dev libdvdnav4 libdvdnav-dev \
libdvdread3 libdvdread-dev libebml0 libebml-dev libenca0 libenca-dev libesd0-dev \
libexpat1-dev libfaac0 libfaac-dev libfaad2-0 libfaad2-dev libfame-0.9 libfame-dev \
libflac++6 libflac-dev libflac++-dev libfontconfig1-dev libfontenc-dev libfreetype6-dev \
libfribidi-dev libgdk-pixbuf2 libgdk-pixbuf-dev libgii1 libgii1-dev libgii1-target-x \
libgl1-mesa-dev libglib1.2 libglib1.2-dev libglib2.0-dev libglu1-mesa-dev \
libglu1-xorg-dev libgsm1 libgsm1-dev libgtk1.2 libgtk1.2-common libgtk1.2-dev \
libgtk2.0-dev libice-dev libggi2 libggi2-dev libggimisc2 libggimisc2-dev libggiwmh0 \
libggiwmh0-dev libjpeg62-dev liblame0 liblame-dev liblivemedia-dev liblzo1 liblzo-dev \
liblzo2-2 liblzo2-dev libmad0 libmad0-dev libmatroska0 libmatroska-dev libmikmod2 \
libmikmod2-dev libmp4v2-0 libmp4v2-dev libmpcdec3 libmpcdec-dev libncurses5-dev \
libogg-dev libpango1.0-dev libpng12-dev libpopt-dev libpostproc1d libpostproc-dev \
libraw1394-dev libsdl1.2-dev libslang2-dev libsmbclient-dev libsm-dev libspeex-dev \
libsvga1 libsvga1-dev libsysfs-dev libtheora-dev libungif4-dev libungif4g \
libvorbis-dev libx11-dev libx264-54 libx264-dev libxau-dev libxcomposite-dev \
libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxfont-dev libxft-dev \
libxi-dev libxinerama-dev libxrandr-dev libxrender-dev libxsharp-dev libxv-dev \
libxvidcore4 libxvidcore4-dev libxvmc1 libxvmc-dev libxxf86dga-dev libxxf86vm-dev \
mesa-common-dev pnet-interpreter sharutils toolame ttf-bitstream-vera \
x11proto-composite-dev x11proto-core-dev x11proto-damage-dev \
x11proto-fixes-dev x11proto-fonts-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 \
xlibs-static-dev xtrans-dev zlib1g-dev
Optional Step: H264
If you are keen to use H.264 encoding (http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-x264.html) at some stage you would be best to also compile the latest x264 source code before compiling mplayer. To do this the following commands will log you onto the Videolan x264 subversion repository, download the source code and compile it:
$ cd Desktop
$ svn co svn://svn.videolan.org/x264/trunk x264
$ cd x264
$ ./configure
$ make
$ sudo make installmplayer will pick this up automatically during its configure process and H.264 encoding will then be available to you. Remember this is an optional step and mplayer will run quite happily without it. As well it is a step that that can be added in at a later stage as long as you follow the sequence:
Compile and install H.264 source code
Compile and install mplayer source codeInstallation
The next task is to compile the svn mplayer, setup a font for the OSD and organise a skin for the GUI:
$ cd $HOME/Desktop/mplayer
$ ./configure \
--prefix=/usr/local \
--enable-largefiles \
--enable-gui \
--codecsdir=/usr/local/lib/codecs
$ make
$ sudo make installThe next step is to place a symbolic link to a font for the OSD (On Screen Display) and subtitles. At the same time we will create the directory structure for the mplayer skin:
$ cd $HOME
$ mkdir -pv .mplayer/skins/default
$ ln -sv /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf ~/.mplayer/subfont.ttfAnd finally to set up a skin for the GUI. Can I say that I rarely use the GUI but in the spirit of generosity, Gentle Reader, I have included the directions on this page for a basic skin and access to gmplayer, the GUI version of mplayer. So, you now need to download a skin, decompress it and then place it in the appropriate directory:
$ cd Desktop
$ wget http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2
$ tar xjvf Blue-1.7.tar.bz2
$ cp -Rv $HOME/Desktop/Blue/* $HOME/.mplayer/skins/defaultAnd you have successfully installed the svn mplayer! You can check the options available for you with the following commands:
mplayer -vo help : Video output available to mplayer
mplayer -ao help : Audio output available to mplayer
mencoder -ovc help : Video encoding available to mencoder
mencoder -oac help : Audio encoding available to mencoderStart both from the command line, the CLI version with the command mplayer, the GUI with gmplayer and the movie encoder with mencoder. And remember: "Have fun!".
Andrew
andrew.46
January 7th, 2008, 02:02 AM
Hi,
Thanks for your message:
Thanks for your guide! It worked like a charm. I was reading as I was "make"ing, so I uninstalled the mplayer that I had, used checkinstall and them compiled the plugin too!
Glad it all worked well! There have been a few problems with some versions of the svn mplayer over the New Year I noticed, but all fixed within 24 hours. It is always a good idea to subscribe to the mplayer-users list as well just to keep on top of any problems:
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
I'm just waiting for the day when we can rewind and fast-forward divx videos in linux :)Hmmm.... I will take your word for that as I temporarily don't have any mpeg4 / Divx movies to hand. Do the following keys not work:
<- or -> seek backward/forward 10 seconds
down or up seek backward/forward 1 minute
pgdown or pgup seek backward/forward 10 minutesAll the best,
Andrew
pritamps
January 7th, 2008, 03:57 PM
They work when I download the video, but not when the video is embedded on a site.
Thanks for the tip about the mplayer list. I will subscribe to it!
-Pritam
Shakey_Jake33
January 7th, 2008, 04:24 PM
Hi,
Thanks for your message:
The good news is that only part of the process needs to be repeated. If you change to the directory that holds the source code and issue the command:
svn updateyou only then need to repeat the actual compile process. You will find it hard to keep up with the svn process as the updates roll in every day, almost without exception. Just keep a record of the revision number as sometimes a revision will break mplayer. If this is the case the following syntax will return the successful version:
svn checkout -r <revision> svn://svn.mplayerhq.hu/mplayer/trunk mplayerwhere <revision> represents the "safe" version (without the angle brackets).
The svn mplayer imports the most recent ffmpeg build. If you watch the svn process you will see this happening, watch for 'importing into livavcodec' etc
The 2007 codec pack requires nothing more that to placed in the appropriate directory and sourced by mplayer. However my knowledge of Directshow codecs is simply that mplayer uses them successfully :-)
I wish you all the best with the svn mplayer. Subversion itself has a wealth of options that are well worth exploring if you have an interest.
Regards,
Andrew Strong
Sounds good, thanks :)
One other quick thing, I prefer to use smplayer as a frontend... if I install smplayer, would it be using these new SVN files, or it's own mplayer build? I mainly prefer smplayer for the superior deinterlace options.
andrew.46
January 7th, 2008, 04:28 PM
Hi,
They work when I download the video, but not when the video is embedded on a site.
In that case unfortunately you will have to chase up the mplayer plugin and I do not know a great deal about it, although I do have it installed on my system.
I note a mailing list for the mplayer pluhin at:
https://lists.sourceforge.net/lists/listinfo/mplayerplug-in-devel
All the best with mplayer though, it is an amazing program.
Andrew
andrew.46
January 7th, 2008, 04:50 PM
Hi again!
Sounds good, thanks :)
One other quick thing, I prefer to use smplayer as a frontend... if I install smplayer, would it be using these new SVN files, or it's own mplayer build? I mainly prefer smplayer for the superior deinterlace options.
I have heard a lot about smplayer but never tried it, mostly because the tru power of mplayer is in the command line. Hence the rather poor gui that comes with mplayer :-)
But I downloaded the tarball just to investigate and I found the following in the FAQs:
23) What version of MPlayer is recommended?
SMPlayer requires at least MPlayer 1.0rc1. It hasn't been tested with older releases, and it uses some options only available from 1.0rc1, like -vf screenshot or --***..
If you use an older version and see that something doesn't work as it should, before reporting a bug I suggest to update MPlayer.
Anyway I recommend to use a svn MPlayer. There are several things that have been improved from version 1.0rc1. For instance now you can change the audio language in avi files, seeking works better in flv and ogm (and maybe other formats). One thing that has really been improved is the SSA/*** library for subtitles.
In the MPlayer download page (http://www.mplayerhq.hu/design7/dload.html) you can get a svn tar.bz2 ready to compile. And compiling it is very easy (in linux, I mean...)So I guess you should be right with both svn mplayer and smplayer. I will admit the gui on the website looks very nice :-)
Andrew
PS For some anti-swearing reason the forum is disguising the letters a s s in the quoted material!!!
Shakey_Jake33
January 7th, 2008, 07:28 PM
Just to let you know, smplayer can be used with the SVN, but the deb version and repository automatically grabs the version of mplayer from the repository. Synaptic doesn't actually seem to realise mplayer has been installed, so it assumes it's not and tries to grab it from repository (old rc1!). Had to remove mplayer and start again.
So I grabbed the tar from the smplayer page and compiled it using the instructions (my first ever compile woo!), and all works great! I feel rather pleased with myself =P
Hah, experienced Linux users say command line is best - I'm sure I'll learn one day why! I just like smplayer because I can right-click->deinterlace at will.
mrdustinf
January 7th, 2008, 08:09 PM
Im not sure if anyone else is having this problem or not. Im trying to install Mplayer using your walkthrough but Im installing it on the PS3 with Gutsy.
When it trys to install the dev files you have listed the first one gives an error
E: Couldn't find package avifile-divx-plugin
Im very new to linux so any help will be appreciated. Thanks alot.
Shakey_Jake33
January 7th, 2008, 08:39 PM
I'd imagine it would not work, as the PS3 would require specific PowerPC builds.
But there is a guide on here about installing a custom PS3 mplayer build http://linux.yes.nu/PS3Ubuntu/
andrew.46
January 7th, 2008, 09:51 PM
Hi,
Took me a while to realise that you meant Play Station 3 :-) Obviously I am a little behind the times as I had no idea a Linux distro could be placed on such a machine!
Im not sure if anyone else is having this problem or not. Im trying to install Mplayer using your walkthrough but Im installing it on the PS3 with Gutsy.
When it trys to install the dev files you have listed the first one gives an error
E: Couldn't find package avifile-divx-plugin
Im very new to linux so any help will be appreciated. Thanks alot.
Nevertheless the avifile-divx-plugin (http://packages.ubuntu.com/gutsy/libs/avifile-divx-plugin) does exist, but you will have to enable the multiverse repositories. From the following page:
http://packages.ubuntu.com/gutsy/allpackages
avifile-divx-plugin (http://packages.ubuntu.com/gutsy/libs/avifile-divx-plugin) (1:0.7.47.20070718-1ubuntu2) [multiverse]
Divx4Linux video de/encoding plugin for libavifile
Best place to look at changing your sources list is:
http://www.ubuntu-nl.org/source-o-matic/
Good luck with the PS3 thing :-)
Andrew
Shakey_Jake33
January 8th, 2008, 10:50 AM
Linux is supported on PS3 completely officially, endorsed by Sony, no modification needed :) Just install from CDR. Unfortunately it runs in some kind of hypervisor mode with limited access to the hardware, hence the ps3-modified versions of certain files found in the link I posted. Even then, it only just about manages standard definition files :(
andrew.46
January 10th, 2008, 12:31 AM
Hi!
Wooooooo hoooooooooooooo!!!! 12,000 views!!!!! What about a free Ubuntu T-shirt and a coffee mug????!!!!!
Andrew
andrew.46
January 15th, 2008, 06:45 AM
Hi,
If anybody is interested I have rejoined the Ubuntu ranks with a dual boot Slackware / Ubuntu system and high on the agenda is a reworked version of this 'Howto' for Hardy Heron when it comes out.
I have in mind roughly the same format but differences will be:
Different -dev files of course
Installation of some extra 'skins' + description of skin browser
Addition of checkinstall in the installation
Description of version locking to prevent Repository 'updating'
Anything anybody suggests in the next month or two :-)Andrew
hype
January 15th, 2008, 09:53 AM
Hey, first thanks for great post.
I'm just having a little issue since some weeks now installing mplayer 1.0 rc2.
I just used ./configure --enable-largefiles --enable-gui , make goes fine, but after installing, my side buttons (mouse 6 and 7) wont control volume anymore.
I tried editing the inputrc file, as advised on mplayer's mailing list but without succes.
Just wondering if anyone here had the same issue?
Note: i used svn mplayer.
csulok
January 15th, 2008, 10:00 AM
hey
lately i've been having problems compiling mplayer, after updating from the svn
./configure --enable-gui --enable-largefiles
returns:
Detected operating system: Linux
Detected host architecture: i386
Checking for cc version ... 4.1.3, ok
Checking for host cc ... cc
Checking for cross compilation ... yes
Checking for CPU vendor ... GenuineIntel (6:15:6)
Checking for CPU type ... Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz
Checking for kernel support of mmx ... failed
It seems that your kernel does not correctly support mmx.
To use mmx extensions in MPlayer, you have to upgrade/recompile your kernel!
Checking for kernel support of mmxext ... failed
It seems that your kernel does not correctly support mmxext.
To use mmxext extensions in MPlayer, you have to upgrade/recompile your kernel!
Checking for kernel support of sse ... failed
It seems that your kernel does not correctly support sse.
To use sse extensions in MPlayer, you have to upgrade/recompile your kernel!
Checking for kernel support of sse2 ... failed
It seems that your kernel does not correctly support sse2.
To use sse2 extensions in MPlayer, you have to upgrade/recompile your kernel!
Checking for kernel support of ssse3 ... failed
It seems that your kernel does not correctly support ssse3.
To use ssse3 extensions in MPlayer, you have to upgrade/recompile your kernel!
Checking for kernel support of cmov ... failed
It seems that your kernel does not correctly support cmov.
To use cmov extensions in MPlayer, you have to upgrade/recompile your kernel!
Checking for mtrr support ... yes
Checking for GCC & CPU optimization abilities ... CPU optimization disabled. CPU not recognized or your compiler is too old.
error
Checking for assembler support of -pipe option ... no
Checking for compiler support of named assembler arguments ... yes
Checking for assembler (as ) ... ok
Checking for .align is a power of two ... no
Checking for Linux kernel version ... 2.6.22-14-generic, ok
Checking for -lposix ... no
Checking for -lm ... no
Checking for langinfo ... no
Checking for language ... using en (man pages: en )
Checking for enable sighandler ... yes
Checking for runtime cpudetection ... no
Checking for restrict keyword ... none
Checking for __builtin_expect ... no
Checking for kstat ... no
Checking for posix4 ... no
Checking for llrint ... no
Checking for lrint ... no
Checking for lrintf ... no
Checking for round ... no
Checking for roundf ... no
Checking for mkstemp ... no
Checking for nanosleep ... no
Checking for socklib ... no
Checking for inet_pton() ... no (trying inet_aton next)
Checking for inet_aton() ... no (network support disabled)
Checking for network ... no
Checking for inttypes.h (required) ... no
Checking for bitypes.h (inttypes.h predecessor) ...
Error: Cannot find header either inttypes.h or bitypes.h. There is no chance for compilation to succeed.
Check "configure.log" if you do not understand why it failed.
Any ideas as to what causes the problem and how I can fix it?
PS: I'm using the official kernel packages
andrew.46
January 15th, 2008, 06:27 PM
Hi,
Sorry to see that you are having a little trouble:
hey
lately i've been having problems compiling mplayer, after updating from the svn
I will have to admit it does not sound like a specifically svn problem. There are 2 things you could try:
Try to backtrack to the last successful svn version that you used. To do this simply add -R <revision number> to the svn command.
Try to compile the mplayer rc2 instead.Mplayer rc2 can be found at:
http://www3.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2
All the best,
Andrew
shirilover
January 16th, 2008, 09:14 PM
In case you have wondered why checking for dvdnav has resulted in no, it is because mplayer now depends on the libdvdnav source maintained by the MPlayer project.
First remove the old version od libdvdnav:
sudo apt-get remove libdvdnav4
Then, we will compile and install the newer version, at least until the Ubuntu developers decide to start using the new source files:
svn co svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdnav libdvdnav
cd libdvdnav
./autogen.sh --enable-static --enable-shared --prefix=/usr
make
sudo make install
Then proceed with compiling mplayer-svn.
For those of you that are using checkinstall to create a deb file of mplayer, you should instead use:
fakeroot debian/rules binary
csulok
January 19th, 2008, 12:29 PM
Hi,
Sorry to see that you are having a little trouble:
I will have to admit it does not sound like a specifically svn problem. There are 2 things you could try:
Try to backtrack to the last successful svn version that you used. To do this simply add -R <revision number> to the svn command.
Try to compile the mplayer rc2 instead.Mplayer rc2 can be found at:
http://www3.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2
All the best,
Andrew
I can't compile the 1.0rc2 build, I get the exact same messages.
I can't compile revision 25426 either, exact same message, even though i successfully compiled it on december 16th and i'm using that package right now.
It has nothing to do with mplayer i'm afraid. there was an ubuntu kernel update during my xmas holiday, that upgraded the kernel from 2.6.22-13 to 2.6.22-14. i suspect this to be the cause (the error messages state something similar too), but i can't downgrade to confirm it :/
andrew.46
January 19th, 2008, 03:23 PM
Hi,
If a kernel update is the problem:
It has nothing to do with mplayer i'm afraid. there was an ubuntu kernel update during my xmas holiday, that upgraded the kernel from 2.6.22-13 to 2.6.22-14. i suspect this to be the cause (the error messages state something similar too), but i can't downgrade to confirm it :/
you actually can either temporarily or permanently use the older kernel. Depending how Grub is set on your system press 'Esc' when you see the Grub menu on the initial bootup and select the older kernel.
If this is the problem you can change the boot order by editing /boot/grub/menu.lst.
Andrew
jocheem67
January 20th, 2008, 03:57 PM
Well , I' ve been struggling bigtime with the whole thing:
I really want the mozilla-mplayer and smplayer working. As stated before smplayer really wants to install the ubuntu-deb of mplayer, resulting in two mplayers ( usr/bin and usr/local/bin ) ....hmmm...not that pretty...
mozilla-mplayer also tries to force a secondary mplayer onto your system.
Well I used the advice to use checkinstall, so i ended up with the command
sudo checkinstall && sudo make install
This resulted in a .deb and in the fact that mplayer is now registered with synaptic..there I just locked the mplayer I compiled and voila smplayer and mozilla-mplayer no longer nag about mplayer needed to be installed. Just fooled the two of them....
A nice little dirty trick...
thanks for the howto and this trick by ?? somewhere in this thread!
andrew.46
January 20th, 2008, 06:31 PM
Hi,
Glad you finally managed to install mplayer to your satisfaction:
Well , I' ve been struggling bigtime with the whole thing: [...]
Well I used the advice to use checkinstall, so i ended up with the command
sudo checkinstall && sudo make installThis resulted in a .deb and in the fact that mplayer is now registered with synaptic..there I just locked the mplayer I compiled and voila smplayer and mozilla-mplayer no longer nag about mplayer needed to be installed. Just fooled the two of them....
I will be writing a similar howto for Hardy Heron and I suspect that checkinstall will feaure. I am not such a big fan of the program but many people have asked for it. Your syntax was a little wayward though, should be:
$ ./configure
$ make
$ sudo checkinstall -D
with the usual ./configure options added in. The -D option for Checkinstall specifies a debian package, checkinstall can also produce an rmp and tgz package.
All the best with mplayer!
Andrew
aBitLater
January 20th, 2008, 11:33 PM
Thanks for this post.
I can't seem to get mplayer compiled. After, "./configure --prefix=/usr/local --enable-largefiles --enable-gui --codecsdir=/usr/local/lib/codec", I do "make" and this is what I get.. errors.
Any ideas?
Thanks
./version.sh `cc -dumpversion`
cc -I./libavcodec -I./libavformat -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -I. -I./libavutil -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=pentium4 -mtune=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -I/usr/include/directfb -I/usr/include/ -I/usr/include/SDL -D_REENTRANT -I/usr/include/kde/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -c -o mplayer.o mplayer.c
In file included from mplayer.c:807:
cfg-mplayer.h:352: warning: initialization discards qualifiers from pointer target type
In file included from cfg-mplayer.h:358,
from mplayer.c:807:
cfg-common.h:11: warning: initialization discards qualifiers from pointer target type
cfg-common.h:145: warning: initialization discards qualifiers from pointer target type
cfg-common.h:152: warning: initialization discards qualifiers from pointer target type
cfg-common.h:157: warning: initialization discards qualifiers from pointer target type
cfg-common.h:161: warning: initialization discards qualifiers from pointer target type
cfg-common.h:163: warning: initialization discards qualifiers from pointer target type
cfg-common.h:204: warning: initialization discards qualifiers from pointer target type
cfg-common.h:229: warning: initialization discards qualifiers from pointer target type
cfg-common.h:252: warning: initialization discards qualifiers from pointer target type
cfg-common.h:255: warning: initialization discards qualifiers from pointer target type
cfg-common.h:258: warning: initialization discards qualifiers from pointer target type
In file included from mplayer.c:807:
cfg-mplayer.h:367: warning: initialization discards qualifiers from pointer target type
mplayer.c: In function 'reinit_video_chain':
mplayer.c:2018: warning: passing argument 1 of 'vf_open_plugin' from incompatible pointer type
mplayer.c: In function 'main':
mplayer.c:2747: warning: passing argument 2 of 'guiGetEvent' from incompatible pointer type
cc -I./libavcodec -I./libavformat -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -I. -I./libavutil -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=pentium4 -mtune=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -I/usr/include/directfb -I/usr/include/ -I/usr/include/SDL -D_REENTRANT -I/usr/include/kde/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -c -o vobsub.o vobsub.c
make -C libvo libvo.a
make[1]: Entering directory `/home/brianphillips/Desktop/mplayer/libvo'
cc -I../libavcodec -I../libavformat -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -I.. -I../libavutil -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=pentium4 -mtune=pentium4 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -I/usr/include/directfb -I/usr/include/ -I/usr/include/SDL -D_REENTRANT -I/usr/include/kde/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -c -o vo_ivtv.o vo_ivtv.c
vo_ivtv.c: In function 'ivtv_reset':
vo_ivtv.c:79: error: storage size of 'sd' isn't known
vo_ivtv.c:80: error: storage size of 'sd1' isn't known
vo_ivtv.c:84: error: 'IVTV_STOP_FL_HIDE_FRAME' undeclared (first use in this function)
vo_ivtv.c:84: error: (Each undeclared identifier is reported only once
vo_ivtv.c:84: error: for each function it appears in.)
vo_ivtv.c:87: error: 'IVTV_IOC_STOP_DECODE' undeclared (first use in this function)
vo_ivtv.c:97: error: 'IVTV_IOC_START_DECODE' undeclared (first use in this function)
vo_ivtv.c:80: warning: unused variable 'sd1'
vo_ivtv.c:79: warning: unused variable 'sd'
vo_ivtv.c: In function 'flip_page':
vo_ivtv.c:243: warning: passing argument 6 of 'send_mpeg_pes_packet' from incompatible pointer type
make[1]: *** [vo_ivtv.o] Error 1
make[1]: Leaving directory `/home/brianphillips/Desktop/mplayer/libvo'
make: *** [libvo/libvo.a] Error 2
andrew.46
January 21st, 2008, 12:03 AM
Hi,
Sorry you are having some trouble:
Thanks for this post.
I can't seem to get mplayer compiled. After, "./configure --prefix=/usr/local --enable-largefiles --enable-gui --codecsdir=/usr/local/lib/codec", I do "make" and this is what I get.. errors.
Any ideas?
Thanks
Try to add the following to ./configure:
--disable-ivtvand hopefully this will allow you to build a working copy of mplayer but without the use of whatever capture card you have. So full options would be:
$ ./configure \
--prefix=/usr/local \
--disable-ivtv \
--enable-largefiles \
--enable-gui \
--codecsdir=/usr/local/lib/codecs
$ make
$ sudo make installI note that 'largefiles' is enabled by default now, not sure when that changed :-)
Hope that helps,
Andrew
jocheem67
January 21st, 2008, 04:31 AM
Hi there:
./configure --enable-gui --codecsdir=/usr/local/lib/codecs
make
sudo checkinstall && sudo make install
That' s how I did it, created a deb...very nice:)
Nevertheless the mplayer gui is very crappy, smplayer is the better bet I think, and it' s a bit of a shame that it takes a workaround to get it installed when mplayer is self-compiled...even more when the smplayer developer states that one should use the svn mplayers....
aBitLater
January 21st, 2008, 09:49 AM
thank you for your help.
I am actually trying to get TV on Ubuntu... I'm a newbie, and I thought I had to install MPlayer to watch it. I've installed ivtv from the package manager, but I don't know anything about it... how to configure, use, etc. My tv card is Hauppauge WinTV PVR 150 (PCI card).
Is there no other way? Will --disable-ivtv make it so I can't watch tv on my computer?
EDIT1:
I ./configure with --disable-ivtv and after a very long time all appears to be good, then I get this at the end:
libvo/libvo.a(video_out.o):(.rodata+0x34): undefined reference to `video_out_ivtv'
collect2: ld returned 1 exit status
make: *** [mplayer] Error 1
EDIT2:
I also wanted to say that I have an ATI Radeon 9700 Pro graphics card, with the proprietary driver - I don't know if this affects anything. My tuner card (PCI Card) is Hauppauge WinTV PVR 150
Hi,
Sorry you are having some trouble:
Try to add the following to ./configure:
--disable-ivtvand hopefully this will allow you to build a working copy of mplayer but without the use of whatever capture card you have. So full options would be:
$ ./configure \
--prefix=/usr/local \
--disable-ivtv \
--enable-largefiles \
--enable-gui \
--codecsdir=/usr/local/lib/codecs
$ make
$ sudo make installI note that 'largefiles' is enabled by default now, not sure when that changed :-)
Hope that helps,
Andrew
andrew.46
January 21st, 2008, 06:18 PM
Hi again!,
I am afraid that my expertise on TV an Ubuntu is absolutely zero and in fact the searching I have done on the subject seems to show that it is a little difficult to actually get TV running well on Ubuntu.
The setting --disable-ivtv will only stop playback of television with mplayer not with other software on your computer and I suspect that you may simply have needed to have run the command 'make clean' without the '' before recompiling. My apologies for not mentioning this previously
Can I suggest a few things?
1. Have a good long trawl through some specialty sites such as: http://ivtv.writeme.ch/tiki-index.php to get a bit more background on TV and Linux. I believe they have a mailing list as well which might be worth the time and effort.
2. Forget about mplayer for watching TV for the moment, although I suspect that all you are missing is some header files. Have a look at a few 'watching tv on linux' sites and see if there are some less difficult way of accomplishing your aim. I found an interesting one at:
http://www.linux.com/feature/34790
which also describes some of the other tv software for linux. The page is a little aged but I am sure there are more recent pages out there.
3. Return after a while to the svn mplayer and try again, hopefully with the correct header files in place and a greater knowledge of IVTV (my apologies again for knowing next to nothing on the subject.) Mplayer apparently offers great TV viewing. options wich can be seen on the online documantation at:
http://www.mplayerhq.hu/DOCS/HTML/en/tv-input.html
It makes it all sound quite interesting :-)
All the very best,
Andrew
csulok
January 22nd, 2008, 09:21 AM
Hi,
If a kernel update is the problem:
you actually can either temporarily or permanently use the older kernel. Depending how Grub is set on your system press 'Esc' when you see the Grub menu on the initial bootup and select the older kernel.
If this is the problem you can change the boot order by editing /boot/grub/menu.lst.
Andrew
the old kernels aren't installed, so they are not in the grub menu, but that's not the problem, i can easily install them.
the problem is that i can't reboot due to various circumstances for another 2 weeks.
jocko
January 22nd, 2008, 06:53 PM
I will be writing a similar howto for Hardy Heron and I suspect that checkinstall will feaure. I am not such a big fan of the program but many people have asked for it. Your syntax was a little wayward though, should be:
$ ./configure
$ make
$ sudo checkinstall -Dwith the usual ./configure options added in. The -D option for Checkinstall specifies a debian package, checkinstall can also produce an rmp and tgz package.
Thanks for an excellent howto. I have a little suggestion for improving it:
Why use checkinstall (or make install), when the mplayer source already contains the necessary instructions to build a real debian package?
Simply run this command instead of 'make install' or 'checkinstall' (first install fakeroot and dpkg-dev):
DEB_BUILD_OPTIONS="--prefix=/usr/local --enable-gui --enable-largefiles --codecsdir=/usr/local/lib/codecs" fakeroot debian/rules binaryThis will produce a real debian package, with proper dependencies and correct version numbering (=no conflicts with the repos, as the svn version is newer).
Also, as pulseaudio will be default in hardy (and many already use it in gutsy), you may need to add libpulse-dev (plus fakeroot and dpkg-dev) to the dev-packages.
andrew.46
January 22nd, 2008, 06:57 PM
Hi,
Thanks for your message:
Thanks for an excellent howto. I have a little suggestion for improving it:
Why use checkinstall (or make install), when the mplayer source already contains the necessary instructions to build a real debian package?
[...] Also, as pulseaudio will be default in hardy (and many already use it in gutsy), you may need to add libpulse-dev (plus fakeroot and dpkg-dev) to the dev-packages.
Excellent suggestions! I shall certainly add this.
Andrew
iulianhoratiu
January 23rd, 2008, 04:11 PM
Thank you . Really worked and not hard to do . Great tutorial !
andrew.46
January 23rd, 2008, 04:14 PM
Hi,
Thanks for your kind words:
Thank you . Really worked and not hard to do . Great tutorial !
It is totally my pleasure!
Andrew
andrew.46
January 25th, 2008, 06:35 AM
Hi shirilover,
I have been poring over older posts and reread yours:
Also, if you would like to create a deb package you can do the following (needs fakeroot and dpkg-dev):
cd /path/to/mplayer-svn/source
DEB_BUILD_OPTIONS="--enable-gui --enable-largefiles --enable-xvmc" fakeroot debian/rules binary
I have done this at home and it certainly represents an answer for those who have had trouble with the repository threatening to overwrite their svn mplayer. I am not such a fan of checkinstall plus this method is just plain cool :-)
Rather than change this walkthrough which has had some traffic indeed I am incorporating it into a Hardy Heron version of installing the svn mplayer.
Do you have any other suggestions for the future walkthrough?
Andrew
jocko
January 25th, 2008, 02:58 PM
Hi shirilover,
I have been poring over older posts and reread yours:
I have done this at home and it certainly represents an answer for those who have had trouble with the repository threatening to overwrite their svn mplayer. I am not such a fan of checkinstall plus this method is just plain cool :-)
Rather than change this walkthrough which has had some traffic indeed I am incorporating it into a Hardy Heron version of installing the svn mplayer.
Do you have any other suggestions for the future walkthrough?
Andrew
I noticed after my previous post (yes, I got the idea from shirilover's post) that the version number is set in the file "changelog" in the debian subdirectory, so if the number in that file is in a different format than the repo version, synaptic may try to upgrade it.
This may be something to include in your upcoming hardy tutorial.
As an example:
The current version in the gutsy backports repo is 2:1.0~rc2-0ubuntu1, while the version number in the current svn is simply "1.0svn".
That would make it look like the svn version (major version 1) is older than the repo version (major version 2, although really 1).
The solution is to change the version number in the latest entry in mplayer/debian/changelog to a higher value, like 3:1.0svn.
So change the first line in the file from this:
mplayer (1.0svn) unstable; urgency=lowTo this:
mplayer (3:1.0svn) unstable; urgency=low
andrew.46
January 25th, 2008, 06:16 PM
Hi,
Thanks for this. In fact the Ubuntu repository keeps trying to change mplayer when installed as a Debian package:
I noticed after my previous post (yes, I got the idea from shirilover's post) that the version number is set in the file "changelog" in the debian subdirectory, so if the number in that file is in a different format than the repo version, synaptic may try to upgrade it.
This may be something to include in your upcoming hardy tutorial.
It may be a little sad but I have half written the Hardy version already, even though there are months until the release, and I suspect changing the source code 'changelog' might be better that describing package 'locking'. I just need to find the most user friendly method of doing this.
I suspect that shirilover would do a better job at this than me. His / her knowledge of mplayer exceeds mine somewhat.
Andrew
andrew.46
January 25th, 2008, 06:20 PM
Hi,
Thanks for this. In fact the Ubuntu repository keeps trying to change mplayer when installed as a Debian package:
I noticed after my previous post (yes, I got the idea from shirilover's post) that the version number is set in the file "changelog" in the debian subdirectory, so if the number in that file is in a different format than the repo version, synaptic may try to upgrade it.
This may be something to include in your upcoming hardy tutorial.
It may be a little sad but I have half written the Hardy version already, even though there are months until the release, and I suspect changing the source code 'changelog' might be better that describing package 'locking'.
BTW I will eliminate many of the configure options:
--prefix=/usr/local --enable-largefiles --codecsdir=/usr/local/lib/codecs
Large files is now a default, the prefix was always redundant and the codecs directory is found by the configure process in this location anyway. Which really only leaves: --enable-gui.
I suspect that shirilover would do a better job at this than me. His / her knowledge of mplayer exceeds mine somewhat.
Andrew
andrew.46
January 25th, 2008, 09:57 PM
Hi,
Worked a little on your idea:
So change the first line in the file from this:
mplayer (1.0svn) unstable; urgency=lowTo this:
mplayer (3:1.0svn) unstable; urgency=low
and hopefully there are some sed experts here, but I came up with:
sed -i_bak 's/1\.0svn/3\:1\.0svn/' debian/changelog
which seems to do the trick, as well as saving a backup for the paranoid :- ) Any thoughts?
Andrew
jocko
January 26th, 2008, 04:11 AM
Hi,
Worked a little on your idea:
and hopefully there are some sed experts here, but I came up with:
sed -i_bak 's/1\.0svn/3\:1\.0svn/' debian/changelogwhich seems to do the trick, as well as saving a backup for the paranoid :- ) Any thoughts?
Andrew
If it works, it's perfect. It's nice to be able to copy/paste a command instead of having to manually edit a file.
andrew.46
January 26th, 2008, 06:11 PM
Hi,
Yes it seems to work fine:
If it works, it's perfect. It's nice to be able to copy/paste a command instead of having to manually edit a file.
But I have a dislike for such relatively ugly hacks so FWIW I have filed bug reports with mplayer-users and launchpad although I am not so sure that either side will be prepared to change anything:
https://bugs.launchpad.net/ubuntu/+source/mplayer/+bug/186230
http://lists.mplayerhq.hu/pipermail/mplayer-users/2008-January/071488.html
Nice if something were definitively fixed though.
Andrew
Maverynthia
January 28th, 2008, 06:53 AM
I'm getting this error:
The GUI requires libavcodec with PNG support (needs zlib).
Someone else also had the error but no one posted a fix so..I ask again...
andrew.46
January 28th, 2008, 11:12 PM
Hi,
A repository search reveals a few possible candidates that could solve your problem:
I'm getting this error:
The GUI requires libavcodec with PNG support (needs zlib).
Someone else also had the error but no one posted a fix so..I ask again...
Definitely the first 2, and possibly the last 2 as well:
$ sudo apt-get install zlib1g-dev zlib1g zlibc zlib-bin
Please let me know if this solves the problem,
Andrew
andrew.46
January 31st, 2008, 07:15 AM
Hi all,
I have done a pretty major rewrite of the Howto, not sure if this sabotages a lot of the replies / discussions etc but it is a done thing now.
Left a placeholder for Hardy Heron which should just require a rework of the -dev files although this is no small task. Added the Debian install that a few people were after and generally tidied up. Should cover Feisty / Gutsy / Hardy after April which will hopefully mean this 'Howto' could have a life-expectancy of many years.
Let me know if I have made any typos / errors etc,
Andrew
jocheem67
February 2nd, 2008, 08:01 AM
You're doing an impressive job!
Maybe you could add something like how to update mplayer through subversion?? It's possible isn't it?
Or does that require recompiling the whole thing every time, cause that might be a bridge too far.
GamingMazter
February 2nd, 2008, 09:16 AM
Thanks. Thats me all set!
andrew.46
February 2nd, 2008, 03:33 PM
Hi,
Glad you liked the walkthrough:
You're doing an impressive job!
Maybe you could add something like how to update mplayer through subversion?? It's possible isn't it?
Or does that require recompiling the whole thing every time, cause that might be a bridge too far.
You may have missed the recent rewrite where I have mentiond this, it is in the section marked 'Download the svn mplayer'. But just for the record the technique is quite simple. Simply change to the directory that contains the source code and type:
$ svn update
and the source code will be updated to the latest version. But then, as you mention, the code must be compiled again which is definitely a long job on my poor old computer :-)
All the best,
Andrew
marin.r
February 2nd, 2008, 04:43 PM
Hello there,
I see this is THE mplayer thread in the forum :) First of all - the guide is really easy and got me a fresh mplayer in no time.
But my problem persists - I had it with the packaged version too - everything works SUPER FINE from the command line, but when I use the GUI frontend with same video and audio output (xv and alsa) and everything else default - an error keeps popping up, cpu usage 100% , the error says ALSA Cannot open PCM 0,0 or something very similar.
I fail to find any more advanced configurations... why alsa opens everything really well from the command line and doesn't from GUI mplayer?
Thanks in advance,
l0b0
February 3rd, 2008, 06:18 PM
Thanks for a great guide! I've had a couple problems though:
First, I had to
$ sudo apt-get install debhelper
to be able to run $ DEB_BUILD_OPTIONS [...]
Second, I keep getting tons of error messages when playing anything - Here's some sample output:
$ gmplayer test.mp3
MPlayer dev-SVN-r25952-4.1.3 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz (Family: 6, Model: 15, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
/usr/share/fonts/truetype/ttf-gentium/GenAR102.ttf doesn't look like a bitmap font description, ignoring.
Cannot load bitmap font: /usr/share/fonts/truetype/ttf-gentium/GenAR102.ttf
[GUI] Adding video filter: pp
Playing /path/test.mp3.
Cache fill: 0.00% (0 bytes)
Audio file file format detected.
================================================== ========================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 320.0 kbit/22.68% (ratio: 40000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
================================================== ========================
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
[AO_ALSA] Mixer attach default error: Invalid argument
Starting playback...
[AO_ALSA] Mixer attach default error: Invalid argument
[AO_ALSA] Mixer attach default error: Invalid argument
The "Invalid argument" errors go on like that, while the CPU usage tops out. The contents actually play, but MPlayer is unusable because of all the error pop-ups.
andrew.46
February 3rd, 2008, 07:25 PM
Hi,
Sorry to hear you are having some trouble:
Thanks for a great guide! I've had a couple problems though:
First, I had to
$ sudo apt-get install debhelper
to be able to run $ DEB_BUILD_OPTIONS [...]
I have added this to the initial install downloads, thanks for pointing this one out.
Second, I keep getting tons of error messages when playing anything - Here's some sample output:
$ gmplayer test.mp3
MPlayer dev-SVN-r25952-4.1.3 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz (Family: 6, Model: 15, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
/usr/share/fonts/truetype/ttf-gentium/GenAR102.ttf doesn't look like a bitmap font description, ignoring.
Cannot load bitmap font: /usr/share/fonts/truetype/ttf-gentium/GenAR102.ttf
[GUI] Adding video filter: pp
Playing /path/test.mp3.
Cache fill: 0.00% (0 bytes)
Audio file file format detected.
================================================== ========================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 320.0 kbit/22.68% (ratio: 40000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
================================================== ========================
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
[AO_ALSA] Mixer attach default error: Invalid argument
Starting playback...
[AO_ALSA] Mixer attach default error: Invalid argument
[AO_ALSA] Mixer attach default error: Invalid argument
The "Invalid argument" errors go on like that, while the CPU usage tops out. The contents actually play, but MPlayer is unusable because of all the error pop-ups.
Looks like 2 problems. Firstly you need to select another font for the OSD as there seems to be some trouble with your existing one. Easiest way is:
$ sudo apt-get install ttf-bitstream-vera
$ ln -sv /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf ~/.mplayer/subfont.ttf
The other looks like an audio out problem. Have a look at what is available to you:
$ mplayer -ao help
Then try one of these. For example:
$ mplayer -ao oss <filename>
$ mplayer -ao esd <filename>
If this is a solution it can be written into a startup configuration file to make it the default audio output.
Please post back if this is a solution.
Andrew
l0b0
February 4th, 2008, 02:34 PM
Looks like 2 problems. Firstly you need to select another font for the OSD as there seems to be some trouble with your existing one. Easiest way is:
$ sudo apt-get install ttf-bitstream-vera
$ ln -sv /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf ~/.mplayer/subfont.ttf
This is already done:
$ sudo apt-get install ttf-bitstream-vera
Reading package lists... Done
Building dependency tree
Reading state information... Done
ttf-bitstream-vera is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
$ ln -sv /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf ~/.mplayer/subfont.ttf
create symbolic link `.../.mplayer/subfont.ttf' to `/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf'
ln: creating symbolic link `.../.mplayer/subfont.ttf' to `/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf': File exists
The other looks like an audio out problem. Have a look at what is available to you:
$ mplayer -ao help
Then try one of these. For example:
$ mplayer -ao oss <filename>
$ mplayer -ao esd <filename>
If this is a solution it can be written into a startup configuration file to make it the default audio output.
Please post back if this is a solution.
It's only gmplayer that has this problem. mplayer works fine without the GUI.
marin.r
February 5th, 2008, 04:51 AM
About the font problem in mplayer frontend - the font path is hardcoded in the configuration, so you should change it, I had this one too.
It's frontend config related, same as my issue described above.
sib217
February 5th, 2008, 03:58 PM
Does this work the same way for PS3? I have installed Ubuntu but couldn't get DVD's or Blu Ray's to play. I was hoping this would work on PS3. I think you need something like libdvdcss to play movies. I wasn't sure if these codes did the same thing.
Thanks!
andrew.46
February 5th, 2008, 05:37 PM
Hi,
I am not so sure that this guide will help you:
Does this work the same way for PS3? I have installed Ubuntu but couldn't get DVD's or Blu Ray's to play. I was hoping this would work on PS3. I think you need something like libdvdcss to play movies. I wasn't sure if these codes did the same thing.
Thanks!
There is room on these forums for a guide to Ubuntu on the PS3 but as yet I have not seen one. My experience with the PS3 I am afraid is absolutely zero.
As for dvds, mplayer will play dvds but it is probably not an ideal viewer for these. I would use vlc myself and I am sure there are others. But it is probably not a good idea to go through the toil of installing the subversion mplayer to simply watch a dvd. (And it definitely does not play Blu Ray (?) movies.
Sorry to be the bearer of bad news,
Andrew
mangurt
February 5th, 2008, 11:09 PM
Thanks for posting this guide, but I am having a problem with mplayer.
Attached is a screenshot of the error I get when I try to open a file.
What I am trying to do is open an file via right click, and then open with mplayer. No matter what file I try to open, I get this error.
Any help would be greatly appreciated.
andrew.46
February 5th, 2008, 11:57 PM
Hi,
Sorry to hear you are having a little trouble:
Thanks for posting this guide, but I am having a problem with mplayer.
Attached is a screenshot of the error I get when I try to open a file.
What I am trying to do is open an file via right click, and then open with mplayer. No matter what file I try to open, I get this error.
Any help would be greatly appreciated.
Does the file open with the command line player?
Andrew
mangurt
February 6th, 2008, 12:17 AM
Hmm....I am rather new to the whole mplayer thing, so I don't really know how to open the file via command line.
andrew.46
February 6th, 2008, 02:27 AM
Hi again!
No problems:
Hmm....I am rather new to the whole mplayer thing, so I don't really know how to open the file via command line.
But can I suggest something? If you are keen to open movie files on a right click the svn mplayer may not actually be what you really need. It will certainly do this but you might be better served by the program vlc:
$ sudo apt-get install vlc
Don't uninstall mplayer, the 2 programs can live together quite easily, and come back to mplayer in the near future. To test the command line with mplayer (if you are still keen) you would open a terminal and type:
$ mplayer <path-to-file> <filename>
This would simply confirm if mplayer is able to play this avi file.
Andrew
mangurt
February 6th, 2008, 07:17 AM
I really appreciate all the assistance.
I do use VLC, but I heard mplayer is absolutely incredible. VLC works very well, but I would still like to get mplayer working.
Here's what I got when I tried going the command route:
ed@ed-desktop:~$ mplayer /home/ed/Videos/Nip_Tuck - 5x11 - Kyle Ainge nip_tuck.avi
MPlayer dev-SVN-r25957-4.1.3 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3400+ (Family: 15, Model: 4, Stepping: 10)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
Playing /home/ed/Videos/Nip_Tuck.
File not found: '/home/ed/Videos/Nip_Tuck'
Failed to open /home/ed/Videos/Nip_Tuck.
Playing -.
Reading from stdin...
I don't know if I got this right or now. The major reason why I want to get mplayer working is I read on the v4l-dvb mailing list that mplayer is a geat way to use a tv tuner card to watch TV. I have a card that is finally working in linux, but I cannot seem to get a program up and running to watch tv.
Again, thanks for your help.
andrew.46
February 6th, 2008, 08:54 AM
Hi again,
My apologies, I did not realise your enthusiasm for the program:
I really appreciate all the assistance.
I do use VLC, but I heard mplayer is absolutely incredible. VLC works very well, but I would still like to get mplayer working..
Good news: I have managed to duplicate your problem! The problem is that your filenames have spaces in them, which to tell the truth is a minor Linux sin, and gmplayer does not understand them.
To test this make a copy of any of your files and rename it say from:
Nip and Tuck.avi
to
Nip_and_Tuck.avi
and I think it should work. I will be very pleased for you if this works!!
As regards the tv thing bear in mind that you will have to re-compile with the addition of some television -dev files. If you have compiled from my guide tv capture was not included.
Please let me know if this has been any help to you.
Andrew
mangurt
February 6th, 2008, 09:18 AM
Thanks for this information. I am currently at work (and away from my system), but I will try this when I get home tonight.
I used mplayer on my children's computer (I installed PSlinuxOS on their system because they needed something that really resembled windoze) and thought it was better than VLC. I have some problems with VLC playing .mkv files, but using mplayer on that system had no problem at all.
I will post my results when I get home.
andrew.46
February 6th, 2008, 05:34 PM
Hi,
A final thought:
Thanks for this information. I am currently at work (and away from my system), but I will try this when I get home tonight.
.
Of course the path should not have spaces either, perhaps transfer the files to your Desktop? (You can 'escape' the spaces as well, but not having them at all is the best answer).
Andrew
mangurt
February 6th, 2008, 06:56 PM
Whoo Hooo!!! Success! I can play the file via command!!!! Now I know that it works. If I could only get the GUI working.....and get mplayer to show the file in full screen...but it's working!!:guitar::guitar::guitar:
andrew.46
February 6th, 2008, 07:17 PM
Hi,
Congratulations:
Whoo Hooo!!! Success! I can play the file via command!!!! Now I know that it works. If I could only get the GUI working.....and get mplayer to show the file in full screen...but it's working!!:guitar::guitar::guitar:
What a feeling :-) The gmplayer is simply choking on the spaces in your path and filename, this should be easily fixed.
As for full screen, welcome to the commandline!! Imagine a file called test.avi on the Desktop:
$ cd Desktop
$ mplayer -fs test.avi
How easy is that? What about playing it in full screen, playing it 3 times, playing it at half speed, and scaling the sound to the same speed:
$ cd Desktop
$ mplayer -fs -loop 3 -speed .5 -af scaletempo test.avi
This is why the command line is king with mplayer.
Andrew
mangurt
February 6th, 2008, 08:49 PM
Hi,
Congratulations:
What a feeling :-) The gmplayer is simply choking on the spaces in your path and filename, this should be easily fixed.
As for full screen, welcome to the commandline!! Imagine a file called test.avi on the Desktop:
$ cd Desktop
$ mplayer -fs test.avi
How easy is that? What about playing it in full screen, playing it 3 times, playing it at half speed, and scaling the sound to the same speed:
$ cd Desktop
$ mplayer -fs -loop 3 -speed .5 -af scaletempo test.avi
This is why the command line is king with mplayer.
Andrew
Thanks for the assistance, but I am still not getting the entire avi to show in full screen, and that is what I would like to do. (See attached)
andrew.46
February 6th, 2008, 09:03 PM
Hi,
The answer is in fact in that screen capture:
Thanks for the assistance, but I am still not getting the entire avi to show in full screen, and that is what I would like to do. (See attached)
See the bit that says: VO : [x11] ? This means Video Output x11 which usually cannot go full screen. For some reason your default is probably x11. Run:
$ mplayer -vo help
and this will tell you what video output is available to you. xv should be available to you so run:
$ mplayer -vo xv -fs filename.avi
If all is well with this you can alter the defaults by creating the file ~/.mplayer/config and placing the following:
vo = xv
Andrew
rvm4000
February 6th, 2008, 09:04 PM
With x11 you have to use also -zoom (but for best performance use -vo xv).
mangurt
February 6th, 2008, 11:09 PM
Hmm...Ok, i did the mplayer -vo help and this is what I got
MPlayer dev-SVN-r25957-4.1.3 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3400+ (Family: 15, Model: 4, Stepping: 10)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
Available video output drivers:
x11 X11 ( XImage/Shm )
xover General X11 driver for overlay capable video output drivers
gl X11 (OpenGL)
gl2 X11 (OpenGL) - multiple textures version
sdl SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
fbdev Framebuffer Device
fbdev2 Framebuffer Device
v4l2 V4L2 MPEG Video Decoder Output
xvidix X11 (VIDIX)
cvidix console VIDIX
null Null video output
mpegpes Mpeg-PES to DVB card
yuv4mpeg yuv4mpeg output for mjpegtools
tga Targa output
pnm PPM/PGM/PGMYUV file
md5sum md5sum of each frame
I did not see the vo=xv, so with I typed in the file, I did not get any video :/
I know I am really, really close..
Again, thanks for all the hlep :)
rvm4000
February 7th, 2008, 05:47 AM
I think you need a development library (which name I don't remember right now) to compile mplayer with xv support.
Anyway, the -zoom option will allow the video to be resized when using x11. So mplayer -zoom -fs ... should display the video in fullscreen.
mangurt
February 7th, 2008, 06:49 AM
Sweet! I got the full screen with the -zoom function!!!
Thanks for all the help!
Time to sit back and watch some movies I have backed up :popcorn:
andrew.46
February 7th, 2008, 07:39 AM
Hi,
You live and learn, I have never heard of the zoom function:
Sweet! I got the full screen with the -zoom function!!!
Thanks for all the help!
Time to sit back and watch some movies I have backed up :popcorn:
You should really have access to xv through. To find the relevant dev file for your branch of Ubuntu you can try:
$ apt-cache search xv | grep dev
and download and install a likely candidate. Then run ./configure and see if you have picked up xv as a VO. When I run this command on Hardy I get:
andrew@ilium:~$ apt-cache search xv | grep dev
libmpeg4ip-dev - end-to-end system to explore streaming multimedia
libogmrip-dev - Application for ripping and encoding DVD - development files
libxvidcore4-dev - High quality ISO MPEG4 codec library -- development files
libwings-dev - Window Maker's own widget set
xviewg-dev - XView development tools
xvmount - Small graphical utility for mounting devices by users
libxcb-xv0-dev - X C Binding, xv extension, development files
libxcb-xvmc0-dev - X C Binding, xvmc extension, development files
libxv-dev - X11 Video extension library (development headers)
libxvmc-dev - X11 Video extension library (development headers)
libxxf86vm-dev - X11 XFree86 video mode extension library (development headers)
x11proto-video-dev - X11 Video extension wire protocol
and I would download libxv-dev. Thats how simple it all is :-)
Andrew
mangurt
February 7th, 2008, 04:57 PM
Hmmm....Ok, forgive me for my newness with linux, but how would I go about downloading what version I need?
sudo apt-get whatever?
Would I have to recompile then?
Just wondering..
Thanks again
andrew.46
February 7th, 2008, 05:40 PM
Hi again!
Hmmm....Ok, forgive me for my newness with linux, but how would I go about downloading what version I need?
sudo apt-get whatever?
Would I have to recompile then?
If the file was libxv-dev.you would:
$ sudo apt-get install libxv-dev
You would then change to the directory that holds the mplayer source files and update that and run ./configure:
$ cd $HOME/Desktop/mplayer
$ sudo make clean
$ svn update
$ ./configure --enable-gui --enable-menu
At the bottom of the output on the screen you will see a section something like this:
Enabled optional drivers:
Input: ftp pvr tv-teletext tv-v4l2 tv-v4l tv cddb cdda libdvdcss(internal) dvdread(internal) vcd dvb smb network
Codecs: x264 xvid libavcodec qtx real xanim win32 faad2 faac libmpeg2 liba52 mp3lib libtheora tremor(internal) libmad liblzo gif
Audio output: alsa esd arts oss sdl mpegpes(dvb)
Video output: sdl gif89a pnm jpeg png mpegpes(dvb) fbdev svga caca aa xvidix cvidix opengl dga xv x11 xover md5sum tga
Not neatly outlined in red of course, that is my own addition :-) If xv Video Out is there then run:
$ make
$ sudo make install
If not, hunt for another -dev file.
Andrew
mangurt
February 7th, 2008, 10:19 PM
Ok, some success...and some failure.
The success, I got the vo thing working. The failure, I have no audio. I had audio before, but now I don't, and the sad thing is I don't know what I did to lose the audio portion...
Any ideas?
andrew.46
February 7th, 2008, 10:39 PM
Hi,
I hope you are still having fun!
Ok, some success...and some failure.
The success, I got the vo thing working. The failure, I have no audio. I had audio before, but now I don't, and the sad thing is I don't know what I did to lose the audio portion...
Any ideas?
You can see the audio options available to you by running:
$ mplayer -ao help
and you should see a list similar to this:
Available audio output drivers:
oss OSS/ioctl audio output
alsa ALSA-0.9.x-1.x audio output
arts aRts audio output
esd EsounD audio output
sdl SDLlib audio output
mpegpes DVB audio output
null Null audio output
pcm RAW PCM/WAVE file writer audio output
and then you can test via the command line:
$ mplayer -ao alsa moviefile.avi
and if you desire you can make a new default by placing ao = oss in your $HOME/.mplayer/config file.
Andrew
mangurt
February 8th, 2008, 08:49 PM
This is what I got from doing mplayer -ao help
ed@ed-desktop:~$ mplayer -ao help
MPlayer dev-SVN-r25957-4.1.3 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3400+ (Family: 15, Model: 4, Stepping: 10)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
Available audio output drivers:
oss OSS/ioctl audio output
sdl SDLlib audio output
mpegpes DVB audio output
v4l2 V4L2 MPEG Audio Decoder output
null Null audio output
pcm RAW PCM/WAVE file writer audio output
ed@ed-desktop:~$
Still sorta lost on what to do now..
andrew.46
February 9th, 2008, 02:38 AM
Hi,
Are you sure that you are still having fun?
This is what I got from doing mplayer -ao help
ed@ed-desktop:~$ mplayer -ao help
MPlayer dev-SVN-r25957-4.1.3 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3400+ (Family: 15, Model: 4, Stepping: 10)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
Available audio output drivers:
oss OSS/ioctl audio output
sdl SDLlib audio output
mpegpes DVB audio output
v4l2 V4L2 MPEG Audio Decoder output
null Null audio output
pcm RAW PCM/WAVE file writer audio output
ed@ed-desktop:~$
Still sorta lost on what to do now..
Have you tried:
$ mplayer -ao oss movifile.avi
I am a bit at a loss to see that you do not have alsa and xv running and I hope it does not have something to do with the 64 bit athlon you seem to be running?
Andrew
mangurt
February 9th, 2008, 10:08 AM
Hi,
Are you sure that you are still having fun?
I am still having fun trying to get this to work :) Some people describe fun one way, I like to figure things out....
As for having an atholon 64, that should not make a difference....sound was working when I posted success before....
I tried the mplayer -ao oss moviefile.avi and I still got no sound. I know the file does work, because I tried the file with VLC and it was fine....
I am open for any other suggestions...
Thanks again.
andrew.46
February 9th, 2008, 11:15 AM
Hi again!
Well it all sounds a little odd:
I am open for any other suggestions...
Perhaps it is time to uninstall and reinstall the svn mplayer? Not the codecs and skins but the svn source code, there are some directions for upgrading the svn source on the revamped opening page, and then recompile. Make sure to run 'make clean' on the source first.
Andrew
penC
February 9th, 2008, 04:48 PM
Thanks for the guide. It worked like a charm with Gutsy.
BR,
penC
andrew.46
February 9th, 2008, 05:15 PM
Hi,
Thanks for your message:
Thanks for the guide. It worked like a charm with Gutsy.
BR,
enC
It is totally my pleasure, and I am very pleased to hear you had no problems :-)
Andrew
webbie180
February 13th, 2008, 05:21 AM
I am a gusty user. How do I get the channel list for sopcast and nslive in gmlive? Thanks.
andrew.46
February 13th, 2008, 06:12 PM
Hi again!
I have finally found the solution to this problem:
Thanks for posting this guide, but I am having a problem with mplayer.
What I am trying to do is open an file via right click, and then open with mplayer. No matter what file I try to open, I get this error.
Any help would be greatly appreciated.
It turns out to be a problem with the desktop settings for Gmplayer in combination with spaces in filenames. To resolve:
======================================
To Resolve "Cannot open file error" with Gmplayer
=====================================
There is a problem with Gmplayer at the moment that prevents it from playing movie files directly from Nautilus or from right click on the file itself. This occurs if there is a space in the filename or the path to the filename. There is an easy solution:
Press Alt-F2 and then:
$ gksudo gedit /usr/local/share/applications/mplayer.desktop
You will see a line that says:
Exec=gmplayer %U
Change this to:
Exec=gmplayer %F
or perhaps more correctly:
Exec=gmplayer
Save the changes and exit. All should be well now :-)
================================
Please tell me if this resolves the issue for you,
Andrew
andrew.46
February 17th, 2008, 07:35 PM
Hi,
For those who are interested I include the method for enabling dvd menus in the svn mplayer. This is not appearing in the main 'Howto' as the implementation of libdvdnav in mplayer is still in its very early stages and I am a little wary of offering support for such early beta efforts. Nevertheless the following works quite well on my system:
==================================
Emabling DVD Navigation in the svn Mplayer
==================================
1. Download and install libdvdread and libdvdcss
2.Download the svn libdvdnav source:
$ svn co svn://svn.mplayerhq.hu/dvdnav/trunk/libdvdnav libdvdnav
and compile / install it:
$ cd libdvdnav
$ ./autogen.sh
$ ./configure
$ make
$ make install
3. Add the following option when compiling the svn mplayer:
$ ./configure --disable-dvdread-internal
and compile as usual.
4. Add the following to ~/.mplayer/config:
mouse-movements=yes
5. Use the following to see the navigation menu for the movie:
$ mplayer dvdnav://
6. Navigation can be from the mouse or with the num pad keys:
(The following keys are only valid if you compiled with dvdnav
support: They are used to navigate the menus.)
keypad 8 Select button up.
keypad 2 Select button down.
keypad 4 Select button left.
keypad 6 Select button right.
keypad 5 Return to main menu.
keypad 7 Return to nearest menu (the order of preference is: chapter->title->root).
keypad ENTER Confirm choice.
And there you have it. When and if libdvdnav is better integrated with mplayer I will add it to the main 'Howto' section.
Andrew
andrew.46
February 17th, 2008, 07:38 PM
Hi,
I am afraid that I cannot help you with this:
I am a gusty user. How do I get the channel list for sopcast and nslive in gmlive? Thanks.
as I have absolutely no knowledge or experience of this. Anybody here who can help out?
Andrew
andrew.46
February 21st, 2008, 08:24 PM
Hi,
Again I publish a little 'add-on' to my 'Howto' this tims a few lines that describe how to add amr widwband and narrow band support for mplayer.
===============================================
'Howto' add amr support to your svn mplayer
===============================================
This mini 'howto' describes the method to add amr support to your svn mplayer installation and is written especially for the father of 'the laughing girl'.
1. amr narrow band:
$ cd $HOME/Desktop
$ wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.0.tar.bz2
$ tar xjvf amrnb-7.0.0.0.tar.bz2
$ cd amrnb-7.0.0.0
$ wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-700.zip
$ ./configure --enable-shared --disable-static
$ make
$ sudo make install
2. amr wide band:
$ cd $HOME/Desktop
$ wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.2.tar.bz2
$ tar xjvf amrwb-7.0.0.2.tar.bz2
$ cd amrwb-7.0.0.2
$ wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-700.zip
$ ./configure --enable-shared --disable-static
$ make
$ sudo make install
With both installed you now need to recompile the svn mplayer source code. Mplayer will automatically pick up the amr libraries and allow their use in Mplayer. Don't forget to run:
$ sudo make clean
before recompiling. And all the best to the father of 'the laughing girl'!!
Andrew
miguelitu
February 24th, 2008, 01:17 AM
hey, andrew, great work! im very thankful!
just tried your how-to to add the amr support, but got this error:
gmplayer: error while loading shared libraries: libamrnb.so.3: cannot open shared object file: No such file or directory
in the ./configure process, both amr were finded, and the file is ther at /usr/lib
any thoughts??
thanks!
andrew.46
February 24th, 2008, 02:01 AM
Hi,
Glad you liked the work!
just tried your how-to to add the amr support, but got this error:
gmplayer: error while loading shared libraries: libamrnb.so.3: cannot open shared object file: No such file or directory
in the ./configure process, both amr were finded, and the file is ther at /usr/lib
If the file is there but cannot be accessed you probably do not have a "shared library" installation, just make sure that you ran:
$ ./configure --enable-shared --disable-static
for both files. Can you run through the amr bit again ensuring this is the case? Possibly you caught a very early post of mine which omitted these directions, if so my apologies :-)
Andrew
miguelitu
February 24th, 2008, 12:14 PM
Yes, ive compiled just the way you described..
I added the --prefix=usr as described in this [URL="http://ubuntuforums.org/showthread.php?t=491885"]thread[/URL ] and now it works! strange...
but im having other trouble here. ive been using your guide to compile the svn, and were able to play some rmvb files pretty well, but recently i did a fresh install of ubuntu on my PC, compiled mplayer again and im getting this error when i try to play the same rmvb files:
Opening video decoder: [realvid] RealVideo decoder
Error: /usr/local/lib/codecs/drvc.so: wrong ELF class: ELFCLASS32
ERROR: Could not open required DirectShow codec drvc.so.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
ERROR: Could not open required DirectShow codec drvc.dll.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
Error: /usr/local/lib/codecs/drv4.so.6.0: wrong ELF class: ELFCLASS32
ERROR: Could not open required DirectShow codec drv4.so.6.0.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
ERROR: Could not open required DirectShow codec drv43260.dll.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Opening video decoder: [realvid] RealVideo decoder
Error: /usr/local/lib/codecs/drvc.bundle/Contents/MacOS/drvc: cannot open shared object file: No such file or directory
ERROR: Could not open required DirectShow codec drvc.bundle/Contents/MacOS/drvc.
Read the RealVideo section of the DOCS!
VDecoder init failed :(
Cannot find codec matching selected -vo and video format 0x30345652.
Read DOCS/HTML/en/codecs.html!
i cant figure out... all codecs are there, i even tried to download the realplayer ones from the codecs directory, but still getting nothing.
any clues?
thanks a lot.
andrew.46
February 24th, 2008, 05:29 PM
Hi,
Glad to hear that the amr codecs eventually worked out:
Yes, ive compiled just the way you described..
I added the --prefix=usr as described in this [URL="http://ubuntuforums.org/showthread.php?t=491885"]thread[/URL ] and now it works! strange...
Does not sound quite right but if it works .....
but im having other trouble here. ive been using your guide to compile the svn, and were able to play some rmvb files pretty well, but recently i did a fresh install of ubuntu on my PC, compiled mplayer again and im getting this error when i try to play the same rmvb files:
Opening video decoder: [realvid] RealVideo decoder
Error: /usr/local/lib/codecs/drvc.so: wrong ELF class: ELFCLASS32
ERROR: Could not open required DirectShow codec drvc.so.
Read the RealVideo section of the DOCS!
VDecoder init failed .......
Multiple codec errors. Hmmmm..... I have not seen this type of file before, do you have a copy that you could post online somewhere? I would be curious to see if my own copy of mplayer could play it.
Do you definitely have the full codec pack? The ones at:
http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2
Andrew
andrew.46
February 25th, 2008, 03:09 AM
Hi again:
i cant figure out... all codecs are there, i even tried to download the realplayer ones from the codecs directory, but still getting nothing.
You should have the following in your codecs directory:
andrew@ilium/usr/local/lib/codecs$ ls
AvidQTAVUICodec.qtx cook.so.6.0 l3codeca.acm rt32dcmp.dll vp31vfw.dll
BeHereiVideo.qtx ctadp32.acm l3codecx.ax scg726.acm vp4vfw.dll
CLRVIDDC.DLL ddnt.so.6.0 lhacm.acm sipr.so.6.0 vp5vfw.dll
CtWbJpg.DLL divx.dll lsvxdec.dll sp5x_32.dll vp6vfw.dll
DECVW_32.DLL divx_c32.ax m3jp2k32.dll tm20dec.ax vp7vfw.dll
LCMW2.dll divxa32.acm m3jpeg32.dll tokf.so.6.0 vssh264.dll
LCODCCMW2E.dll divxc32.dll m3jpegdec.ax tokr.so.6.0 vssh264core.dll
LCodcCMP.dll divxdec.ax mcdvd_32.dll tsccvid.dll vssh264dec.dll
QuickTime.qts dnet.so.6.0 mcmjpg32.dll tsd32.dll vsshdsd.dll
QuickTimeEssentials.qtx drv2.so.6.0 mi-sc4.acm tssoft32.acm vsslight.dll
QuickTimeInternetExtras.qtx drv3.so.6.0 mpg4c32.dll tvqdec.dll vsswlt.dll
README drv4.so.6.0 mpg4ds32.ax ubv263d+.ax wma9dmod.dll
VDODEC32.dll drvc.so msadp32.acm ubvmp4d.dll wmadmod.dll
ViVD2.dll dspr.so.6.0 msg711.acm ultimo.dll wmsdmod.dll
acelpdec.ax frapsvid.dll msgsm32.acm vdowave.drv wmspdmod.dll
alf2cd.acm huffyuv.dll msh261.drv vgpix32d.dll wmv8ds32.ax
aslcodec_dshow.dll i263_32.drv msms001.vwp vid_3ivX.xa wmv9dmod.dll
aslcodec_vfw.dll iac25_32.ax msnaudio.acm vid_cvid.xa wmvadvd.dll
asusasv2.dll iccvid.dll msrle32.dll vid_cyuv.xa wmvdmod.dll
asusasvd.dll icmw_32.dll msscds32.ax vid_h261.xa wmvds32.ax
ativcr2.dll imaadp32.acm msvidc32.dll vid_h263.xa wnvplay1.dll
atrac3.acm imc32.acm mvoiced.vwp vid_iv32.xa wnvwinx.dll
atrc.so.6.0 ir32_32.dll nsrt2432.acm vid_iv41.xa wvc1dmod.dll
avimszh.dll ir41_32.dll pclepim1.dll vid_iv50.xa xanlib.dll
avizlib.dll ir50_32.dll qdv.dll vivog723.acm zmbv.dll
clrviddd.dll ivvideo.dll qpeg32.dll vmnc.dll
cook.so jp2avi.dll qtmlClient.dll voxmsdec.ax
This represents the full codec pack: all-20071007.tar.bz2
Andrew
dotancohen
February 25th, 2008, 06:23 AM
This mini 'howto' describes the method to add amr support to your svn mplayer installation and is written especially for the father of 'the laughing girl'.
Thank you very much, Andrew. Yes, I am the happy father of 'the laughing girl' and I appreciate your guidance very much. The HowTo was not only easy to perform, but also explained why each step was necessary. That is great as it becomes a learning tool as well. I cannot thank you enough. Great job, and I'm off to Google more material of yours.
andrew.46
February 25th, 2008, 07:19 AM
Hi,
Good to hear from you again and I am very glad that the walkthrough worked for you:
Thank you very much, Andrew. Yes, I am the happy father of 'the laughing girl' and I appreciate your guidance very much. The HowTo was not only easy to perform, but also explained why each step was necessary. That is great as it becomes a learning tool as well. I cannot thank you enough. Great job, and I'm off to Google more material of yours.
I have my own 'laughing girl' as I mentioned before but young Hannah is my first grand-daughter. So when I heard your own girl laughing ...
Andrew
janfsd
March 1st, 2008, 05:50 PM
Nice guide. Btw, is anybody having problems with the latest svn in gutsy?
It compiles fine, mplayer runs ok, the only problem is with gmplayer. I get this error:
MPlayer dev-SVN-r26139-4.1.3 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (Family: 15, Model: 43, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
*** glibc detected *** gmplayer: malloc(): memory corruption (fast): 0x08b68c88 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb6becc42]
/lib/tls/i686/cmov/libc.so.6(__libc_malloc+0x90)[0xb6bedfc0]
/usr/lib/libglib-2.0.so.0(g_malloc+0x36)[0xb72a6af6]
/usr/lib/libglib-2.0.so.0(g_strdup+0x39)[0xb72bec19]
/usr/lib/libgobject-2.0.so.0(g_signal_newv+0x7b)[0xb734e9fb]
/usr/lib/libgobject-2.0.so.0(g_signal_new_valist+0x6c)[0xb734f5cc]
/usr/lib/libgobject-2.0.so.0(g_signal_new+0x7c)[0xb734f68c]
/usr/lib/libgtk-x11-2.0.so.0[0xb75a1fa2]
/usr/lib/libgobject-2.0.so.0(g_type_class_ref+0x381)[0xb735ad41]
/usr/lib/libgobject-2.0.so.0(g_object_newv+0x98a)[0xb734129a]
/usr/lib/libgobject-2.0.so.0(g_object_new_valist+0x21f)[0xb734178f]
/usr/lib/libgobject-2.0.so.0(g_object_new+0x40)[0xb7341940]
/usr/lib/libgtk-x11-2.0.so.0(gtk_accel_group_new+0x27)[0xb75a1ed7]
gmplayer(create_MessageBox+0xc)[0x813fb0c]
======= Memory map: ========
08048000-08929000 r-xp 00000000 08:13 683681 /usr/local/bin/mplayer
08929000-0894d000 rw-p 008e0000 08:13 683681 /usr/local/bin/mplayer
0894d000-08b8d000 rw-p 0894d000 00:00 0 [heap]
b59a0000-b5b7b000 rw-p b59a0000 00:00 0
b5c00000-b5c21000 rw-p b5c00000 00:00 0
b5c21000-b5d00000 ---p b5c21000 00:00 0
b5d8f000-b5dbd000 rw-p b5d8f000 00:00 0
b5dfc000-b5e5c000 rw-s 00000000 00:09 145784847 /SYSV00000000 (deleted)
b5e5c000-b5e65000 r-xp 00000000 08:13 1105449 /lib/tls/i686/cmov/libnss_files-2.6.1.so
b5e65000-b5e67000 rw-p 00008000 08:13 1105449 /lib/tls/i686/cmov/libnss_files-2.6.1.so
b5e67000-b5e6f000 r-xp 00000000 08:13 1105451 /lib/tls/i686/cmov/libnss_nis-2.6.1.so
b5e6f000-b5e71000 rw-p 00007000 08:13 1105451 /lib/tls/i686/cmov/libnss_nis-2.6.1.so
b5e71000-b5e78000 r-xp 00000000 08:13 1105447 /lib/tls/i686/cmov/libnss_compat-2.6.1.so
b5e78000-b5e7a000 rw-p 00006000 08:13 1105447 /lib/tls/i686/cmov/libnss_compat-2.6.1.so
b5e7e000-b5e84000 r-xp 00000000 08:13 715691 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
b5e84000-b5e85000 rw-p 00005000 08:13 715691 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
b5e85000-b5e97000 r-xp 00000000 08:13 716248 /usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so
b5e97000-b5e98000 rw-p 00012000 08:13 716248 /usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so
b5e98000-b5e99000 rw-p b5e98000 00:00 0
b5e99000-b5ea0000 r--s 00000000 08:13 683312 /usr/lib/gconv/gconv-modules.cache
b5ea0000-b5edf000 r--p 00000000 08:13 716459 /usr/lib/locale/en_US.utf8/LC_CTYPE
b5edf000-b5f3e000 rw-p b5edf000 00:00 0
b5f3e000-b5f53000 r-xp 00000000 08:13 651532 /usr/lib/libICE.so.6.3.0
b5f53000-b5f55000 rw-p 00014000 08:13 651532 /usr/lib/libICE.so.6.3.0
b5f55000-b5f57000 rw-p b5f55000 00:00 0
b5f57000-b5f5e000 r-xp 00000000 08:13 651550 /usr/lib/libSM.so.6.0.0
b5f5e000-b5f5f000 rw-p 00006000 08:13 651550 /usr/lib/libSM.so.6.0.0
b5f5f000-b5f7d000 r-xp 00000000 08:13 651762 /usr/lib/libexpat.so.1.0.0
b5f7d000-b5f7f000 rw-p 0001e000 08:13 651762 /usr/lib/libexpat.so.1.0.0
b5f7f000-b5fac000 r-xp 00000000 08:13 653551 /usr/lib/libpangoft2-1.0.so.0.1800.3
b5fac000-b5fad000 rw-p 0002c000 08:13 653551 /usr/lib/libpangoft2-1.0.so.0.1800.3
b5fad000-b5fae000 rw-p b5fad000 00:00 0
b5fae000-b6053000 r-xp 00000000 08:13 660209 /usr/lib/libmp4v2.so.0.0.0
b6053000-b6058000 rw-p 000a4000 08:13 660209 /usr/lib/libmp4v2.so.0.0.0
b6058000-b60a5000 r-xp 00000000 08:13 651601 /usr/lib/libXt.so.6.0.0
b60a5000-b60a9000 rw-p 0004c000 08:13 651601 /usr/lib/libXt.so.6.0.0
b60a9000-b60be000 r-xp 00000000 08:13 661075 /usr/lib/libaudio.so.2.4
b60be000-b60bf000 rw-p 00014000 08:13 661075 /usr/lib/libaudio.so.2.4
b60bf000-b60c6000 r-xp 00000000 08:13 1105456 /lib/tls/i686/cmov/librt-2.6.1.so
b60c6000-b60c8000 rw-p 00006000 08:13 1105456 /lib/tls/i686/cmov/librt-2.6.1.so
b60c8000-b60cc000 r-xp 00000000 08:13 651966 /usr/lib/libgthread-2.0.so.0.1400.1
b60cc000-b60cd000 rw-p 00003000 08:13 651966 /usr/lib/libgthread-2.0.so.0.1400.1
b60cd000-b60ce000 rw-p b60cd000 00:00 0
b60ce000-b60d3000 r-xp 00000000 08:13 661073 /usr/lib/libartsc.so.0.0.0
b60d3000-b60d4000 rw-p 00004000 08:13 661073 /usr/lib/libartsc.so.0.0.0
b60d4000-b60d9000 r-xp 00000000 08:13 651918 /usr/lib/libgpm.so.1.19.6
b60d9000-b60da000 rw-p 00004000 08:13 651918 /usr/lib/libgpm.so.1.19.6
b60da000-b60e2000 r-xp 00000000 08:13 652286 /usr/li
I tried several options and tried several times, and always the same thing. It isn't only the last one, before it I got the same problem.
andrew.46
March 2nd, 2008, 05:47 AM
Hi,
Sorry to hear you are having trouble:
Nice guide. Btw, is anybody having problems with the latest svn in gutsy?
It compiles fine, mplayer runs ok, the only problem is with gmplayer. I get this error:
[code]MPlayer dev-SVN-r26139-4.1.3 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (Family: 15, Model: 43, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
*** glibc detected *** gmplayer: malloc(): memory corruption (fast): .
I can suggest a few things:
1. Post all of these details to mplayer-users and see if this is actually an mplayer problem.
2. While hopefully waiting for an answer from the mplayer users try backtracking to a 'safe' version. Revision 26096 is working fine for me:
$ svn checkout -r 26096 svn://svn.mplayerhq.hu/mplayer/trunk mplayer
or perhaps go back a little further?
3. Have a trawl through: http://svn.mplayerhq.hu/mplayer?view=rev and look for any evidence :-)
Hopefully the issue will be resolved with a combination of the above 3?
Andrew
janfsd
March 2nd, 2008, 09:17 AM
Thanks for the answer. But the problem is still on that revision. I am trying now to rollback serveral revision and to check. However I have a question do you use that revision on gutsy?
Btw, it seems I am not the only one with this problem:
http://forum.ubuntu.org.cn/viewtopic.php?p=642172&sid=fdbdae599fb0d2d348fd2c3b2209a421
EDIT: Tried several revisions, but the problem persists, I just posted the issue in the mailing list.
EDIT: after debugging, I found out the problem, it was a skin problem, and after checking several skins, it seems that with some of them it crashes. Well this happened with the skin 'Ater'. The problem was with the pos.png file of the skin, by replacing it with other, the skin works.
andrew.46
March 2nd, 2008, 05:30 PM
Hi,
Glad to see that you have found the problem:
Thanks for the answer. But the problem is still on that revision. I am trying now to rollback serveral revision and to check. However I have a question do you use that revision on gutsy?
In fact you have caught me out there :-) That is the revision I use on my Slackware partition, my apologies. The version I have on my Hardy Heron partition turns out to be a little older: MPlayer dev-SVN-r25959-4.2.3 and this version does not have the error that you are experiencing.
Btw, it seems I am not the only one with this problem:
http://forum.ubuntu.org.cn/viewtopic.php?p=642172&sid=fdbdae599fb0d2d348fd2c3b2209a421
Now that is a bit scary! I had no idea that my guide had such a wide audience!
EDIT: Tried several revisions, but the problem persists, I just posted the issue in the mailing list.
Yes I saw that and hopefully a suitably skilled person will have a look at the problem. The mplayers-users people as you may know get a little irascible at times and I believe sometimes view the gui mplayer as an inconvenience. BTW when you said that the error generated a report automagically have you used:
--enable-debug=3 \
--enable-crash-debug
in your compile options? This is something I have meant to use myself but have never really done :-)
EDIT: after debugging, I found out the problem, it was a skin problem, and after checking several skins, it seems that with some of them it crashes. Well this happened with the skin 'Ater'. The problem was with the pos.png file of the skin, by replacing it with other, the skin works.
Fascinating. So either a problem with the skins or with mplayer's handling of the skins or both. Did you find a skin that needed no alteration? I will alter the skin I have put in the guide until the svn version addresses the problem.
All the best,
Andrew
janfsd
March 2nd, 2008, 09:00 PM
In fact you have caught me out there :-) That is the revision I use on my Slackware partition, my apologies. The version I have on my Hardy Heron partition turns out to be a little older: MPlayer dev-SVN-r25959-4.2.3 and this version does not have the error that you are experiencing.
Well, at that time I was trying to see if it was a system specific issue, or some library problem. I spent a lot of time compiling several svn until I use the debugger and it was pointing to the file pos.png in particular. So I changed the skin and it worked :)
Yes I saw that and hopefully a suitably skilled person will have a look at the problem. The mplayers-users people as you may know get a little irascible at times and I believe sometimes view the gui mplayer as an inconvenience.
Probably, but somebody already replied in the mailing list :D
BTW when you said that the error generated a report automagically have you used:
--enable-debug=3 \
--enable-crash-debug
in your compile options? This is something I have meant to use myself but have never really done :-)
No, I didn't use that. The bt and the memory map where geneterated automatically in the output.
Fascinating. So either a problem with the skins or with mplayer's handling of the skins or both. Did you find a skin that needed no alteration? I will alter the skin I have put in the guide until the svn version addresses the problem.
The skin in your guide is ok, it doesn't need to be changed. The skins affected that I know are: Ater, Terminator3 and Bluecurve. With each one, it crashes differently. For instance, for the skin Ater, the crash its caused because of pos.png (I think some transparencies problem) For the other, maybe the same file, however I didn't check.
Again, nice guide, I hope you keep maintaining it, unlike the other mplayer guides that are too old... And thanks for your help.
mangurt
March 3rd, 2008, 10:57 AM
Great thread Andrew!!
I finally have mplayer up and running, but I would like to tackle another part of this player.
I would like to be able to watch TV via mplayer. I have a card that works via drivers from v4l-dvb, and the card works with TVviewer, but this program only works with analog, and I would like to view digital streams. Looking at the mplayer page, it states that I need to create a channel file, but I am completely clueless on how to do this.
Does anyone use mplayer to watch TV? Any help would be greatly appreciated!
andrew.46
March 6th, 2008, 05:48 AM
Hi,
Woooooooooooooo hoooooooooooooooooooooo!!!!!!!
Can someone congratulate me? I have managed to write a patch (http://svn.mplayerhq.hu/mplayer?view=rev&revision=26181) that has been included in the svn mplayer source code!!!!!!!!!
It actually really only has relevance to my other distro but I am incredibly excited to see my work in such a great program.
Woooooooooooooo hoooooooooooooooooooooo!!!!!!!
Andrew
shirilover
March 6th, 2008, 08:40 AM
Great thread Andrew!!
Does anyone use mplayer to watch TV? Any help would be greatly appreciated!
I don't have a TV tuner, but have you tried using the -tvscan autostart switch from the command line. It should output a list of values to be used with -tv channels=. You may also want to try -tv chanlist=.
Then, to watch TV, use mplayer tv://<channel num>
janfsd
March 6th, 2008, 06:14 PM
Hi,
Woooooooooooooo hoooooooooooooooooooooo!!!!!!!
Can someone congratulate me? I have managed to write a patch (http://svn.mplayerhq.hu/mplayer?view=rev&revision=26181) that has been included in the svn mplayer source code!!!!!!!!!
It actually really only has relevance to my other distro but I am incredibly excited to see my work in such a great program.
Woooooooooooooo hoooooooooooooooooooooo!!!!!!!
Andrew
Nice to hear that, congratulations. ;)
mangurt
March 7th, 2008, 02:52 PM
I don't have a TV tuner, but have you tried using the -tvscan autostart switch from the command line. It should output a list of values to be used with -tv channels=. You may also want to try -tv chanlist=.
Then, to watch TV, use mplayer tv://<channel num>
No, I have not tried that yet! Great suggestion!! I will try that when I get home tonight!
andrew.46
March 8th, 2008, 02:44 AM
Hi,
Am I the only one who cannot changer chapters while playing a DVD using gmplayer? This is with MPlayer dev-SVN-r26196-4.1.2 but with mplayer for at least the last 100 revision numbers.
The program will generate a segmentation fault and crash on my system. I would be interested to hear if anyone can narrow down the actual revision that caused the damage.
Andrew
SoulSmasher
March 9th, 2008, 08:57 AM
is there any way i can use ffmpeg (preferly compiling from source or svn) with this? i compiled with guide at wiki, but i can't see in filters..(only xv, gl gl2 etc...) i wanna watch .mkv HD movies which are encoded with x264. xv works ok if you don't make a resize but with resize, it sucks.. and gl's performance is soo bad :(
i used to use ffdshow in windows and it all was fine
how can i use it with mplayer, do i have to add something while compiling?
thanks for any advices :)
andrew.46
March 9th, 2008, 07:44 PM
Hi:
is there any way i can use ffmpeg (preferly compiling from source or svn) with this? i compiled with guide at wiki, but i can't see in filters..(only xv, gl gl2 etc...) i wanna watch .mkv HD movies which are encoded with x264. xv works ok if you don't make a resize but with resize, it sucks.. and gl's performance is soo bad :(
i used to use ffdshow in windows and it all was fine
how can i use it with mplayer, do i have to add something while compiling?
thanks for any advices :)
I have hopefullyanswered your query in reasonable detail here:
http://ubuntuforums.org/showpost.php?p=4485020&postcount=8
in another thread.
Andrew
fnx.lv
March 21st, 2008, 07:39 AM
I just want to thank your for this post/tutorial. I have been using this guide every single time I reinstall ubuntu and it never fails. Makes linux life a whole lot easier. Thank you!
andrew.46
March 21st, 2008, 11:21 AM
Hi,
Thanks for your kind message:
I just want to thank your for this post/tutorial. I have been using this guide every single time I reinstall ubuntu and it never fails. Makes linux life a whole lot easier. Thank you!
I am very glad this guide has been useful to you. I have drifted a little away from Ubuntu lately and will probably not update the guide past Hardy Heron but it still gives me a warm feeling to see the viewing numbers climbing steadily :-)
Andrew
andrew.46
March 31st, 2008, 06:08 PM
Hi,
It has been a while since this post, but there is some good news:
Thanks for posting this guide, but I am having a problem with mplayer. [...] What I am trying to do is open an file via right click, and then open with mplayer. No matter what file I try to open, I get this error.
Any help would be greatly appreciated.
This problem has finally been resolved in the current svn of mplayer. I take more than a little pride in fact that it is my patch (http://svn.mplayerhq.hu/mplayer?view=rev&revision=26306) that has made the change.
All the best,
Andrew
xfroggy
April 13th, 2008, 02:07 AM
Hi guys. Anyone could give me a hint, since I'm running out of ideas on my own. After a few times of recompiling, I don't get 'gmplayer' only mplayer. I already tried w/ --enable-gui, --enable-gui --enable-menu, probably few other combinations as well, but somehow it never compiles gmplayer.
andrew.46
April 13th, 2008, 02:22 AM
Hi,
Sorry to hear you are having some trouble:
Hi guys. Anyone could give me a hint, since I'm running out of ideas on my own. After a few times of recompiling, I don't get 'gmplayer' only mplayer. I already tried w/ --enable-gui, --enable-gui --enable-menu, probably few other combinations as well, but somehow it never compiles gmplayer.
Can you post the screen of information that appears after:
$ ./configure --enable-gui
You probably should be aware as well that the gmplayer is not the greatest gui ever seen and debate rages periodically amongst the mplayer devs about whether to abandon it or not. But we should be able to get it running anyway :-)
Andrew
xfroggy
April 13th, 2008, 08:59 AM
here's the output: http://paste2.org/p/20381
You probably should be aware as well that the gmplayer is not the greatest gui ever seen and debate rages periodically amongst the mplayer devs about whether to abandon it or not. But we should be able to get it running anyway
Yea, its far from greatest, but every linux player is missing that *something*, so I usually end up switching between totem, mplayer, and xine depending on the task. If people would stop using those crippled wmv files, than totem would be great. :-k
andrew.46
April 13th, 2008, 09:56 AM
Hi,
Very odd:
here's the output: http://paste2.org/p/20381
This seems to indicate you have correctly enabled the gui with the required X11 libraries in place. Do you get an error message when you press Alt-F2 and type in 'gmplayer' ?(without the '' of course).
Andrew
xfroggy
April 13th, 2008, 10:49 AM
ha I got used to it. If anything to go wrong, I'm always the first in line lol
yea I get an error w/ alt+f2
Could not open location 'file:///gmplayer'
The location or file could not be found.
xfroggy@brokenb0x:~/mplayer$ gmplayer
bash: /usr/bin/gmplayer: No such file or directory
lol I always end up being a minority w/ my errors :)
janfsd
April 13th, 2008, 03:12 PM
Try to run gmplayer from the source and see the output. I suppose you need to create a symlink before, in the folder of the source do::
ln -s mplayer gmplayer
./gmplayer
xfroggy
April 13th, 2008, 04:56 PM
thanks for the help! Yea making symlink 'gmplayer' worked, had to found out the hard way as i didn't see it mention nowhere :S
Funny though because in DOCS it says I have to execute the binary 'gmplayer' lol...
You can build it by specifying --enable-gui during ./configure. Then, to turn on GUI mode, you have to execute the gmplayer binary.
janfsd
April 13th, 2008, 05:07 PM
I suppose that one of the latest svn got something wrong with creating the symlink. That's why it didn't work. Btw, I can suggest Smplayer, I think it's the greatest gui for mplayer.
xfroggy
April 13th, 2008, 09:43 PM
wow I can't believe I didn't came across SMplayer till now! It's pretty much everything I been looking so far. thanx guys for the help :D
SoulSmasher
April 26th, 2008, 08:06 PM
works perfect on hardy, as gutsy :) thanks again for the great guide
ps: yep, up to me, smplayer is the best mplayer gui so far
andrew.46
April 26th, 2008, 09:45 PM
Hi:
works perfect on hardy, as gutsy :) thanks again for the great guide
Thanks for that! I have invested a huge amount of time in this guide but I am glad that it seems to have provided a lot of people with acces to a program that can be a little to compile under most linux distros.
I have not personally tried smplayer but I think the time has almost come to abandon gmplayer on my personal setup and smplayer is getting all the publicity...
Andrew
janfsd
April 28th, 2008, 08:17 AM
Maybe you could add, howto install mplayer plugin for firefox. I prefer it more than the totem one. And even better is the gecko-mplayer plugin, it is by the same author and unlike the mplayer-plugin it is actively developed. The catch is that you need to install with it gnome-mplayer. But it works great, it opens everything in the browser.
andrew.46
May 7th, 2008, 12:25 AM
================================================== ====
Howto: Compile the svn mplayer against the latest x264
================================================== ====
A little bit extra for this svn mplayer guide if anyone is interested? If you wish to compile mplayer against the very latest release of x264 to optimise encoding you will need to follow these steps before compiling the svn mplayer:
First download a few utilities that may or may not already be on your system:
$ sudo apt-get install build-essential xmlto git-core gpac libgpac-dev libgpac0.4.4
Next download and compile the assembler required for optimal x264 compilation. I could not get x264 to recognise the repository offerings in any shape or form so I suggest that you compile your own as I did:
$ cd $HOME
$ wget http://www.tortall.net/projects/yasm/releases/yasm-0.7.0.tar.gz
$ tar xvf yasm-0.7.0.tar.gz
$ cd yasm-0.7.0
$ make
$ sudo make install
$ make clean
Next to download the x264 source code from the videolan git repository, the svn repository now being only a memory. First uninstall the repository x264 dev file that was used previously when compiling the svn mplayer and then download, compile and install the x264 source code:
$ cd $HOME
$ sudo apt-get remove libx264-dev
$ git clone git://git.videolan.org/x264.git
$ cd x264
$ ./configure --enable-shared --enable-pthread --enable-mp4-output
$ make
$ sudo make install
$ make clean
And finally compile the svn mplayer as before and the new x264 libraries should be picked up automagically. How easy is that! I would suggest the following steps as well so that when you wish to update x264 it can be done very simply. First set up an alias:
$ git config --global alias.up "pull --rebase"
and then you can update from the x264 directory as follows:
$ git up
Further details about how to manipulate the videolan git repository can be found at: http://wiki.videolan.org/Git
Don't forget that x264 can be used as standalone program as well. Simply run x264 --help to see the options available. And remember: Have Fun!
Andrew
unlotto
May 8th, 2008, 01:18 PM
================================================== ====
Howto: Compile the svn mplayer against the latest x264
================================================== ====
Andrew
Hey there Andrew. I haven't read all pages of this forum post, so I don't know if it has been mentioned before. I'd like to add that x264 is a library for encoding h264 (http://en.wikipedia.org/wiki/X264), and so has no effect on the decoding performance (playback) of, for example, 1080p mkv files with h264 video.
Maybe it would be a good idea to mention this in your #1 post or the x264 post.
Just to add, the codec responsible for decoding of h264 in mplayer is from ffmpeg. It's called ffh264.
Before I go too much off topic I just want to mention; if people are after a performance increase of said codec, I would suggest trying playback with mplayer -lavdopts fast:threads=2 (if dual core). If the machine just can't playback smoothly one need to look at mplayer + coreavc, which I wrote briefly about here (http://www.utilitybox.org/mplayer_h264_linux.php) in case someone is interested. It is not a howto.
gillza
May 11th, 2008, 08:00 PM
Hi all,
I have compiled and installed mplayer+gui twice using this guide before. Both times successfully. Today while installing I got a little snag. After installation, tried to run gmplayer and got:
The program 'gmplayer' is currently not installed.
It looks like gmplayer is not created during "make" (or i might be wrong). Tried searching for gmplayer and found only a header file.
--enable-gui was specified during configuration. I wonder if anyone encountered the same problem and how you solved it?
Thank you.
andrew.46
May 11th, 2008, 09:43 PM
Hi,
Glad this guide has been useful to you. It scares me a little that it has now hit 30,000 views :). I still wonder if I will get a free Ubuntu T-shirt at this number?
You have encountered the turbulence that is surrounding the svn mplayer with some substantial reworking of the config / makefile setup:
I have compiled and installed mplayer+gui twice using this guide before. Both times successfully. Today while installing I got a little snag. After installation, tried to run gmplayer and got:
The program 'gmplayer' is currently not installed.
It looks like gmplayer is not created during "make" (or i might be wrong). Tried searching for gmplayer and found only a header file.
--enable-gui was specified during configuration. I wonder if anyone encountered the same problem and how you solved it?
I will admit to not having installed the gmplayer for a while but I can certainly confirm the problem you have experienced when I compiled with this enabled. The easiest way to enable gmplayer at the moment seems to be to add the line "sudo make install-gui" after the usual install. So:
$ cd $HOME/Desktop/mplayer
$ ./configure --enable-gui --enable-menu
$ make
$ sudo make install
$ sudo make install-gui
$ sudo make clean
and this certainly worked on my own system. I have not added this to the walkthrough as I am not sure if this a temporary glitch or a permanent change. I have queried mplayer-users on this issue at:
http://lists.mplayerhq.hu/pipermail/mplayer-users/2008-May/073015.html
Andrew
gillza
May 11th, 2008, 10:34 PM
Hi,
Glad this guide has been useful to you. It scares me a little that it has now hit 30,000 views :). I still wonder if I will get a free Ubuntu T-shirt at this number?
I think you definitely deserve a t-shirt!!! Not only for this howto but for your prompt responses as well!
$ cd $HOME/Desktop/mplayer
$ ./configure --enable-gui --enable-menu
$ make
$ sudo make install
$ sudo make install-gui
$ sudo make clean
This has worked!!! Thank you very much!
I have not added this to the walkthrough as I am not sure if this a temporary glitch or a permanent change. I have queried mplayer-users on this issue at:
http://lists.mplayerhq.hu/pipermail/mplayer-users/2008-May/073015.html
Andrew
Let's hope that this is just a temporary problem. I wonder though, how did you find out about make install-gui I have searched and not found anything about it... i wonder if i missed it somehow..
Anyway, thank you very much! I'm off to enjoy freshly downloaded anime watching it through mplayer :))
andrew.46
May 11th, 2008, 11:13 PM
I think you definitely deserve a t-shirt!!! Not only for this howto but for your prompt responses as well!
I was only kidding about the T-shirt of course, I get a huge amount of enjoyment out of this walkthrough and tinkering with mplayer.
Let's hope that this is just a temporary problem. I wonder though, how did you find out about make install-gui I have searched and not found anything about it... i wonder if i missed it somehow..
I found the solution on the mplayer-users list by searching their archives:
http://archives.free.net.ph/list/mplayer-users.en.html
Usually if there is a problem in the current svn their will be a discussion there and this is true in this case. Unfortunately things move a little slowly with the gui as there is a lack of enthusiasm for its development so we will see if it will be rectified. The problem is in the makefile I suspect and this could be easily patched but that makefile is huge ...
But good news that it is all running again for you!
Andrew
andrew.46
May 12th, 2008, 05:40 AM
Well it may be very temporary as it turns out:
Let's hope that this is just a temporary problem.
I spent some time looking at the makefile where there had been an obvious blockage and I believe I have found the error. Line 641 reads:
INSTALL_TARGETS-$(GUI) += install-gui
while it should actually be:
INSTALL_TARGETS-$(GUI_GTK) += install-gui
I have submitted a patch (http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2008-May/057424.html) and with any luck it will be applied, the problem will be fixed and the glory will be mine :-)
Index: Makefile
================================================== =================
--- Makefile (revision 26746)
+++ Makefile (working copy)
@@ -638,7 +638,7 @@
INSTALL_TARGETS-$(MPLAYER) += install-mplayer install-mplayer-man
INSTALL_TARGETS-$(MENCODER) += install-mencoder install-mplayer-man
-INSTALL_TARGETS-$(GUI) += install-gui
+INSTALL_TARGETS-$(GUI_GTK) += install-gui
INSTALL_TARGETS += $(INSTALL_TARGETS-yes)
DIRS = . \
Looks like this error occurred in Revision 26398 on April 11th where this change was overlooked.
Andrew
andrew.46
May 13th, 2008, 06:14 AM
Hi again!
Time to congratulate me:
Let's hope that this is just a temporary problem.
My patch has been applied and the problem rectified:
http://svn.mplayerhq.hu/mplayer?view=rev&revision=26754
Woooooooooo hooooooooooooooooo!!!!!
Andrew
12barz
May 13th, 2008, 11:04 PM
Couldn't resist doing it, even though a Noob. Thanks. Now for the Noob question. Do I need to leave all the files on my desktop? Obviously the tar's can be deleted. Anything else? Would it hurt to move whatever must remain? Where do people usually keep them?
andrew.46
May 14th, 2008, 12:50 AM
Hope it all worked well?
Couldn't resist doing it, even though a Noob. Thanks. Now for the Noob question. Do I need to leave all the files on my desktop? Obviously the tar's can be deleted. Anything else? Would it hurt to move whatever must remain? Where do people usually keep them?
This is a housekeeping issue really. I keep all my downloaded source code in subdirectories under $HOME/source. The svn mplayer source code is special too as you can navigate to its directory and update all the code by running:
$ svn update
Different people will do this in different ways I guess. The choice I made to base everything on the Desktop was arbitrary.
Andrew
SilverSword
May 18th, 2008, 11:19 AM
Hi,
not sure if this has been posted before, but:
I've compiled it and it all runs and opens, but before video playback, I get:
ERROR: Could not open required DirectShow codec drvc.dll
DirectShow in Ubuntu? :S
and after playback, I get:
Fatal error: MPlayer interrupted by signal 11 in module: decode video
Fatal error: Mplayer has crashed by bad usage of CPU/FPU/RAM. Recompile MPlayer with --enable-debug and make 'gdb' backtrace and dissassembly. Details in DOCS/html/en/bugreports_what.html#bugreports_crash.
Then I get an 'Mplayer Crashed' message.
Any idea of what I didn't do or what I did wrong?
Thanks.
andrew.46
May 18th, 2008, 06:15 PM
Hi,
Sorry to hear that you are having trouble:
I've compiled it and it all runs and opens, but before video playback, I get:
ERROR: Could not open required DirectShow codec drvc.dll
DirectShow in Ubuntu? :S
Can you confirm that you have all the codecs in place as follows:
andrew@ilium/usr/local/lib/codecs$ ls
AvidQTAVUICodec.qtx cook.so.6.0 l3codeca.acm rt32dcmp.dll vp31vfw.dll
BeHereiVideo.qtx ctadp32.acm l3codecx.ax scg726.acm vp4vfw.dll
CLRVIDDC.DLL ddnt.so.6.0 lhacm.acm sipr.so.6.0 vp5vfw.dll
CtWbJpg.DLL divx.dll lsvxdec.dll sp5x_32.dll vp6vfw.dll
DECVW_32.DLL divx_c32.ax m3jp2k32.dll tm20dec.ax vp7vfw.dll
LCMW2.dll divxa32.acm m3jpeg32.dll tokf.so.6.0 vssh264.dll
LCODCCMW2E.dll divxc32.dll m3jpegdec.ax tokr.so.6.0 vssh264core.dll
LCodcCMP.dll divxdec.ax mcdvd_32.dll tsccvid.dll vssh264dec.dll
QuickTime.qts dnet.so.6.0 mcmjpg32.dll tsd32.dll vsshdsd.dll
QuickTimeEssentials.qtx drv2.so.6.0 mi-sc4.acm tssoft32.acm vsslight.dll
QuickTimeInternetExtras.qtx drv3.so.6.0 mpg4c32.dll tvqdec.dll vsswlt.dll
README drv4.so.6.0 mpg4ds32.ax ubv263d+.ax wma9dmod.dll
VDODEC32.dll drvc.so msadp32.acm ubvmp4d.dll wmadmod.dll
ViVD2.dll dspr.so.6.0 msg711.acm ultimo.dll wmsdmod.dll
acelpdec.ax frapsvid.dll msgsm32.acm vdowave.drv wmspdmod.dll
alf2cd.acm huffyuv.dll msh261.drv vgpix32d.dll wmv8ds32.ax
aslcodec_dshow.dll i263_32.drv msms001.vwp vid_3ivX.xa wmv9dmod.dll
aslcodec_vfw.dll iac25_32.ax msnaudio.acm vid_cvid.xa wmvadvd.dll
asusasv2.dll iccvid.dll msrle32.dll vid_cyuv.xa wmvdmod.dll
asusasvd.dll icmw_32.dll msscds32.ax vid_h261.xa wmvds32.ax
ativcr2.dll imaadp32.acm msvidc32.dll vid_h263.xa wnvplay1.dll
atrac3.acm imc32.acm mvoiced.vwp vid_iv32.xa wnvwinx.dll
atrc.so.6.0 ir32_32.dll nsrt2432.acm vid_iv41.xa wvc1dmod.dll
avimszh.dll ir41_32.dll pclepim1.dll vid_iv50.xa xanlib.dll
avizlib.dll ir50_32.dll qdv.dll vivog723.acm zmbv.dll
clrviddd.dll ivvideo.dll qpeg32.dll vmnc.dll
cook.so jp2avi.dll qtmlClient.dll voxmsdec.ax
Andrew
SilverSword
May 19th, 2008, 03:07 AM
acelpdec.ax l3codeca.acm ubv263d+.ax
alf2cd.acm l3codecx.ax ubvmp4d.dll
aslcodec_dshow.dll LCMW2.dll ultimo.dll
aslcodec_vfw.dll LCodcCMP.dll VDODEC32.dll
asusasv2.dll LCODCCMW2E.dll vdowave.drv
asusasvd.dll lhacm.acm vgpix32d.dll
ativcr2.dll lsvxdec.dll vid_3ivX.xa
atrac3.acm m3jp2k32.dll vid_cvid.xa
atrc.so.6.0 m3jpeg32.dll vid_cyuv.xa
AvidQTAVUICodec.qtx m3jpegdec.ax vid_h261.xa
avimszh.dll mcdvd_32.dll vid_h263.xa
avizlib.dll mcmjpg32.dll vid_iv32.xa
BeHereiVideo.qtx mi-sc4.acm vid_iv41.xa
CLRVIDDC.DLL mpg4c32.dll vid_iv50.xa
clrviddd.dll mpg4ds32.ax ViVD2.dll
cook.so msadp32.acm vivog723.acm
cook.so.6.0 msg711.acm vmnc.dll
ctadp32.acm msgsm32.acm voxmsdec.ax
CtWbJpg.DLL msh261.drv vp31vfw.dll
ddnt.so.6.0 msms001.vwp vp4vfw.dll
DECVW_32.DLL msnaudio.acm vp5vfw.dll
divxa32.acm msrle32.dll vp6vfw.dll
divx_c32.ax msscds32.ax vp7vfw.dll
divxc32.dll msvidc32.dll vssh264core.dll
divxdec.ax mvoiced.vwp vssh264dec.dll
divx.dll nsrt2432.acm vssh264.dll
dnet.so.6.0 pclepim1.dll vsshdsd.dll
drv2.so.6.0 qdv.dll vsslight.dll
drv3.so.6.0 qpeg32.dll vsswlt.dll
drv4.so.6.0 qtmlClient.dll wma9dmod.dll
drvc.so QuickTimeEssentials.qtx wmadmod.dll
dspr.so.6.0 QuickTimeInternetExtras.qtx wmsdmod.dll
frapsvid.dll QuickTime.qts wmspdmod.dll
huffyuv.dll README wmv8ds32.ax
i263_32.drv rt32dcmp.dll wmv9dmod.dll
iac25_32.ax scg726.acm wmvadvd.dll
iccvid.dll sipr.so.6.0 wmvdmod.dll
icmw_32.dll sp5x_32.dll wmvds32.ax
imaadp32.acm tm20dec.ax wnvplay1.dll
imc32.acm tokf.so.6.0 wnvwinx.dll
ir32_32.dll tokr.so.6.0 wvc1dmod.dll
ir41_32.dll tsccvid.dll xanlib.dll
ir50_32.dll tsd32.dll zmbv.dll
ivvideo.dll tssoft32.acm
jp2avi.dll tvqdec.dll
Checked that through a few times, from what I can see they're all there.
andrew.46
May 19th, 2008, 03:44 AM
Hi again:
Checked that through a few times, from what I can see they're all there.
Well that should eliminate a problem with the codecs, although just be sure that you have installed the following codec pack:
$ wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2
and they are all placed in /usr/local/lib/codecs and mplayer has been compiled against these codecs.
Can I ask what the output of the following is:
$ mplayer | head -n 4
and this one:
$ mplayer -vc help | grep realvid
and finally can you post a link to the file or files that are giving the trouble and a full quote of your command line and the subsequent error message?
Andrew
andrew.46
May 22nd, 2008, 06:27 AM
Oh well perhaps all is well now? The codecs command should reveal:
andrew@ilium~$ mplayer -vc help | grep realvid
rv3040 realvid working Linux RealPlayer 10 RV30/40 decoder [drvc.so]
rv3040win realvid working Win32 RealPlayer 10 RV30/40 decoder [drvc.dll]
rv40 realvid working Linux RealPlayer 9 RV40 decoder [drv4.so.6.0]
rv40win realvid working Win32 RealPlayer 9 RV40 decoder [drv43260.dll]
rv40mac realvid working Mac OS X RealPlayer 9 RV40 decoder [drvc.bundle/Contents/MacOS/drvc]
rv30 realvid working Linux RealPlayer 8 RV30 decoder [drv3.so.6.0]
rv30win realvid working Win32 RealPlayer 8 RV30 decoder [drv33260.dll]
rv30mac realvid working Mac OS X RealPlayer 9 RV30 decoder [drvc.bundle/Contents/MacOS/drvc]
rv20 realvid working Linux RealPlayer 8 RV20 decoder [drv2.so.6.0]
rv20winrp10 realvid working Win32 RealPlayer 10 RV20 decoder [drv2.dll]
rv20win realvid working Win32 RealPlayer 8 RV20 decoder [drv23260.dll]
rv20mac realvid working Mac OS X RealPlayer 9 RV20 decoder [drv2.bundle/Contents/MacOS/drv2]
And you will see the relevant codec there.
Andrew
ajw107
May 27th, 2008, 05:04 PM
Hi
I'm sorry to bother you, but I've just used your wonderful tutorial to compile mplayer. Unfortunately I was wanting to do so to add support for LCDproc, but was unable to figure out how to enable this. Do you know if this is even possible?
andrew.46
May 27th, 2008, 06:36 PM
Hi,
Glad the tutorial was useful for you:
I'm sorry to bother you, but I've just used your wonderful tutorial to compile mplayer. Unfortunately I was wanting to do so to add support for LCDproc, but was unable to figure out how to enable this. Do you know if this is even possible?
Unfortunately I believe that there is nothing that can be done from the mplayer side of things in the manner of a plugin that will enable support for LCDproc. The only info that I could find was for lcd-stuff which I see from another post that does not meet your needs.
Have you tried chasing this up on the LCDProc mailing list (http://lcdproc.org/mail.php3)? The only info there at the moment seems to relate to lcd-stuff.
Andrew
ajw107
May 28th, 2008, 10:46 AM
Hi Andrew
Thank you for your very quick reply. Unfortunately (on my system at least) lcd-stuff and mythlcdserver really don;t seem to like each other very much and stop each other from working. I have not tired the mailing list thought (although I have searched it), but I think I will try that next, thank you again for everything you've done.
On a side note I;ve also been able to enable dvd navigation (with menus) on mplayer with either the number pad keys or the mouse, if anyone would be interested I can add this. There are a few tutorials on the net, but I know they did not go quite to plan, and you had to copy the shared libraries to the right place.
andrew.46
May 28th, 2008, 05:44 PM
Hi!
Unfortunately (on my system at least) lcd-stuff and mythlcdserver really don;t seem to like each other very much and stop each other from working. I have not tired the mailing list thought (although I have searched it), but I think I will try that next, thank you again for everything you've done.
I wish you all the best with this. There does not seem to be a lot of information on this subject out there at the moment.
On a side note I;ve also been able to enable dvd navigation (with menus) on mplayer with either the number pad keys or the mouse, if anyone would be interested I can add this. There are a few tutorials on the net, but I know they did not go quite to plan, and you had to copy the shared libraries to the right place.
Actually buried away in the responses to this tutorial is a smaller 'Howto' on exactly this subject:
http://ubuntuforums.org/showpost.php?p=4351097&postcount=193
I have not added it to the main section as at that time the libdvdnav project was very much in beta stage. I note that recently this has changed and a lot of work has been done. Is the information on that page similar to the method that you have used yourself?
Andrew
ajw107
May 29th, 2008, 04:24 PM
Wow, a very impressive how-to, that is almost exactly what I was going to put. The only two things I would add is if you get a lot of erros about static librardies (libdvdnav.so.4, etc) just go to the root directory:
cd /
then do a:
sudo find -name <name of file in error>
to find out where it is, and then:
sudo cp <location of file> /usr/local/lib/
To get it to work with lirc you make the config file:
config = dvdnav X
where x is:
1 for Up
2 for Down
3 for Left
4 for Right
5 for Menu
6 for Select
To change subtitles:
config = sub_select
To change audio:
config = switch_audio
To change chapter:
config = seek_chapter +1 #(forward)
config = seek_chapter -1 #(back)
Right, now fingers crossed that I get a reply from the list (and about my annoying hvr-4000 to, but that's a whole other thread)!
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.