Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147928 - mplayer ppc binary codecs ebuild request
Summary: mplayer ppc binary codecs ebuild request
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-17 07:13 UTC by mambro
Modified: 2009-01-09 21:28 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mplayer-1.0_pre8-r2.ebuild (mplayer-1.0_pre8-r2.ebuild,16.63 KB, text/plain)
2006-09-17 07:16 UTC, mambro
Details
New ebuild script for ppccodecs (ppccodecs-20061022.ebuild,534 bytes, text/plain)
2007-05-05 06:28 UTC, Darren Kirby
Details
Unified diff against mplayer-1.0.20070321.ebuild (mplayer-1.0.20070321.ebuild.patch,1.55 KB, patch)
2007-05-05 06:31 UTC, Darren Kirby
Details | Diff
Doh! Did the batch backwards. (mplayer-1.0.20070321.ebuild.patch,1.54 KB, patch)
2007-05-05 06:37 UTC, Darren Kirby
Details | Diff
mplayer-1.0_rc2_p28058-r1.ebuild.patch (mplayer-1.0_rc2_p28058-r1.ebuild.patch,1.58 KB, text/plain)
2009-01-04 23:26 UTC, Stefan Behte (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mambro 2006-09-17 07:13:37 UTC
I've modify  mplayer-1.0_pre8-r1.ebuild to use binary codecs on ppc. The ebuild downloads the codecs from http://www1.mplayerhq.hu/MPlayer/releases/codecs/all-ppc-20051120.tar.bz2
and unpacks them to /usr/share/mplayer/codecs
It also sets this path for the realplayer codecs (REALLIBDIR="/usr/share/mplayer/codecs").

This is my first "ebuild's hack" so it could have a lot of errors :-)
Comment 1 mambro 2006-09-17 07:16:01 UTC
Created attachment 97245 [details]
mplayer-1.0_pre8-r2.ebuild
Comment 2 Luca Barbato gentoo-dev 2006-09-19 14:38:20 UTC
You should provide a separate ebuild for it putting the files in a proper dir in /opt and then just add it as dep in a scope like the win32codecs.
Comment 3 Darren Kirby 2007-05-05 06:28:41 UTC
Created attachment 118206 [details]
New ebuild script for ppccodecs
Comment 4 Darren Kirby 2007-05-05 06:31:08 UTC
Created attachment 118207 [details, diff]
Unified diff against mplayer-1.0.20070321.ebuild
Comment 5 Darren Kirby 2007-05-05 06:36:54 UTC
I've attached an ebuild for ppccodecs, and a diff against mplayer-1.0.20070321.ebuild which uses it.

The ppccodecs ebuild installs the codecs in /opt as suggested. This is keyworded ~ppc and ~ppc64, however, I am only to test these personally on my ppc64 G5. 

Hope these can help someone.
Comment 6 Darren Kirby 2007-05-05 06:37:42 UTC
Created attachment 118208 [details, diff]
Doh! Did the batch backwards.
Comment 7 Joe Jezak (RETIRED) gentoo-dev 2007-05-16 20:32:30 UTC
Sorry, but I want to be sure, you tested this on your G5 running a 64 bit userland or a 32bit userland?
Comment 8 Darren Kirby 2007-05-16 23:01:58 UTC
> Sorry, but I want to be sure, you tested this on your G5 running a 64 bit
> userland or a 32bit userland?

G5 64 bit userland ... Sorry, I should have mentioned it is really only the _installation_ itself I have tested on the G5. Real media files are playing audio only, no picture. I am surprised to get even that. I have no other media files to test the other codecs with now. 

Sadly, I don't have Gentoo installed on my G4 right now, so I cannot test there, which is where I believe this package may really be useful...
Comment 9 Stefan Behte (RETIRED) gentoo-dev Security 2009-01-04 23:26:13 UTC
Created attachment 177421 [details]
mplayer-1.0_rc2_p28058-r1.ebuild.patch

It's --codecsdir, not --with-codecsdir
Comment 10 Stefan Behte (RETIRED) gentoo-dev Security 2009-01-04 23:37:37 UTC
After fixing my audio on, I tested this:

Audio test:
http://niceup.com/sounds.html

Video Tests (you need to "curl -s" and then use the rtsp link)
http://uk.real.com/video/

e.g.:
mplayer "rtsp://213.128.136.84/gratis/rn_gratis/X3/Whysexbeforemarriageisessential_X3bV.rm?rmsrc=&product=&service=noservice&edition=unknown" 

Mplayer mplays those videos without problems (it's just a bit slow on my G4).

I noticed that those videos are played even if the unpatched mplayer-1.0_rc2_p28058-r1 is installed. Can anyone explain that to me? Seems we don't need the ppccodecs anymore?!?
Comment 11 Joe Jezak (RETIRED) gentoo-dev 2009-01-09 21:28:43 UTC
Yeah, the realplayer codecs have been added, so there's really no reason for this anymore.  Feel free to reopen the bug if you disagree! :)