Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on AMD64
  • Search

mplayer-bin

Have an x86-64 problem? Post here.
Locked
Advanced search
27 posts
  • 1
  • 2
  • Next
Author
Message
Corona688
Veteran
Veteran
User avatar
Posts: 1204
Joined: Sat Jan 10, 2004 7:51 pm

mplayer-bin

  • Quote

Post by Corona688 » Thu Nov 11, 2004 5:22 am

I've gotten a 32-bit mplayer working under amd64, without building a full-fledged 32-bit chroot. It can use the win32 codecs. I will not post an ebuild here, and it certainly doesn't deserve to be in portage since it's an ugly binary agglomeration thingy of 4 redhat RPMs, but I will post how to do it step by step. First off, here are the things you need to emerge normally from portage:
  • rpm2targz
  • emul-linux-x86-baselibs
  • emul-linux-x86-sdl
  • emul-linux-x86-xlibs
  • win32codecs
You will need to edit /usr/portage/media-libs/win32codecs/win32codecs-20040916-r1.ebuild to add the ~amd64 keyword.

Once you've got the gentoo libraries you need, you can get started. Download these Redhat 8 RPMs into some empty directory in your homedir:
libogg-1.1-1.i386.rpm
libvorbis-1.0.1-1.i386.rpm
libtermcap-2.0.8-31.i386.rpm
mplayer-1.0pre5-2.i386.rpm

then:

Code: Select all

rpm2targz *.rpm
tar -zxf libogg*.tar.gz
tar -zxf libvorbis*.tar.gz
tar -zxf libtermcap*.tar.gz
tar -zxf mplayer*.tar.gz
This will dump all the binaries into the local directories etc, lib, and usr.

Move etc/codecs.conf to ~/.mplayer/codecs.conf so mplayer-bin can find the codecs.

Code: Select all

mv etc/codecs.conf ~/.mplayer/codecs.conf
Next, make the directory /var/lib/misc to keep these craven binaries in. You don't want foreign redhat binaries cluttering up your system in random places unaccounted for, do you? No, no you don't. Nothing 'till now has needed root permissions, but this stuff does.

Code: Select all

mkdir /var/lib/misc
chmod 755 /var/lib/misc
mv lib/libtermcap.so.2.0.8 /var/lib/misc/
mv usr/lib/* /var/lib/misc/
chown root:root /var/lib/misc/*
chmod 755 /var/lib/misc/*
cd /lib32
ln -s /var/lib/misc/libvorbis.so.0 libvorbis.so.0
ln -s /var/lib/misc/libogg.so.0 libogg.so.0
ln -s /var/lib/misc/libtermcap.so.2.0.8 libtermcap.so.2
ls -l libvorbis.so.0 libogg.so.0 libtermcap.so.2
If the symlinks all look good,

Code: Select all

/sbin/ldconfig
From this point on you should be able to use the 32-bit mplayer executable as an ordinary user. If there's anything I've forgotten, lemme know. Good luck!
Petition for Better 64-bit ATI Drivers - Sign Here
http://www.petitiononline.com/atipet/petition.html
Top
Medah
n00b
n00b
Posts: 19
Joined: Sun Mar 07, 2004 10:23 pm
Location: The Netherlands

  • Quote

Post by Medah » Fri Nov 12, 2004 9:34 am

Code: Select all

           => `/usr/portage/distfiles/all-20040916.tar.bz2'
Resolving www1.mplayerhq.hu... 192.190.173.45
Connecting to www1.mplayerhq.hu[192.190.173.45]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
10:32:16 ERROR 404: Not Found.

!!! Couldn't download all-20040916.tar.bz2. Aborting.
Cant seem to get the win32codecs from the server?
Top
Medah
n00b
n00b
Posts: 19
Joined: Sun Mar 07, 2004 10:23 pm
Location: The Netherlands

  • Quote

Post by Medah » Fri Nov 12, 2004 10:09 am

Seems that a newer version is available only, 20041107, fixed that :)

Other problem is that after extracting the tar.gz files , it only creates usr and lib.
Therefore i cant find codecs.conf in etc
Top
elvelind
n00b
n00b
Posts: 34
Joined: Sat Dec 13, 2003 2:58 pm

  • Quote

Post by elvelind » Fri Nov 12, 2004 11:35 am

would it be possible to use mplayerplug-in with this?
Top
Medah
n00b
n00b
Posts: 19
Joined: Sun Mar 07, 2004 10:23 pm
Location: The Netherlands

  • Quote

Post by Medah » Fri Nov 12, 2004 12:52 pm

Another thing, there is a preview of Windows XP 64bit, doesnt that one include 64bit codecs for wmv which we could use on our gentoo 64bit?
Top
tarzan420
Tux's lil' helper
Tux's lil' helper
Posts: 81
Joined: Sat Jul 05, 2003 10:46 pm
Location: Fairbanks AK

  • Quote

Post by tarzan420 » Fri Nov 12, 2004 6:32 pm

Medah wrote:Another thing, there is a preview of Windows XP 64bit, doesnt that one include 64bit codecs for wmv which we could use on our gentoo 64bit?
while I haven't used it first hand, i'm under the impression that as of right now, most of the stuff in WinXP 64Bit Beta is still 32-bit, just running through a compatibility layer. That and i've heard that the beta is total shite as well.
The power of Unix coupled with a pleasing interface and scores of usable desktop applications is a disgusting perversion of everything Unix stands for.
Top
Medah
n00b
n00b
Posts: 19
Joined: Sun Mar 07, 2004 10:23 pm
Location: The Netherlands

  • Quote

Post by Medah » Fri Nov 12, 2004 6:40 pm

Offcourse its shit, its made by microsoft, but we only care for the codecs ;)
Sucks if its still 32 bit :(
Top
Trevoke
Advocate
Advocate
User avatar
Posts: 4099
Joined: Sat Sep 04, 2004 6:01 pm
Location: NY, NY
Contact:
Contact Trevoke
Website

  • Quote

Post by Trevoke » Thu Dec 23, 2004 5:17 am

Medah wrote:Seems that a newer version is available only, 20041107, fixed that :)

Other problem is that after extracting the tar.gz files , it only creates usr and lib.
Therefore i cant find codecs.conf in etc
Reviving this.
Same issue.
Votre moment detente
What is the nature of conflict?
Top
E-Bell
n00b
n00b
Posts: 24
Joined: Sun Sep 05, 2004 3:41 pm

  • Quote

Post by E-Bell » Sat Jan 22, 2005 5:13 pm

Trevoke wrote:
Medah wrote:Seems that a newer version is available only, 20041107, fixed that :)

Other problem is that after extracting the tar.gz files , it only creates usr and lib.
Therefore i cant find codecs.conf in etc
Reviving this.
Same issue.
Me, too.
Top
fmmarzoa
n00b
n00b
Posts: 17
Joined: Wed Mar 24, 2004 8:39 pm

Another with same problem

  • Quote

Post by fmmarzoa » Sun Feb 06, 2005 9:53 pm

!!! Couldn't download all-20041107.tar.bz2. Aborting.
Any solution?
Top
fmmarzoa
n00b
n00b
Posts: 17
Joined: Wed Mar 24, 2004 8:39 pm

Re: Another with same problem

  • Quote

Post by fmmarzoa » Sun Feb 06, 2005 10:22 pm

fmmarzoa wrote:
!!! Couldn't download all-20041107.tar.bz2. Aborting.
Any solution?
Workaround:

That file doesn't seems to exist more on mplayer server, so I did:

Code: Select all

cp win32codecs-amd64-20041107.ebuild win32codecs-amd64-20050115.ebuild
Into /usr/portage/media-libs/win32codecs-amd64 an it downloaded the file, but after that it shows a new error:

!!! No package digest file found: /usr/portage/media-libs/win32codecs-amd64/files/digest-win32codecs-amd64-20050115
!!! Type "ebuild foo.ebuild digest" to generate it.

So I followed the instructions and do:

Code: Select all

ebuild win32codecs-amd64-20050115.ebuild digest
It continues downloading dependencies, but it crashes on the last:

!!! Digest verification Failed:
!!! /usr/portage/distfiles/mplayer32-bin-1.0_pre6.tar.bz2
!!! Reason: Filesize does not match recorded size

:x
Top
fmmarzoa
n00b
n00b
Posts: 17
Joined: Wed Mar 24, 2004 8:39 pm

Solved

  • Quote

Post by fmmarzoa » Sun Feb 06, 2005 10:32 pm

Finally, I did another:

Code: Select all

ebuild mplayer32-bin-1.0_pre6.ebuild digest
Under /usr/portage/media-video/mplayer32-bin and it seems to install, but after all videos continue failing. :cry:
Top
Gentree
Watchman
Watchman
User avatar
Posts: 5350
Joined: Tue Jul 01, 2003 12:51 am
Location: France, Old Europe

  • Quote

Post by Gentree » Tue May 10, 2005 3:12 pm

It continues downloading dependencies, but it crashes on the last:

!!! Digest verification Failed:
!!! /usr/portage/distfiles/mplayer32-bin-1.0_pre6.tar.bz2
!!! Reason: Filesize does not match recorded size
That is not a crash! It is a controlled progam exit with an error msg.
:roll:
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Top
axxackall
l33t
l33t
User avatar
Posts: 651
Joined: Wed Nov 06, 2002 4:04 pm
Location: Toronto, Ontario, 3rd Rock From Sun

  • Quote

Post by axxackall » Sat Aug 27, 2005 4:10 pm

Gentree wrote:
It continues downloading dependencies, but it crashes on the last:

!!! Digest verification Failed:
!!! /usr/portage/distfiles/mplayer32-bin-1.0_pre6.tar.bz2
!!! Reason: Filesize does not match recorded size
That is not a crash! It is a controlled progam exit with an error msg.
:roll:
Very useful clarification. Do you really think that everyone understood precisely what to do after reading your comment? If not, why not advise precisely what to do or keep the silence?

I´ve been through the same problem recently, while trying to add an ebuild for psi-0.10-test1. Let me add few details, so perhaps it would more clear for portage developers what is the root of such problems.

I have tried to add a new ebuild of psi in the tree, than in the overlay, but the problem was the same. Portage fails to build due to wrong digest and it fails to regenerate the digest with the follwoing message:

Code: Select all

# ebuild net-im/psi/psi-0.10.0_rc1.ebuild digest
>>> Downloading http://mirror.aiya.ru/pub/gentoo/distfiles/#
--19:56:28--  http://mirror.aiya.ru/pub/gentoo/distfiles/
           => `/usr/portage/distfiles/index.html.6'
Resolving mirror.aiya.ru... 194.226.215.190
Connecting to mirror.aiya.ru[194.226.215.190]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

    [                                                             <=>   ] 3,484,578     30.57K/s

19:58:41 (25.89 KB/s) - `/usr/portage/distfiles/index.html.6' saved [3,484,578]

>>> Generating digest file...
<<< psi-0.10-test1.tar.bz2
<<< #
!!! We have a source URI, but no file...
!!! File: /usr/portage/distfiles/#
By the way, why portage downloads the index.html for distfiles every time I am trying to regenerate a digest?
"Lisp is a programmable programming language." - John Foderaro, CACM, September 1991
Top
Gentree
Watchman
Watchman
User avatar
Posts: 5350
Joined: Tue Jul 01, 2003 12:51 am
Location: France, Old Europe

  • Quote

Post by Gentree » Sat Aug 27, 2005 4:36 pm

Very useful clarification. Do you really think that everyone understood precisely what to do after reading your comment? If not, why not advise precisely what to do or keep the silence?
Someone puts an invalid version file and portage detects this and gives a clear and accurate error message.

If the same person then posts that portage has "crashed" , that is nonsense. I simply pointed that out and suggested they read the error message which did actually tell them waht was wrong. That does not encumber me to debug their mess or write an essay on how to use portage.

Since they have not posted back since it looks like they worked it out.

8)
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Top
axxackall
l33t
l33t
User avatar
Posts: 651
Joined: Wed Nov 06, 2002 4:04 pm
Location: Toronto, Ontario, 3rd Rock From Sun

  • Quote

Post by axxackall » Sat Aug 27, 2005 6:05 pm

you are right, in a context of the original message you have answered correctly. Also I still would argue that it was useful. The main problem here is that the ¨overlay"feature in Portage is poorly documented. Coming back to my example with psi - I did everything exactly as in the portage docs, but it still doesn´t work. I´ve hacked the portage.py to ignore digests and after that psi-0.10 compiles and works, which means that the ebuild itself is correct. Whatś wrong here is the documentation on portage about digests.
"Lisp is a programmable programming language." - John Foderaro, CACM, September 1991
Top
Acoc
Apprentice
Apprentice
User avatar
Posts: 189
Joined: Fri Aug 06, 2004 11:58 pm
Location: New Jersey, USA

  • Quote

Post by Acoc » Sat Aug 27, 2005 6:42 pm

How I got 32 bit mplayer and mplayerplug-in working on an amd64 without chrooting.

*This assumes you have /usr/local/portage as your overlay. If you don't know what this is, it is how you manually add packages to portage. If you don't have it do this:

Code: Select all

echo "PORTDIR_OVERLAY=\"/usr/local/portage\"" >> /etc/make.conf
mkdir /usr/local/portage
Here goes:

Code: Select all

su

*echo media-libs/win32codecs ~amd64 >> /etc/portage/package.keywords
emerge win32codecs

cd /usr/local/portage
mkdir app-emulation
cd app-emulation
mkdir emul-linux-x86-mplayerlibs
cd emul-linux-x86-mplayerlibs
wget http://sh.nu/download/ebuilds/mplayer/usr/local/portage/app-emulation/emul-linux-x86-mplayerlibs/emul-linux-x86-mplayerlibs-1.0.ebuild
mv emul-linux-x86-mplayerlibs-1.0.ebuild emul-linux-x86-mplayerlibs-1.2.ebuild
nano -w emul-linux-x86-mplayerlibs-1.2.ebuild *replace media-libs/win32codecs-amd64 with media-libs/win32codecs
wget -P /usr/portage/distfiles http://sh.nu/download/ebuilds/mplayer/usr/portage/distfiles/emul-linux-x86-mplayerlibs-1.2.tar.bz2
ebuild emul-linux-x86-mplayerlibs-1.2.ebuild digest
*echo app-emulation/emul-linux-x86-mplayerlibs ~amd64 >> /etc/portage/package.keywords
emerge emul-linux-x86-mplayerlibs

cd /usr/local/portage
mkdir media-video
cd media-video
mkdir mplayer32-bin
cd mplayer32-bin
wget http://sh.nu/download/ebuilds/mplayer/usr/local/portage/media-video/mplayer32-bin/mplayer32-bin-1.0_pre6.ebuild
mv mplayer32-bin-1.0_pre6.ebuild mplayer32-bin-1.0_pre7.ebuild
wget -P /usr/portage/distfiles http://sh.nu/download/ebuilds/mplayer/usr/portage/distfiles/mplayer32-bin-1.0_pre7.tar.bz2
ebuild mplayer32-bin-1.0_pre7.ebuild digest
*echo media-video/mplayer32-bin ~amd64 >> /etc/portage/package.keywords
emerge mplayer32-bin
Mplayerplug-in part:

Code: Select all

mkdir ~/tmp
cd ~/tmp
wget http://sh.nu/download/ebuilds/mplayer/mplayerplug-in32-2.85.tbz2
tar -xvf mplayerplug-in32-2.85.tbz2
cp opt/netscape/plugins/mplayerplug-in.so /opt/netscape/plugins/mplayerplug-in32.so
cp etc/mplayerplug-in.conf /etc/
exit
cd ~/.mozilla/plugins/
ln -s /opt/netscape/plugins/mplayerplug-in32.so mplayerplug-in.so
NOTE: all the *'s are if you are running stable amd64 (Smart Idea). All of this was written from memory, so if there are problems, post and I will fix. Oh and I should say that this is only meant to show how I got it working. I take no credit in the actual work that was done in creating this packages. Also, I haven't gotten all the binary libs suggested earlier yet, but if I have time to do it I'll post how.

John
_There were plenty of times in my century when I was gonna give up, but I never did. Never! Hey, are you even listening to me? Oh, I give up._ Futurama
Top
TheKat
n00b
n00b
Posts: 49
Joined: Sat Jan 24, 2004 12:59 am

  • Quote

Post by TheKat » Sun Sep 04, 2005 4:25 pm

Well, everything is installed and seems to mostly work.

I have found a few videos in my collection where 64bit mplayer will not play sound, but mplayer-bin will.

The problem is, some of these also play sound at 50% speed. (ie: really slowly) if I play without sound, video playback goes at regular speed, but when the audio codec gets involved in decoding, it slows to ~50%.

The problem seems to be with this codec:

Code: Select all

Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 32000 Hz, 2 ch, s16le, 64.0 kbit/6.25% (ratio: 8000->128000)
Selected audio codec: [faad] afm:faad (FAAD AAC (MPEG2/MPEG4 Audio) decoder)
Anyone else notice this, or know how to maybe work around/fix it?
Top
VHockey86
n00b
n00b
Posts: 4
Joined: Mon Sep 12, 2005 7:07 pm
Location: NY
Contact:
Contact VHockey86
Website

  • Quote

Post by VHockey86 » Mon Sep 12, 2005 11:45 pm

I am having trouble with this line

Code: Select all

ebuild emul-linux-x86-mplayerlibs-1.2.ebuild digest 
I get error output like this:

Code: Select all

# ebuild emul-linux-x86-mplayerlibs-1.2.ebuild digest
!!! aux_get(): ebuild path for 'app-emulation/emul-linux-x86-mplayerlibs-1.2' not specified:
!!!            None
!!! aux_get(): ebuild path for 'app-emulation/emul-linux-x86-mplayerlibs-1.2' not specified:
!!!            None
doebuild(): aux_get() error reading app-emulation/emul-linux-x86-mplayerlibs-1.2; aborting.
Any idea why?
Top
scharkalvin
Guru
Guru
User avatar
Posts: 331
Joined: Sat Jan 31, 2004 1:36 am
Location: south florida

  • Quote

Post by scharkalvin » Tue Sep 13, 2005 12:35 pm

I have some .avi files which are supposed to be mp4's or divix videos. Anyway I emerged mplayer
on my amd64 box (in native 64 bit) and included the win32codec use flag. Maybe I'm missing something
but it works great and plays my video files. Just what type of media needs the use of the
32 bit codecs?
Top
omschaub
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 132
Joined: Fri Sep 03, 2004 5:23 pm
Location: Roanoke, VA
Contact:
Contact omschaub
Website

  • Quote

Post by omschaub » Tue Sep 13, 2005 3:54 pm

Any AVI in windows media version 9

Any .wmv file

If the codecs work correctly, any realmedia and quicktime too

Yes, mpeg 2,3,4(divx) do work on AMD64 but venture further than that and you are stuck. Also we have to consider audio codecs.. I am not as sure about those, but I am sure there are some 32bit specific ones floating around
Support bacteria -- it's the only culture some people have!
Top
psilo23
n00b
n00b
User avatar
Posts: 7
Joined: Thu Oct 28, 2004 4:38 pm
Location: Purdue University

  • Quote

Post by psilo23 » Mon Oct 17, 2005 8:48 pm

Thanks Apoc, worked like a charm. I did have a problem though that mplayerplug-in was still trying to call my 64-bit compiled mplayer so I moved that to mplayer64 and symlinked mplayer to the mplayer32 binary and now it works great.

Thanks again!
aloha
psilo
Top
vyzivus
Apprentice
Apprentice
User avatar
Posts: 173
Joined: Mon Jul 05, 2004 1:16 pm
Location: Slovakia

  • Quote

Post by vyzivus » Tue Oct 18, 2005 8:08 am

I was using custom mplayer32 build aswell, but yesterday I found this package in portage: media-video/mplayer-bin (amd64 arch only). It does not clash with media-video/mplayer (you can execute it by mplayer-bin),

Code: Select all

emerge mplayer-bin
automatically emerges the win32codecs, it plays wmv, qt and rm stuff nicely. However I can't find something like mplayer-bin-plugin package.
I thought what I'd do was, I'd pretend I was one of those deaf-mutes or should I?
Top
brihall
Tux's lil' helper
Tux's lil' helper
Posts: 86
Joined: Tue Apr 29, 2003 8:56 pm
Location: Colorado, USA
Contact:
Contact brihall
Website

  • Quote

Post by brihall » Wed Oct 19, 2005 8:17 pm

How do I use only mplayer-bin, so that mplayer-bin satisfies dependencies for mplayer?

Adding this to /etc/make.profile/virtuals didn't work:

virtual/mplayer media-video/mplayer-bin

Linked the binaries to take care of it at runtime for other programs:

# pushd /usr/bin
# ln -s mplayer-bin mplayer
# ln -s mencoder-bin mencoder
Top
rumcho
n00b
n00b
Posts: 4
Joined: Mon Sep 12, 2005 4:30 am

  • Quote

Post by rumcho » Mon May 22, 2006 6:20 am

TheKat wrote:Well, everything is installed and seems to mostly work.

I have found a few videos in my collection where 64bit mplayer will not play sound, but mplayer-bin will.

The problem is, some of these also play sound at 50% speed. (ie: really slowly) if I play without sound, video playback goes at regular speed, but when the audio codec gets involved in decoding, it slows to ~50%.

The problem seems to be with this codec:

Code: Select all

Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 32000 Hz, 2 ch, s16le, 64.0 kbit/6.25% (ratio: 8000->128000)
Selected audio codec: [faad] afm:faad (FAAD AAC (MPEG2/MPEG4 Audio) decoder)
Anyone else notice this, or know how to maybe work around/fix it?
Yes, make sure USE flag "aac" is set when you build mplayer.
Roumen Semov
Top
Locked

27 posts
  • 1
  • 2
  • Next

Return to “Gentoo on AMD64”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic