How to install MPlayer-0.90pre5.tar.bz2

2002.11.21

from:
http://www.mplayerhq.hu/homepage/dload.html on
http://www.mplayerhq.hu/homepage/news.html

MPlayer-0.90pre10.tar.bz2 ( MPlayer )
mp-arial-iso-8859-1.zip ( Fonts & symbols package for OSD ISO 8859-1 )
mp-arial-iso-8859-2.zip ( Fonts & symbols package for OSD ISO 8859-2)
w32codec.tar.bz2 ( Win32 codecs )
default.tar.bz2 ( The default MPlayer skin )

wmv file のエロ動画を見るため。きっぱり。



Check FFmpeg libavcodec
MPEG4 というヤツ向のコーデックらしく、
これが結構重要らしい。

REAME によると MPlayer-0.90pre10.tar.bz2 を展開したディレクトリの
  ./libavcodec/
が空でなければそれでオッケーだそうだ。
で、空ではなかく、中味が詰まっていたので、パスして次へ。


Install w32codec-0.60.tar.bz2
Win 向けの wmv と avi 型式の動画を見る為のブツ。

MPlayer の Down load Page の Win32 Codecs という所からゲット。

$ tar xzvf w32codec-0.60.tar.bz2
$ cd ./w32codec-0.90/
$ su -

# mkdir /usr/lib/win32/
# cp ./* /usr/lib/win32/


Install SDL
どこぞから(たぶん、Vine Plus)持って来た SDL と、その周辺をインストール。
でないと、mplayer がうまく起動しない。

SDL-1.2.3-0vl1.i386.rpm
SDL-devel-1.2.3-0vl1.i386.rpm
SDL_image-1.2.0-1.i386.rpm
SDL_image-devel-1.2.0-1.i386.rpm
SDL_mixer-1.2.0-1.i386.rpm
SDL_mixer-devel-1.2.0-1.i386.rpm
SDL_ttf-2.0.4-0vl1.i386.rpm
SDL_ttf-devel-2.0.4-0vl1.i386.rpm
を、# rpm -ivh で入れた。

Configuring and Make MPlayer
$ tar xzvf MPlayer-0.90pre5.tar.bz2
$ cd ./MPlayer-0.90pre5/
$ ./configure --enable-gui
No Error

Config files successfully generated by ./configure !

  Install prefix: /usr/local
  Data directory: /usr/local/share/mplayer
  Config direct.: /usr/local/etc/mplayer

  Byte order: Little Endian
  Optimizing for: i686 mmx mmx2 sse sse2 mtrr
  
  Enabled optional drivers:
    Input: network tv-v4l tv mpdvdkit2 vcd 
    Codecs: libavcodec xanim directshow win32 
    Audio output: oss mpegpes(file) 
    Video output: xvidix vesa gif89a jpeg png mpegpes(file) fbdev svga opengl dga xv x11 
  Disabled optional drivers:
    Input: tv-bsdbt848 cdda dvdnav dvdread dvdcss 
    Codecs: opendivx xvid libdv real libvorbis libmad liblzo 
    Audio output: sgi sun alsa arts dxr2 nas win32 sdl 
    Video output: bl zr dxr3 dxr2 directx sdl aa ggi xmga mga directfb tdfxfb 3dfx 

 'config.h' and 'config.mak' contain your configuration options.
 Note: If you alter theses files (for instance CFLAGS) MPlayer may no longer
      compile *** DO NOT REPORT BUGS if you tweak these files ***

 'make' will now compile MPlayer and 'make install' will install it.
 Note: On non-Linux systems you might need to use 'gmake' instead of 'make'.

 Please check mtrr settings at /proc/mtrr (see DOCS/video.html#mtrr)


 Check configure.log if you wonder why an autodetection failed (check whether the
 development headers/packages are installed).

 If you suspect a bug, please read DOCS/bugreports.html.
--enable-gui は GUI Interface を使うためのオプション。
デフォルトは無効になっている。
その心は、未だアルファバージョンの状態だから。
README に
> A GUI with skin support is in the alpha development stage, but not completely finished yet. なんて書いていやがった。
しかも、これ。
> For the GUI you need the libpng and GTK 1.2 development packages.

うーーん、いまいちか?

configure.log に結果が残る。
で、見てみると、VD は使えないらしい。
多分、
  libdvdcss
  libdvdcss-devel
  libdvdread
  libdvdread-devel
あたりが必要なんだろう。
めんどくさいし、DVD のドライブなんて暫く買うつもりもないからブッチした。

$ make
No Error

Installing MPlayer
$ su -
# cd ~/work/tar-ball/mplayer-0.90-pre10/MPlayer-0.90pre10/
# make install
No Error

Installed
  /usr/local/lib/libdha-0.1.so
  /usr/local/lib/mplayer/
  /usr/local/bin/mplayer
  /usr/local/man/man1/mplayer.1
  /usr/local/man/man1/mencoder.1
  /usr/local/share/mplayer/font/
  /usr/local/share/mplayer/codecs.conf
 
su - じゃなくて、 su でルートになると、ldconfig を実行するところでエラーを起こす。
不精シナイで、$ su - しましょう。

Installing the onscreen display fonts
これをしないと字幕が使えないそうな。
フォントくらい自動でインストールしてほしいな。

$ unzip mp-arial-iso-8859-1.zip
$ cd iso-8859-1/
$ su
# cp ./iso-8859-1/arial-14/* /usr/local/share/mplayer/font/

ってか、/usr/local/share/mplayer/font/ はいつ作られたんだ?

Start Up
起動は
$ mplayer -vo sdl -ao sdl files
と、いちいち指定しなければいけない。

そんなときは
~/.mplayer/config に
  > vo=sdl
  > ao=sdl
を付けておくと起動時のオプションを付ける手間が省ける。









戻る