Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mplayer-bin
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
Corona688
Veteran
Veteran


Joined: 10 Jan 2004
Posts: 1204

PostPosted: Thu Nov 11, 2004 5:22 am    Post subject: mplayer-bin Reply with quote

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:
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:
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:
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:
/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
Back to top
View user's profile Send private message
Medah
n00b
n00b


Joined: 07 Mar 2004
Posts: 19
Location: The Netherlands

PostPosted: Fri Nov 12, 2004 9:34 am    Post subject: Reply with quote

Code:
           => `/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?
Back to top
View user's profile Send private message
Medah
n00b
n00b


Joined: 07 Mar 2004
Posts: 19
Location: The Netherlands

PostPosted: Fri Nov 12, 2004 10:09 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
elvelind
n00b
n00b


Joined: 13 Dec 2003
Posts: 34

PostPosted: Fri Nov 12, 2004 11:35 am    Post subject: Reply with quote

would it be possible to use mplayerplug-in with this?
Back to top
View user's profile Send private message
Medah
n00b
n00b


Joined: 07 Mar 2004
Posts: 19
Location: The Netherlands

PostPosted: Fri Nov 12, 2004 12:52 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
tarzan420
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2003
Posts: 81
Location: Fairbanks AK

PostPosted: Fri Nov 12, 2004 6:32 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Medah
n00b
n00b


Joined: 07 Mar 2004
Posts: 19
Location: The Netherlands

PostPosted: Fri Nov 12, 2004 6:40 pm    Post subject: Reply with quote

Offcourse its shit, its made by microsoft, but we only care for the codecs ;)
Sucks if its still 32 bit :(
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Thu Dec 23, 2004 5:17 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
E-Bell
n00b
n00b


Joined: 05 Sep 2004
Posts: 24

PostPosted: Sat Jan 22, 2005 5:13 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
fmmarzoa
n00b
n00b


Joined: 24 Mar 2004
Posts: 17

PostPosted: Sun Feb 06, 2005 9:53 pm    Post subject: Another with same problem Reply with quote

Quote:
!!! Couldn't download all-20041107.tar.bz2. Aborting.


Any solution?
Back to top
View user's profile Send private message
fmmarzoa
n00b
n00b


Joined: 24 Mar 2004
Posts: 17

PostPosted: Sun Feb 06, 2005 10:22 pm    Post subject: Re: Another with same problem Reply with quote

fmmarzoa wrote:
Quote:
!!! 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:
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:
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
Back to top
View user's profile Send private message
fmmarzoa
n00b
n00b


Joined: 24 Mar 2004
Posts: 17

PostPosted: Sun Feb 06, 2005 10:32 pm    Post subject: Solved Reply with quote

Finally, I did another:

Code:
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:
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Tue May 10, 2005 3:12 pm    Post subject: Reply with quote

Quote:
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
Back to top
View user's profile Send private message
axxackall
l33t
l33t


Joined: 06 Nov 2002
Posts: 651
Location: Toronto, Ontario, 3rd Rock From Sun

PostPosted: Sat Aug 27, 2005 4:10 pm    Post subject: Reply with quote

Gentree wrote:
Quote:
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:

# 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
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sat Aug 27, 2005 4:36 pm    Post subject: Reply with quote

Quote:
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
Back to top
View user's profile Send private message
axxackall
l33t
l33t


Joined: 06 Nov 2002
Posts: 651
Location: Toronto, Ontario, 3rd Rock From Sun

PostPosted: Sat Aug 27, 2005 6:05 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Acoc
Apprentice
Apprentice


Joined: 06 Aug 2004
Posts: 189
Location: New Jersey, USA

PostPosted: Sat Aug 27, 2005 6:42 pm    Post subject: Reply with quote

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:
echo "PORTDIR_OVERLAY=\"/usr/local/portage\"" >> /etc/make.conf
mkdir /usr/local/portage


Here goes:
Code:
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:
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
Back to top
View user's profile Send private message
TheKat
n00b
n00b


Joined: 24 Jan 2004
Posts: 49

PostPosted: Sun Sep 04, 2005 4:25 pm    Post subject: Reply with quote

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:
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?
Back to top
View user's profile Send private message
VHockey86
n00b
n00b


Joined: 12 Sep 2005
Posts: 4
Location: NY

PostPosted: Mon Sep 12, 2005 11:45 pm    Post subject: Reply with quote

I am having trouble with this line
Code:

ebuild emul-linux-x86-mplayerlibs-1.2.ebuild digest


I get error output like this:

Code:

# 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?
Back to top
View user's profile Send private message
scharkalvin
Guru
Guru


Joined: 31 Jan 2004
Posts: 331
Location: south florida

PostPosted: Tue Sep 13, 2005 12:35 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
omschaub
Tux's lil' helper
Tux's lil' helper


Joined: 03 Sep 2004
Posts: 132
Location: Roanoke, VA

PostPosted: Tue Sep 13, 2005 3:54 pm    Post subject: Reply with quote

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!
Back to top
View user's profile Send private message
psilo23
n00b
n00b


Joined: 28 Oct 2004
Posts: 7
Location: Purdue University

PostPosted: Mon Oct 17, 2005 8:48 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
vyzivus
Apprentice
Apprentice


Joined: 05 Jul 2004
Posts: 173
Location: Slovakia

PostPosted: Tue Oct 18, 2005 8:08 am    Post subject: Reply with quote

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:

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?
Back to top
View user's profile Send private message
brihall
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2003
Posts: 86
Location: Colorado, USA

PostPosted: Wed Oct 19, 2005 8:17 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
rumcho
n00b
n00b


Joined: 12 Sep 2005
Posts: 4

PostPosted: Mon May 22, 2006 6:20 am    Post subject: Reply with quote

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:
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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum