LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 803|回复: 3

安装Mplayer求助! 

[复制链接]
发表于 2004-12-23 14:13:50 | 显示全部楼层 |阅读模式
装MPlayer 装不上 看前辈的文章也没弄上
版本不一样 方法是不是也不一样呢  是不是有些地方就不同了呢
发表于 2004-12-23 17:30:44 | 显示全部楼层
软件专题区的精华贴不是有文章专门介绍的吗?我就是用那种办法装的.但下载速度好慢
发表于 2004-12-23 18:23:47 | 显示全部楼层
MPlayer-1.0pre5


Introduction to MPlayer


The MPlayer package contains an audio/video player controlled via the command line or a graphical interface which is able to play almost every popular audio and video file format and CODEC (COder/DECoder, also COmpressor/DECompressor). With supported video hardware and additional drivers, MPlayer can play video files without an X window system installed.


For a full list of file formats, CODECs and output devices supported by MPlayer, visit the MPlayer web site.


Package information


Download (HTTP): http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre5.tar.bz2


Download (FTP): ftp://ftp1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0pre5.tar.bz2


Download size: 5.1 MB


Estimated Disk space required: 74 MB (additional 19 MB for CODECs)


Estimated build time: 1.80 SBU


Additional downloads


Patches


Required Patch (for fbdev driver support): http://www.linuxfromscratch.org/ ... -kernel_2.6-1.patch


CODECs


Proprietary CODECs: http://www.mplayerhq.hu/MPlayer/ ... al-20041107.tar.bz2


Additional CODECs: http://www.mplayerhq.hu/MPlayer/releases/codecs/


Skins


Default GUI skin: http://www1.mplayerhq.hu/MPlayer/Skin/Blue-1.4.tar.bz2


Additional skins: http://www1.mplayerhq.hu/MPlayer/Skin/


Fonts


Prerendered fonts: http://www1.mplayerhq.hu/MPlayer ... -iso-8859-1.tar.bz2


Additional fonts: http://www1.mplayerhq.hu/MPlayer/releases/fonts/


Note


The CODECs, skins and fonts are not required to build and use MPlayer.


MPlayer dependencies


Optional


X (XFree86-4.4.0 or X.org-6.8.1), libpng-1.2.7, libjpeg-6b, GTK+-1.2.10, DirectFB, SVGAlib, FreeType-2.1.9, Fontconfig-2.2.3, libungif-4.1.3 or giflib-4.1.3, libogg-1.1.2 libvorbis-1.1.0, AAlib-1.4rc5, SDL-1.2.7, XviD-1.0.2, aRts-1.3.0, ALSA-1.0.7, EsounD-0.2.35, LZO-1.08, libmad-0.15.1b, CDParanoia-III-9.8, libdv-0.103, libdvdread-0.9.4, NAS-1.6, Samba-3.0.7, LAME-3.96.1, XMMS-1.2.10, FLAC-1.1.1, libFAME-0.9.1, Theora, MP1E, FAAD2, GGI, FriBidi, unrarlib, LIRC, lirccd, libcaca, libmatroska, LIVE.COM Streaming Media, bio2jack, Dxr2, libdxr3 and Enca


Installation of MPlayer


CODEC installation (optional)


If you downloaded any proprietary CODECs (which can provide support for additional audio and video formats such as Real, Indeo and QuickTime), extract them to /usr/lib/mplayer/codecs using the following commands (substitute and/or add different CODEC filenames, if necessary):

install -d -m755 /usr/lib/mplayer/codecs &&
tar xjfv ../essential-20041107.tar.bz2 \
    -C /usr/lib/mplayer/codecs --strip-path=1 &&
chown -R root:root /usr/lib/mplayer/codecs

If you installed any CODECs, ensure you add --with-codecsdir=/usr/lib/mplayer/codecs to the configure script.


GUI installation (optional)


To enable building the GUI version of MPlayer (requires GTK+-1.2.10), add --enable-gui to the configure script. You'll also need to extract at least one skin. Extract the desired skin to the default location:

install -d -m755 /usr/share/mplayer/Skin &&
tar xjvf ../Blue-1.4.tar.bz2 \
    -C /usr/share/mplayer/Skin &&
chown -R root:root /usr/share/mplayer/Skin/Blue &&
ln -sf Blue /usr/share/mplayer/Skin/default

Installing OSD and subtitles support (optional)


To enable OSD (On Screen Display) and subtitles support, add --enable-menu to the configure script. You'll also need to set up at least one font (see font installation instructions a little later).


Main MPlayer installation


Note


The package maintainers recommend building without any optimizations.


Install MPlayer by running the following commands:

patch -Np1 -i ../MPlayer-1.0pre5-kernel_2.6-1.patch &&
./configure --prefix=/usr --confdir=/etc/mplayer \
    --enable-largefiles &&
make &&
make install &&
install -d -m755 /usr/share/doc/mplayer &&
cp -R DOCS/* /usr/share/doc/mplayer &&
chown -R root:root /usr/share/doc/mplayer

You will need codecs.conf only if you want to change its properties, as the main binary contains an internal copy of it. Ensure any changes you make to codecs.conf achieve the desired results, as incorrect entries in this file have been known to cause errors. If necessary, create the file using the following command.

cp etc/codecs.conf /etc/mplayer

OSD and subtitles font installation (required if --enable-menu was passed to configure)


The recommended method to set up a font for MPlayer is to link a TTF file to your ~/.mplayer directory. A link should be created in each user's home directory who may use MPlayer. For example:

mkdir ~/.mplayer &&
ln -sf /usr/X11R6/lib/X11/fonts/TTF/luxisri.ttf \
    ~/.mplayer/subfont.ttf

There are several other ways to set up a font package. To use a prerendered MPlayer font package, extract and link one of the font tarballs using the following commands:

tar xjvf ../font-arial-iso-8859-1.tar.bz2 \
    -C /usr/share/mplayer/font &&
chown -R root:root /usr/share/mplayer/font &&
cd /usr/share/mplayer/font &&
ln -sf font-arial-iso-8859-1/font-arial-[font size]-iso-8859-1/* .

Available font sizes are 14, 18, 24 or 28.


Additional information as well as additional methods to set up an MPlayer font package can be found at http://www.mplayerhq.hu/DOCS/HTML/en/subosd.html#mpsub-install.


Installation for DVD playback (optional)


If you want DVD playback with MPlayer, you need to ensure a link exists from your DVD drive to /dev/dvd. If necessary, create the link using the following command:

ln -s /dev/[dvd drive] /dev/dvd

Replace [dvd drive] with whatever device is appropriate, for example /dev/hdc. If you don't know which device to choose, type:

dmesg | grep DVD

It should result in an output like:

hdc: Pioneer DVD-ROM ATAPIModel DVD-114 0110,
ATAPI CD/DVD-ROM drive

Configuring MPlayer


Config files


/etc/mplayer/*, ~/.mplayer/*


Contents


The MPlayer package contains mplayer, gmplayer and mencoder.


Description


mplayer


mplayer manages the input formats, the CODECs and the output formats to play video files, DVDs, (S)VCDs or network streams containing audio and/or video information on your system.


Examples:

mplayer -fs blfs.avi
mplayer -vo fbdev -fb /dev/fb0 dvd://1 -aid 128 -sub en -framedrop
mplayer -fs vcd://1    # works both for VCDs and SVCDs
mplayer http://www.students.uni-marburg.de/~Klossa/hapkidofight_lo.mpg

For further information, look at the very good documentation included with the package in the source tree subdirectory DOCS (also installed at /usr/share/doc/mplayer).


gmplayer


gmplayer is MPlayer with a graphical user interface.


mencoder


mencoder is used to encode any MPlayer playable movie to DivX4, XviD or any CODEC in libavcodec with PCM/MP3/VBRMP3 audio.


Example:

rm frameno.avi
mencoder -dvd 1 -aid 128 -ovc frameno -oac mp3lame \
-lameopts vbr=3 -o frameno.avi

# mencoder should output bitrates for average encodings
# now, choose one you like best! In the following lines,
# replace <bitrate> and <name.avi> with statements of your
# personal liking.

mencoder -dvd 1 -aid 128 -oac copy -ovc lavc \
-lavcopts vcodec=mpeg4:vpass=1:vhq:vbitrate=<bitrate> -o <name.avi>
mencoder -dvd 1 -aid 128 -oac copy -ovc lavc \
-lavcopts vcodec=mpeg4:vpass=2:vhq:vbitrate=<bitrate> -o <name.avi>
mencoder -forceidx <name.avi>
说的很详细,可以参考下。
发表于 2004-12-24 00:18:03 | 显示全部楼层
Post by aidiseng
装MPlayer 装不上 看前辈的文章也没弄上
版本不一样 方法是不是也不一样呢  是不是有些地方就不同了呢



第一次装MPlaye我用了整整3天

http://www.linuxsir.cn/bbs/showthread.php?t=157349
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表