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
  #16  
Old 24th December 2009, 02:01 PM
leigh123linux's Avatar
leigh123linux Offline
Retired Administrator
 
Join Date: Oct 2006
Posts: 21,509
linuxfedorafirefox
Quote:
Originally Posted by cheerio158 View Post
Cool, I'm learning some good information!

Back to the original procedure, is all I have to do is to copy the patchfile to ~/rpmbuild/SOURCES (with all the other mplayer patch files) and edit the spec file accordingly? This way I don't have to tamper with the tarball at all?

Lets call the patch mplayer-mypatch.patch and I took the next number in the list (Patch 15). Below is the snippet from the mplayer.spec file with my suggested changes.

Code:
Source1:        http://www.mplayerhq.hu/MPlayer/skins/Blue-1.7.tar.bz2
Source10:       mplayer-snapshot.sh
Patch2:         %{name}-config.patch
Patch8:         %{name}-manlinks.patch
Patch10:        %{name}-qcelp.patch
Patch14:        %{name}-nodvdcss.patch
Patch15:        %{name}-mypatch.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

You will need to add the patch to the %prep section as well to apply it.


Code:
%prep
%if %{svn}
%setup -q -n mplayer-export-%{svnbuild}
%else
%setup -q -n MPlayer-%{version}%{pre}
%endif
%patch2 -p1 -b .config


%patch8 -p1 -b .manlinks
%patch10 -p1 -b .qcelp
%patch14 -p1 -b .nodvdcss
%patch15 -p0 -b .mypatch
doconv() {
    iconv -f $1 -t $2 -o DOCS/man/$3/mplayer.1.utf8 DOCS/man/$3/mplayer.1 && \
    mv DOCS/man/$3/mplayer.1.utf8 DOCS/man/$3/mplayer.1
Reply With Quote
  #17  
Old 24th December 2009, 04:54 PM
cheerio158's Avatar
cheerio158 Offline
Registered User
 
Join Date: Apr 2005
Location: Toronto, Ontario, Canada
Posts: 215
linuxfedorafirefox
Ok, let's do the enlightened homo sapiens approach (thanks leigh!).
  1. Download attached mplayer-spec.patch to your ~/rpmbuild/SPECS directory.
  2. Download attached mplayer-pulse-hack.patch to your ~/rpmbuild/SOURCES directory.
  3. Perform the following commands below.
    Code:
    $ yumdownloader --source mplayer
    ... output not shown ...
    $ sudo yum-builddep -y mplayer-1.0-0.111.20091029svn.fc12.src.rpm
    ... output not shown ...
    $ rpm -ivh mplayer-1.0-0.111.20091029svn.fc12.src.rpm
    ... output not shown ...
    $ cd ~/rpmbuild/SPECS
    $ patch -N mplayer.spec mplayer-spec.patch
    patching file mplayer.spec
    $ rpmbuild -ba mplayer.spec
    $ cd ~/rpmbuild/RPMS/i686
    $ sudo rpm -Uvh --force mplayer-1.0-0.111.20091029svn.fc12.i686.rpm mplayer-gui-1.0-0.111.20091029svn.fc12.i686.rpm
    Preparing...                ########################################### [100%]
       1:mplayer                ########################################### [ 50%]
       2:mplayer-gui            ########################################### [100%]

Notes:
  1. Careful with the patch files. I had to generate the mplayer-pulse-hack.patch from my "caveman" approach earlier because cutting and pasting from the web page corrupted it (probably removed any tabs).
  2. I did this build for a x686 eeepc. However, I noticed that the compiler flag mtune=generic. Ideally, I want this flag to be mtune=atom which is supposedly how all the Fedora 12 (proper) packages are compiled. If somebody knows the simple way to override this in the above process, please advise. (Also be advised that the mplayer folks warn against using exotic compilers and settings.)
  3. To be explicit about the version of mplayer that this procedure worked for, I spelled out the entire name. You could probably substitute mplayer*rpm in the above procedure.
Enjoy!
Attached Files
File Type: patch mplayer-spec.patch (672 Bytes, 20 views)
File Type: patch mplayer-pulse-hack.patch (826 Bytes, 17 views)
__________________
Desktop Smolt profile
Laptop Smolt profile
EeePC Smolt profile
Reply With Quote
  #18  
Old 26th December 2009, 04:14 PM
sexyb3rry
Guest
 
Posts: n/a
linuxfedorafirefox
Quote:
Originally Posted by mgleahy View Post
The suggestion I got on LQO seemed to do the trick for me. It seems that mplayer doesn't play nice with pulse. I had to do a bit of extra config for the alsa driver in the gui conf, but it seems okay now.

In mplayer's config (~/.mplayer/config) try this:

ao=alsa


This seems to be working for me (albeit without thorough testing yet).
This works thank you very much.
Reply With Quote
Reply

Tags
fedora, mplayer, problem

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
mplayer problem :'( decodedthought Using Fedora 12 26th February 2009 12:03 PM
Problem on using GUI of the MPlayer phenixs Using Fedora 6 1st February 2007 01:26 PM
mplayer problem ramdandi Guides & Solutions (No Questions) 2 13th April 2006 09:32 AM
Problem to install MPlayer on fedora core 3 piierre153 Using Fedora 12 12th June 2005 06:40 AM
Problem with mplayer mnguyen Using Fedora 3 23rd September 2004 01:24 PM


Current GMT-time: 17:40 (Saturday, 25-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