Update:This mini-HOWTO also work for mozilla-firefox-bin using method in 4a. Should work with 4b, but I haven't tested, and I'm not going to either. Feel free to test and confirm it

Update2:There might be some problems with the plugin.. Not sure if it's related to Opera, mplayerplug-in or anything else. Please read on. Will update this post if I find a fix/solution/reason.

First I'd like to thank forumusers (in no particular order) Aries-Belgium, rwf, Sloden, Ravenlost and Slegge for posts and partial solutions in the forum which helped me finally get Opera to play streaming video from Apple's Trailers etc.

I've got an AMD64 X2 4200+ system with 1GB RAM, running 64bit. I'm also an Opera Browser fan, which means I'm running a 32-bit browser at the moment, since Opera hasn't released a 64bit version yet. Not that it would have helped at the moment, since most plugins are still 32bit. I also have mozilla-firefox (64bit) and mozilla-firefox-bin (32-bit) installed just in case (& because of dependencies).

So, here is a mini-HOWTO on how to get streaming video (and probably audio-only which I haven't tested).

mini-HOWTO

We need the gecko-sdk and mplayerplug-in sources. Lets fetch and get them ready:

When this is done we need to install the plugins. I like to keep the 32bit plugins in /usr/lib32/nsbrowser/plugins, and not in /opt/netscape/plugins. This is NOT the default Gentoo way, which puts most of its plugins into /opt/netscape/plugins and then symlinks them into /usr/lib/nsbrowser/plugins. This also messes up the system if you ask me, since on AMD64, /usr/lib/ is just a symlink to /usr/lib64... But this is a completly other subject (which I've posted about here).

I was able to play the trailers in mozilla-firefox-bin too, using "my method" (4a). The only place where the plugins is installed on my system is in "/usr/lib32/nsbrowser/plugins"

If you want to do some clean-up, you could delete the gecko-sdk source file in /tmp, and delete the /var/tmp/mplayerplug-in folder. The mplayerplug-in source file is stored in /usr/portage/distfiles. If you don't have space issues, it may as well just stay there. If you later do an "emerge -av mplayerplug-in" it would be used and you'll end up with a 64bit version of mplayerplug-in which you in theory should be able to use with 64bit browsers with compatible codecs.

I'm having the same audio/non-video problems in mozilla-firefox-bin.. That said, most .mov movies (QuickTime) works fine inside Opera. Only problem I've encountered yet is the reported Simpson Trailer that completly crashed my Opera.

3) How do you play rm/ram files? Open RealPlayer manually? Automatically? You don't?

---

What I thought was .ram files on nasa webtv looks to be windows media? At least from the output when I start Opera in debug (=10) mode.. Can you (rwf) watch the nasa webtv?_________________As of April 2006 - Athlon64 X2 4200+ 1GB RAM - amd64-2006.0 profiled system with portage 2.1_preX, ck-sources-2.6.16, glibc-2.4-r1 (overlay w/-Bdirect&-hashvals), binutils-2.16.91.0.6 (overlay), gcc-4.1, Xorg 7

It's getting late and I'm not probably thinking straight.. Did u make direct use of the mime file or did you make an entry for each extention in the Preference window (under downloads)?

I made an entry for each mime type in Opera via the Download option. Nothing automatic about it.

I went through the realplay.mime file and choose most of the direct real{audio,video} stuff and added the mime and fileextension to opera. Clicking on a real media in opera starts the RealPlayer _________________As of April 2006 - Athlon64 X2 4200+ 1GB RAM - amd64-2006.0 profiled system with portage 2.1_preX, ck-sources-2.6.16, glibc-2.4-r1 (overlay w/-Bdirect&-hashvals), binutils-2.16.91.0.6 (overlay), gcc-4.1, Xorg 7

Are you on an amd64 profile/system? If you are using x86 you should just use the portage mplayerplug-in package._________________As of April 2006 - Athlon64 X2 4200+ 1GB RAM - amd64-2006.0 profiled system with portage 2.1_preX, ck-sources-2.6.16, glibc-2.4-r1 (overlay w/-Bdirect&-hashvals), binutils-2.16.91.0.6 (overlay), gcc-4.1, Xorg 7

Does mplayer-plugin use mplayer-bin or mplayer in your method? I've installed mplayer-plugin in different way (little simpler I think) with Opera 9 but I can't see video in wmv (which is pretty obvious)._________________GTK2/GNOME - The weakest link!

I'd like to show you another solutions for this issue. It isn't that "gentooish" but atleast it's quite easy and works

1) I downloaded Fedora's mplayerplug-in binary i386 from http://mplayerplug-in.sourceforge.net/download.php
2) I converted mplayerplug-in-3.25-fc5.i386.rpm to tarball with rpm2targz
3) I extracted that tarball into some local folder
4) I copied *.so and *.xpt from that folder to /opt/netscape/plugins/
5) I symlinked those files to /usr/lib32/nsbrowser/plugins/

That's it! If you're using Firefox 1.5 you don't even need to restart it, all works instantly

Arg, I was getting that libpangocairo problem with mplayerplug-in-3.25 from http://sh.nu/download/ebuilds/mplayer/ (from this HOWTO's originating thread, among other places) so I decided to give the method here (the one at the top) a try in case the 3.21 from portage wasn't linked to libpangocairo, but it bails in the make:

I have just tried to emerge the latest mplayer-bin (1.0_pre8) today and I had the same problem with the pangocairo libs. I finally understood what was the issue and found a fix for it. The 32 bits version of cairo libs are only included in version 2.8.8 of the emul-linux-x86-gtklibs package. However it is masked with ~amd64. Unmask it in package.keywords and emerge it and it should work. You will probably have to unmask and re-emerge some other emul-linux-* packages too because of some dependences.
I guess the ebuild for mplayerplug-in from http://sh.nu/download/ebuilds/mplayer/ should work the same now.

It's also a good idea for AMD64 Opera users to extract "mplayer-bin.patch" from Primer's mplayerplug-in-bin archive and applied it manually just before I followed step 2 of Joffer's method so you get win32codec goodness.

I know have Flash and mplayer plugins working in Firefox 32bit, Firefox 64bit and Opera 9 All of them use mplayer-bin so I don't have to worry about unsupported codecs. I'm thinking of ditching Firefox 64 though because it's flakey as hell.

Thanks for all your hard work guys (and to Opera for making such a cool browser and for fixing those bugs) Opera users everywhere owe you one._________________2.6.35 / Gnome 2.30
Athlon64 3500+ / 1.5 GB / Asus A8N VM CSM

* Those libs that are missing can be found on gecko-sdk, where can I find 32 bits version of them?

The mozilla-firefox-bin package in portage does contain 32-bit versions of those files, they will be emerged into /opt/firefox and then you can add symlinks int /usr/lib32 to resolve the issue. I don't know why Mozilla don't place their libraries in the appropriate directories, I guess it makes the binary package more suited to USB thumbsticks and such.

* Those libs that are missing can be found on gecko-sdk, where can I find 32 bits version of them?

The mozilla-firefox-bin package in portage does contain 32-bit versions of those files, they will be emerged into /opt/firefox and then you can add symlinks int /usr/lib32 to resolve the issue. I don't know why Mozilla don't place their libraries in the appropriate directories, I guess it makes the binary package more suited to USB thumbsticks and such.