Subject: Solved! (was: Re: QUICKTIME(Plugin) and mozilla-linux or firefox-gtk2-linux)
To: None <netbsd-help@netbsd.org>
From: Shigeki UNO <shigeki@mediawars.ne.jp>
List: netbsd-help
Date: 11/29/2004 17:24:31
shigeki@mediawars.ne.jp (Shigeki UNO) writes:

|  Does anyone have an experience that you were able to view the
| following site with either mozilla-linux(pkgsrc/www/mozilla-bin) or
| firefox-gtk2-linux(pkgsrc/www/firefox-gtk2-bin)?
| 
|  These browsers can get along with flash and java-vm but the only one
| thing that I don't get it is QUICKTIME plugin. I know there is a
| software called mplayerplug-in (pkgsrc/ multimedia/moz-mplayer) but
| this is for NetBSD native.
| 
|  I would like to watch trailers with the above browsers because flash
| player works nicely under mozilla-linux and firefox-gtk2-linux.
| 
|           http://www.pixar.com/theater/trailers/incredibles/index.html
|           http://www.apple.com/trailers/
|           
|  Do I need to install mplayer for linux and its dependencies and
| mplayerplug-in?

I finally made it. Now I can watch trailers on firefox for Linux.
The following is what I did to get it to work, I am not sure what I am doing 
is right, though.

<RPM files you have got to get>

DirectFB-0.9.20-81.i586.rpm
SDL-1.2.7-33.i586.rpm
XFree86-Mesa-4.3.99.902-40.i586.rpm
aalib-1.4.0-275.i586.rpm
alsa-1.0.3-37.i586.rpm
arts-1.2.1-31.i586.rpm
audiofile-0.2.5-37.i586.rpm
cdparanoia-IIIalpha9.8-543.i586.rpm
cracklib-2.7-903.i586.rpm
cyrus-sasl-2.1.18-29.i586.rpm
db-4.2.52-85.i586.rpm
e2fsprogs-1.34-115.i586.rpm
esound-0.2.33-28.i586.rpm
gpm-1.20.1-299.i586.rpm
heimdal-lib-0.6.1rc3-51.i586.rpm
lame-3.96.1-pm.1.i586.rpm
libdv-0.101-43.i586.rpm
libldap2.2_7-2.2.18-1mdk.i586.rpm
libmad-devel-0.15.1b-1.i386.rpm
libogg-1.1-56.i586.rpm
libsmbclient-3.0.2a-51.i586.rpm
libtheora-0.9_1.0alpha3-0.pm.0.i586.rpm
libungif-4.1.0b1-581.i586.rpm
libvorbis-1.0.1-56.i586.rpm
lirc-0.7.0cvs20040308-30.i586.rpm
lzo-1.08-104.i586.rpm
mad-0.15.1b-28.i586.rpm
openldap2-client-2.2.6-34.i586.rpm
openssl-0.9.7d-15.i586.rpm
resmgr-0.9.8-47.i586.rpm
slang-1.4.9-121.i586.rpm
w32codec-all-20041107-0.pm.0.i386.rpm

and

MPlayer-1.0pre5-pm.1.i586.rpm
mplayerplug-in-2.70-0.pm.2.i586.rpm


<How-To>

(1) Install the above RPM files with rpm2pkg(/usr/pkg/bin/rpm2pkg) like this,

 #rpm2pkg -d /usr/pkg/emul/linux /PATH/TO/something.rpm

I have installed them in /usr/pkg/emul/linux. However if you would like to
do in another dirctory like /usr/local, I think it would be OK. 

(2) Check if mplayer for linux works or not

 % /usr/pkg/emul/linux/usr/bin/mplayer something.{avi,mpeg,rm...}
   (or /emul/linux/usr/bin/mplayer)

(3) Edit mplayerplug-in.conf (/usr/pkg/emul/linux/etc/mplayerplug-in.conf)

<BEFORE>                      <AFTER>>
#debug=0                      #debug=0
#logfile=$HOME/mpp.log        #logfile=$HOME/mpp.log
#vo=xv,x11                    vo=xv,x11
#ao=arts,esd,oss              ao=arts,esd,oss
#download=1                   #download=1
#dload-dir=$HOME/tmp          #dload-dir=$HOME/tmp
#keep-download=0              #keep-download=0
#noembed=0                    noembed=0
#cachesize=256                cachesize=512
                              cache-percent=30
#use-mimetypes=0              #use-mimetypes=0
#enable-real=0                enable-real=1
enable-wm=1                   enable-wm=1
enable-qt=1                   enable-qt=1
enable-mpeg=1                 enable-mpeg=1
enable-ogg=1                  enable-ogg=1
qt-speed=med                  qt-speed=high
#rtsp-use-tcp=0               rtsp-use-tcp=0
#nomediacache=0               #nomediacache=0


There are a few important things to keep in your mind.

* cache-percent=VALUE line does not exist in mplayerplug-in.conf for linux. but
  it does in mplayerplug-in.conf for NetBSD native. Movies did not work correctly
  on my NetBSD i386 2.99 box without this line. So I added this one in 
  mplayerolug-in.conf for linux. 30 is the best value for my box.

* qt-speed=med was needed to be modefied for my box. If you have up-to-date machines
  keep it as it is.

* As official site says, you should uncomment rtsp-use-tcp=0, or embedded mplayer
  hangs.   

   official site 
     http://mplayerplug-in.sourceforge.net/

   Read FAQ and configuration carefully.

(4) launch your browser and type "about:plugins" in URL bar, and check whether if
    browser detects mplayerplug-in.

(5) Go to http://www.pixar.com and watch trailers for both The Incredibles and Cars.

(6) Congratulations!


<PROBLEMS>
* Resize box entirely does not work. However native one does. What a bummer! 

* Mplayer(/usr/pkg/emul/linux/usr/bin/mplayer) complained me of that when it 
  execused one libralies was missing. So I did symbolic link. I forgot what 
  it was. Sorry.  

* This install has done by hand, therefore if you would like to delete them
  you may need to uninstall linux emulation packages as well. Because it messed up.


<REF.>
* http://rpm.pbone.net/ will be your friend if you will try from scratch.


<WISH>
* Anyone want to create pkgsrc for this? 


In conclusion, please try _at your own risk_.


musashi [15] ~ > uname -a
NetBSD musashi 2.99.9 NetBSD 2.99.9 (MUSASHI) #0: Tue Oct 12 03:43:01 JST 2004  shigeki3@musashi:/usr/obj/sys/arch/i386/compile/MUSASHI i386

Nov. 22th dated cvs pkgsrc.


Have fun.

---
Shigeki UNO