 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

22nd October 2011, 11:45 AM
|
|
Registered User
|
|
Join Date: Oct 2011
Posts: 2

|
|
|
How to install mplayer2?
I installed Fedora yesterday. I'm really happy with it and can't wait for 16. 
Only thing I'm missing is good player. It needs to have 10bit support. I heard that only mplayer2 is supporting but i don't know how to install it.
So, can you help me?
|

22nd October 2011, 06:07 PM
|
|
Registered User
|
|
Join Date: Mar 2008
Location: Germany
Posts: 225

|
|
|
Re: How to install mplayer2?
Martin Sourado has a rpm spec file for mplayer2 on his page:
mplayer2.spec
give it a try.
|

22nd October 2011, 08:56 PM
|
|
Registered User
|
|
Join Date: Oct 2011
Posts: 2

|
|
|
Re: How to install mplayer2?
What do I do with that spec file?
|

22nd October 2011, 10:25 PM
|
|
Registered User
|
|
Join Date: Mar 2008
Location: Germany
Posts: 225

|
|
|
Re: How to install mplayer2?
Build your own rpm package
1. You should be using an rpm build tree in your regular user account directory, and building it as a regular user, if you haven't done so already.
Code:
yum install rpmdevtools
2. Then in your regular user directory, do:
That will give you a directory ~/rpmbuild, with appropriate sub-directories (BUILD RPMS SOURCES SPECS SRPMS).
3. download the source and pack it in a tar archive
(git must be installed)
Code:
git clone git://git.mplayer2.org/mplayer2.git
tar -cJf mplayer2-2.0-361-g49b2bc5.tar.xz mplayer2
mv mplayer2-2.0-361-g49b2bc5.tar.xz ~/rpmbuild/SOURCES
(download mplayer.conf from attachment)
mv mplayer.conf ~/rpmbuild/SOURCES
4. build the rpm file
(download mplayer2.spec from attachment)
Code:
rpmbuild -ba mplayer2.spec
5. install the rpm file
Code:
rpm -ivh ~/rpmbuild/RPMS/x86_64/mplayer2-2.0-5.361.g49b2bc5git.fc15.x86_64.rpm
|

28th November 2011, 11:45 PM
|
|
Registered User
|
|
Join Date: Dec 2009
Posts: 50

|
|
|
Re: How to install mplayer2?
hi, i keep hitting a roadbock with this method seems the culprit is the enable-runtime-cpudetection option but i havent the slightest idea on what to do for that.
this is the output, cant post it here due to limit and i dunno which parts would be clever to remove.
any help, please?
__________________
ASUS g74sx-bbk7 -- Fedora 17 x64
Intel CORE i7 2630QM @2GHz // nVidia GeForce GTX 560M 2GB // 8GB DDR3 1333 MHz SDRAM // 2 x 500GB 7,200rpm
|

29th November 2011, 03:20 AM
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 4,981

|
|
|
Re: How to install mplayer2?
I just tried to do it, and got a similar error, but rather than cpudetection, mine was dynamic-plugins. Tried to remove that line from the spec file, and then it said that it couldn't find etc/menu.conf, that it's supposed to create, was missing.
So I don't know if the problem is in the mplayer2 code, the spec file, or perhaps our two individual setups, which is, of course, quite possible, as the person wouldn't have submitted the spec file if it didn't work for them.
So....looking at the config file, I see that there is no dynamic-plugin stuff listed as an option. (This is going back to the original file that I got from git). So, I then tried ./configure --enable-runtime-cpu-detection or whatever the option is. and that worked. So, I then ran make which also worked.
I then ran make install which worked. I then had a working mplayer.
I don't know if you want to do that or not--generally, you're better off sticking to rpms if available. This, for me, is a test machine that I'm probably going to wipe in a day or two anyway, so it didn't matter.
My best guess is that since it's a git hub, meaning where they keep track of changes, there's been some small changes since that, which make the spec file fail.
Note that I have gcc gcc-c++ make automake and kernel-devel already installed. Not sure if they would be pulled in by rpmdev or not.
---------- Post added at 10:20 PM ---------- Previous post was at 08:40 PM ----------
Ok, so poking around what I found in the git directory, I saw there was an rpm directory, with a spec file. So, I used that. I had to remove a few lines for Chinese and Russian, and a parameter in the spec file that was unknown. Hrrm, Ok, it's git, mistakes will be made. I also had to download the export snapshot and put it in my ~/rpmbuilds/SOURCES
Then, it still had errors--firstly because of Chinese documents, then, an entry in the spec file that was no longer in it, then, I thought I had it working---however, after almost 40 minutes of compiling, it died with another error.
So, if you are set on it, I think the easiest way would be to run ./configure make and make install as I described above.
|

30th November 2011, 01:41 AM
|
|
Registered User
|
|
Join Date: Dec 2009
Posts: 50

|
|
|
Re: How to install mplayer2?
yeah, went on and tried ./configure and worked even without extra options, so now i have a working mplayer2 which is good.
its a shame this one lacks a maintiner an actual rpm would be great
__________________
ASUS g74sx-bbk7 -- Fedora 17 x64
Intel CORE i7 2630QM @2GHz // nVidia GeForce GTX 560M 2GB // 8GB DDR3 1333 MHz SDRAM // 2 x 500GB 7,200rpm
|

30th November 2011, 02:48 AM
|
|
Registered User
|
|
Join Date: Jan 2010
Posts: 4,981

|
|
|
Re: How to install mplayer2?
I don't really follow what's going on with mplayer. I imagine if mplayer2 becomes the one that everyone's using, sooner or later there will be a maintainer.
Anyway, glad that you got yours working.
|

30th June 2012, 08:51 AM
|
|
Registered User
|
|
Join Date: Jun 2012
Location: Iran
Posts: 4

|
|
|
Re: How to install mplayer2?
here is mplayer2 in RPM. find the fedora version and download it. http://pkgs.org/download/mplayer2
It's working fine for me
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 01:17 (Sunday, 26-05-2013)
|
|
 |
 |
 |
 |
|
|