Subject: FAIR COPY (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: 12/06/2004 04:02:38
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)?

<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) If you try to launch mplayer(/usr/pkg/emul/linux/usr/bin/mplayer) at this
    point, it will not launch with error messages. Therefore do the following
    synbolic link.

 # ln -s /usr/pkg/emul/linux/lib/libptheread.so.0 /usr/pkg/emul/linux/usr/lib/.
 

(3) 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)


(4) Put mplayerplug-in.so into firefox's plugin directory.

 # ln -s /usr/pkg/emul/linux/usr/lib/browser-plugins/mplayerplug-in.so /PATH/TO
   /BROWSER/plugins/.

  or

 # cp /usr/pkg/emul/linux/usr/lib/browser-plugins/mplayerplug-in.so /PATH/TO
   /BROWSER/plugins/.


(5) 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.


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

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

(8) Congratulations!

HTH,
---
Shigeki UNO (Sorry for annoying that I posted this topic several times.)