Chinaunix首页 | 论坛 | 博客
  • 博客访问: 62468
  • 博文数量: 18
  • 博客积分: 1435
  • 博客等级: 上尉
  • 技术积分: 210
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-30 14:27
文章分类

全部博文(18)

文章存档

2012年(1)

2009年(3)

2008年(10)

2007年(4)

我的朋友

分类: LINUX

2007-12-30 18:47:47

一.为了省事,写了一个安装脚本:

使用此脚本的前提条件是先下载以下源码包:
  • MPlayer-1.0rc2.tar.bz2
  • xvidcore-1.1.3.tar.gz
  • live.2007.11.01.tar.gz
  • essential-20071007.tar.bz2
  • lame-3.97.tar.gz
  • Blue-1.7.tar.bz2

#!/bin/bash

# Title : install_mplayer

# Programmer: Kelvin Cheung

# Purpose : Install mplayer for Fedora 8

# Originally Written: 11/13/2007

# Last Changed : 12/01/2007


#sources:

#- MPlayer-1.0rc2.tar.bz2

#   xvidcore-1.1.3.tar.gz

#   live.2007.11.01.tar.gz

#   essential-20071007.tar.bz2

#   lame-3.97.tar.gz

#   Blue-1.7.tar.bz2


echo "Installing MPlayer ..."


echo "Lame ..."

tar xzf lame-3.97.tar.gz >/dev/null 2>&1

pushd lame-3.97 >/dev/null 2>&1

./configure >/dev/null 2>&1

make >/dev/null 2>&1

make install >/dev/null 2>&1

popd >/dev/null 2>&1

rm -rf lame-3.97


echo "Xvid ..."

tar xzf xvidcore-1.1.3.tar.gz >/dev/null 2>&1

pushd xvidcore-1.1.3/build/generic >/dev/null 2>&1

./configure >/dev/null 2>&1

make >/dev/null 2>&1

make install >/dev/null 2>&1

popd >/dev/null 2>&1

rm -rf xvidcore-1.1.3


echo "LIVE555 ..."

tar xzf live.2007.11.01.tar.gz >/dev/null 2>&1

pushd live >/dev/null 2>&1

./genMakefiles linux >/dev/null 2>&1

make >/dev/null 2>&1

popd >/dev/null 2>&1

mv live /usr/local/lib/


echo "Codecs ..."

tar xjf essential-20071007.tar.bz2 >/dev/null 2>&1

mv essential-20071007 /usr/local/lib/codecs


echo "MPlayer ..."

tar xjf MPlayer-1.0rc2.tar.bz2 >/dev/null 2>&1

pushd MPlayer-1.0rc2 >/dev/null 2>&1

./configure --prefix=/usr --confdir=/etc/mplayer --codecsdir=/usr/local/lib/codecs \

--enable-gui --enable-largefiles --enable-menu >/dev/null 2>&1

make >/dev/null 2>&1

make install >/dev/null 2>&1

popd >/dev/null 2>&1

rm -rf MPlayer-1.0rc2


echo "OSD/Fonts ..."

ln -s /usr/share/fonts/cjkunifonts-uming/uming.ttf ~/.mplayer/subfont.ttf


echo "GUI/Skins ..."

tar xjf Blue-1.7.tar.bz2 >/dev/null 2>&1

mv Blue /usr/share/mplayer/skins/

pushd /usr/share/mplayer/skins >/dev/null 2>&1

ln -s Blue default

popd >/dev/null 2>&1 


echo " done."



文件:install_mplayer.tar.bz2
大小:0KB
下载:下载

编译选项如下:

Config files successfully generated by ./configure --prefix=/usr --confdir=/etc/mplayer --codecsdir=/usr/local/lib/codecs --enable-gui --enable-largefiles --enable-menu !

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

  Byte order: little-endian
  Optimizing for: prescott

  Languages:
    Messages/GUI: en
    Manual pages: en

  Enabled optional drivers:
    Input: ftp pvr tv-teletext tv-v4l2 tv-v4l tv live555 libdvdcss(internal) dvdread(internal) vcd dvb network
    Codecs: xvid libavcodec qtx real xanim win32 faad2 libmpeg2 liba52 mp3lib tremor(internal) gif
    Audio output: alsa arts oss v4l2 sdl mpegpes(dvb)
    Video output: v4l2 sdl gif89a pnm jpeg png mpegpes(dvb) fbdev xvidix cvidix opengl dga xv x11 xover md5sum tga
    Audio filters:
  Disabled optional drivers:
    Input: dvdnav vstream radio nemesi cddb cdda smb
    Codecs: x264 libdv libamr_wb libamr_nb faac musepack libdca libtheora speex toolame twolame libmad liblzo
    Audio output: sun openal jack polyp esd ivtv dxr2 nas
    Video output: ivtv dxr3 dxr2 vesa zr zr2 svga caca aa ggi xmga mga winvidix 3dfx xvmc dfbmga directfb bl xvr100 tdfx_vid s3fb tdfxfb
    Audio filters: ladspa

'config.h' and 'config.mak' contain your configuration options.

二.参考:

阅读(1049) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~