分享
 
 
 

How To Install On Debian with Several Codecs

王朝other·作者佚名  2006-01-10
窄屏简体版  字體: |||超大  

How To Install On Debian with Several Codecs

mplayer project home page

Ce tutoriel est aussi disponible en francais (thanks for the translation Stephane).

--

These step by step instructions have been tested on June 25, 2005

I have tested this how-to on Etch (Testing).

This howto only includes codecs for win32, Quicktime, RealPlayer, Live.com (streaming for protocols such as reaplayer), and some less common AVI.

Not up for doing all of this? There are unofficial debian packages provided by marillat: read more

Otherwise...

Files to download

Source:

MPlayer v1.0pre7 source - 6.6M M go here to download, or download directly from:mirror2)

(unless you have a src file of your own you wish to use)mirror1 |--

Codecs:

win32codecs.tar.bz2 - 6.3 M (mirror1 | mirror2)

divx4linux-20020418.tgz - 288 K (mirror1 | mirror2)

live.2005.06.16.tar.gz - 398 K (mirror2)

qt6dlls.tar.bz2 - 2.5 M (mirror1 | mirror2)

rp8codecs.tar.bz2 - 380 K (mirror1 | mirror2) OR rp9codecs.tar.bz2 - 500 K (mirror1 | mirror2)

(some realplayer stuff wont work with 8, some won't work with 9, you

just need to choose which is best for you. I use 8, so in my directions

I will be using that, just change the number if you want to use 9)download or (mirror1 | --

User Conf:

mplayer-user-conf.tar - 690 k (mirror1 | mirror2)

Since I don't know where you are

downloading these to, you will just need to move them to the proper

place when I ask you to unpack them.

Uninstalling Old Version

If you have an older version of mplayer on your system remove all traces of it (if you used a deb do dpkg -P mplayer

then go through your system and make sure EVERYTHING for mplayer is

gone, some things will not be removed with dpkg -P). This step is VERY

important.

Things from apt

as root:

apt-get install

libogg0 libogg-dev libvorbis0a libvorbis-dev vorbis-tools libpng3

libpng2-dev liblogfile-rotate-perl libconfhelper-perl debhelper

fakeroot g++ libgtk1.2 libgtk1.2-dev svgalibg1 svgalibg1-dev aalib1

aalib1-dev libsdl1.2-dev

IMPORTANT: please click here to find out what these packages are for you may decide you don't want them all, or that you need different packages between stable and testing - The directions assume you want to install all of these, you may need to edit a couple directions if you decide you do not want all these features and codecs.

--

NOTE: Make sure your gcc and g++ versions match!

Installing the Codecs

as root:

rm -r /usr/lib/win32

(If it exists. These

are the w32 codecs, don't worry, we will replace these later, you can

pack them up and move them if you are really concerned about losing

them)

cd /usr/lib/

mkdir win32

Win32 codecs

cd win32/

tar -jxvvf win32codecs.tar.bz2

Quicktime codecs

tar -jxvvf qt6dlls.tar.bz2

Live.com Codecs (for streaming realplayer)

cd /usr/local/lib/

tar -xvvzf live.2005.06.16.tar.gz

cd live/

./genMakefiles linux

make

divx4linux package, added support for filetypes like AVI (see http://avifile.sourceforge.net/ for more)

cd /usr/src/

mkdir mplayer

cd mplayer/

tar -xvvzf divx4linux-20020418.tgz

cd divx4linux-20020418/

sh install.sh

Realplayer Codecs

cd /usr/src/mplayer/

tar -jxvvf rp8codecs.tar.bz2

Setting up the ~/.mplayer directory

(you can skip this if you have your own configs and settings, and/or don't want to use gmplayer)

become your user

cd

tar -xvvf mplayer-user-conf.tar

this will create the ~/.mplayer directory including a skin (neutron), arial size 18 font, and config file

in line 27 of the

~/.mplayer/gui.conf file, change: font_name =

"/home/lyz/.mplayer/font/font.desc" to reflect your username (I havent

found a way around this step, ~ doesn't work).

Creating the .deb and installing mplayer

as root:

cd /usr/src/mplayer/

tar -jxvvf MPlayerVersion.tar.bz2 (where 'Version' is your version, ie -1.0pre7)

cd MPlayerVersion

DEB_BUILD_OPTIONS="--disable-runtime-cpudetection

--enable-gui --disable-rtc --enable-live

--with-livelibdir=/usr/local/lib/live --enable-real

--with-reallibdir=/usr/src/mplayer/rp8codecs/" fakeroot debian/rules

binary

Make sure there aren't spaces between -- and any-of-the-options

when it's finished compiling, it will create an mplayerVersion.deb file in /usr/src/mplayer

cd /usr/src/mplayer/

dpkg -i mplayerVersion.deb

when it asks about video output choose which is right for you, if unsure just use xv

The End

launch mplayer by typing mplayer moviefile (where moviefile is the name of the file you wish to use to test mplayer)

You're done! Congrats!

Some Notes:

This also includes

gmplayer. gmplayer allows you to use "skins" for mplayer, I don't

usually use skins because I don't need the gui control, and the skins

tend to take away from speed and quailty of movie decoding.

In

debian unstable, in September of 2003 the following was noted: "The

gtk1.2 and gtk1.2-dev was not found within the sources. This made the

building of the deb file abort quickly. A bit of searching the web and

guessing made me try install libgtkmm-dev. This did it. The following

dpkg -i went fine." (thanks Helge)

It was also noted that in unstable xv might not work properly as a video output, try x11.

Sometimes you will

want to watch realplayer files that are .ram; remember that a .ram can

be viewed as a simple text file with the stream location of the actual

.rm is in that file. mplayer will not play the .ram but it will play

the .rm stream. (Apparently there is a patch out so that mplayer will

play .ram but I have never used it).

FAQ

There is an mplayer in apt, why would I want to install this one?

If you are at this

site, you probably know the answer to this. The one in apt is an older

version, and above all, does not support the quicktime codecs.

Something broke, can you help?

I might be able to,

as I said, I have tested this, and if something broke it might be a

conflict in versions (stable vs testing vs unstable vs mixed system) or

a simple user error. It is quite possibly due to not completely

uninstalling previous versions of mplayer, this is a very important

step! If all else fails, you can always uninstall the deb, and

reinstall what you had before.

I'm not on debian but I want to install mplayer, any pointers?

Not really, I could

point you to some sites I have found for other distros, but I have

never tried them, so I can't guarantee they will work.

Why don't you include more codecs?

Are there many more? I have included the ones I primarily use, so these are the only codecs I have installed and tested.

What about DVD support?

I don't have a DVD-ROM, so I have no way of testing DVD support, sorry.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有