Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 22nd October 2011, 11:45 AM
TheRunner Offline
Registered User
 
Join Date: Oct 2011
Posts: 2
linuxfirefox
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?
Reply With Quote
  #2  
Old 22nd October 2011, 06:07 PM
TheBigRed Offline
Registered User
 
Join Date: Mar 2008
Location: Germany
Posts: 225
linuxfirefox
Re: How to install mplayer2?

Martin Sourado has a rpm spec file for mplayer2 on his page:
mplayer2.spec

give it a try.
Reply With Quote
  #3  
Old 22nd October 2011, 08:56 PM
TheRunner Offline
Registered User
 
Join Date: Oct 2011
Posts: 2
linuxfirefox
Re: How to install mplayer2?

What do I do with that spec file?
Reply With Quote
  #4  
Old 22nd October 2011, 10:25 PM
TheBigRed Offline
Registered User
 
Join Date: Mar 2008
Location: Germany
Posts: 225
linuxfirefox
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:

Code:
rpmdev-setuptree
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
Attached Files
File Type: conf mplayer.conf (4.0 KB, 332 views)
File Type: spec mplayer2.spec (4.7 KB, 321 views)
Reply With Quote
  #5  
Old 28th November 2011, 11:45 PM
Catastrophe Offline
Registered User
 
Join Date: Dec 2009
Posts: 50
linuxfirefox
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
Reply With Quote
  #6  
Old 29th November 2011, 03:20 AM
smr54 Offline
Registered User
 
Join Date: Jan 2010
Posts: 4,981
linuxchrome
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.
Reply With Quote
  #7  
Old 30th November 2011, 01:41 AM
Catastrophe Offline
Registered User
 
Join Date: Dec 2009
Posts: 50
linuxfirefox
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
Reply With Quote
  #8  
Old 30th November 2011, 02:48 AM
smr54 Offline
Registered User
 
Join Date: Jan 2010
Posts: 4,981
linuxchrome
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.
Reply With Quote
  #9  
Old 30th June 2012, 08:51 AM
AmiNimA Offline
Registered User
 
Join Date: Jun 2012
Location: Iran
Posts: 4
linuxfirefox
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
Reply With Quote
Reply

Tags
install, mplayer2

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help compiling mplayer2 livelong Using Fedora 2 13th September 2011 06:47 AM
MPlayer2 tox Linux Chat 5 25th March 2011 01:08 PM
Is it possible to install GUI's, install browsers, install IP addresses? booter Installation and Live Media 1 13th June 2007 11:40 PM
application/x-mplayer2 nycho Using Fedora 10 4th March 2007 06:19 PM
FC4 DVD Install - Unable to get past Select Driver option for Local CDROM install flashgordon EOL (End Of Life) Versions 2 28th February 2006 05:54 AM


Current GMT-time: 01:17 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat