linux下安装mplayer

阅读更多
系统:Red Hat Enterprise Linux Server release 5 (Tikanga)
起初我通过源代码安装:
c d / usr / local / src
wgethttp:
// www1 . mplayerhq . hu / MPlayer / releases / MPlayer- 1 . 0rc2 . tar . bz2
tar-xjvfMPlayer-
1 . 0rc2 . tar . bz2
c
d MPlayer- 1 . 0rc2
./ configure
Make&&makeinstall
安装好了,
问题1)从wmv转flv
Optionlavfopts:Unknownsuboption
i_certify_that_my_video_stream_does_not_use_b_frames
Errorparsingoption
on the command line:-lavfopts

Exiting
... ( errorparsing command line )
参看此篇文档说这个选项去掉了
http://lists.mplayerhq.hu/pipermail/mplayer-users/2007-August/068530.html
于是去掉-lavfopts i_certify_that_my_video_stream_does_not_use_b_frames
Ok
问题2)从rmvb转flv
出现问题
openingwin32dll'drvc . so'
Win32LoadLibraryfailedtoload:drvc
. so , / usr / local / lib / codecs / drvc . so , / usr / lib / win32 / drvc . so , / usr / local / lib / win32 / drvc . so
于是
c d / usr / local / src
wgethttp:
// www1 . mplayerhq . hu / MPlayer / releases / codecs / essential- 20071007 . tar . bz2
Tar-xjvfessential-
20071007 . tar . bz2
m
kdir -p / usr / local / lib / codesc
cp-ressential-
20071007 . tar . bz2 / * / usr / local / lib / codesc
ok
问题3)从mp3或者wma到flv
出现问题:
Videostreamismandatory!
查了几篇有限的文档,偶尔有两篇提出了解决方法,但我试过无效,无奈之下放弃
于是采用rpm安装别的版本
最初的rpm是
lame-3.97-1.i386.rpm (必须,否者无法安装mplayer)
libungif-4.1.0-15.i386.rpm(必须,否者无法安装mplayer,会报错:安装时缺少libu ngif.so.4)
地址: ftp://rpmfind.net/linux/redhat/9/en/os/i386/RedHat/RPMS/libungif-4.1.0-15.i386.rpm
mplayer-1.0.9-1.i386.rpm
如果你要截图那么需要安装
SDL-1.2.9-5.2.1.i386.rpm必须,否者无法安装ffmpeg,否则又会报错,缺少某某文件)
地址: http://fedora.osmirror.nl/core/development/i386/Fedora/RPMS/SDL-1.2.9-5.2.1.i386.rpm
ffmpeg-0.5.0-1.i386.rpm
安装好了之后转mp3,wma这种音频没问题,
问题1)
但转换视频的是发现必须加上
-lavfopts i_certify_that_my_video_stream_does_not_use_b_frames这个选项
问题2)
转换rm
Tryingtoforcevideocodecdriverfamilyqtvideo ...
Openingvideodecoder:[realvid]RealVideodecoder
Error:
/ usr / local / lib / codecs / drvc . so:cannot restore segmentprotafterreloc:Permissiondenied
Win32LoadLibraryfailedtoload:drvc
. so , / usr / local / lib / codecs / drvc . so , / usr / lib / win32 / drvc . so , / usr / local / lib / win32 / drvc . so
Errorloadingdll
ERROR:Could
not openrequiredDirectShowcodecdrvc . so .
ReadtheRealVideosectionoftheDOCS!
VDecoderinitfailed:
(
Openingvideodecoder:[realvid]RealVideodecoder
Error:
/ usr / local / lib / codecs / drv3 . so . 6.0 :cannotopensharedobjectfile:Nosuchfileordirectory
Win32LoadLibraryfailedtoload:drv3
. so . 6.0 , / usr / local / lib / codecs / drv3 . so . 6.0 , / usr / lib / win32 / drv3 . so . 6.0 , / usr / local / lib / win32 / drv3 . so . 6.0
Errorloadingdll
ERROR:Could
not openrequiredDirectShowcodecdrv3 . so . 6.0 .
ReadtheRealVideosectionoftheDOCS!
VDecoderinitfailed:
(
Openingvideodecoder:[realvid]RealVideodecoder
Win32LoadLibraryfailedtoload:drv33260
. dll , / usr / local / lib / codecs / drv33260 . dll , / usr / lib / win32 / drv33260 . dll , / usr / local / lib / win32 / drv33260 . dll
Errorloadingdll
ERROR:Could
not openrequiredDirectShowcodecdrv33260 . dll .
ReadtheRealVideosectionoftheDOCS!
VDecoderinitfailed:
(
Openingvideodecoder:[realvid]RealVideodecoder
Error:
/ usr / local / lib / codecs / drvc . bundle / Contents / MacOS / drvc:cannotopensharedobjectfile:Nosuchfileordirectory
Win32LoadLibraryfailedtoload:drvc
. bundle / Contents / MacOS / drvc , / usr / local / lib / codecs / drvc . bundle / Contents / MacOS / drvc , / usr / lib / win32 / drvc . bundle / Contents / MacOS / drvc , / usr / local / lib / win32 / drvc . bundle / Contents / MacOS / drvc
Errorloadingdll
ERROR:Could
not openrequiredDirectShowcodecdrvc . bundle / Contents / MacOS / drvc .
ReadtheRealVideosectionoftheDOCS!
VDecoderinitfailed:
(
Cannot
find codecmatchingselected-voandvideo format 0x30335652 .
ReadDOCS
/ HTML / en / codecs . html!
==========================================================================

Exiting
...
修改/etc/sysconfig/selinux
让SELINUX=disabled
问题解决
3)在转换某个mp3的时候,发现获取转换的时长有问题,发现原来只有200多秒的mp3,会被认为是有
1000多秒
于是将rpm换成
mplayer-1.0.9-2.i386.rpm
安装时发现缺少 libfribidi.so.0
于是又装上fribidi0-0.10.4-0.i586.rpm
地址: wget ftp://ftp.pbone.net/mirror/ftp.sourceforge.net/pub/sourceforge/f/fr/fribidi/fribidi0-0.10.4-0.i586.rpm
到目前为止,总算解决了以前存在的若干问题

你可能感兴趣的:(Linux,RedHat,.net,C,C++)