linux下安装mplayer
系统:Red Hat Enterprise Linux Server release 5 (Tikanga) 起初我通过源代码安装: cd /usr/local/srcwget http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2tar -xjvf MPlayer-1.0rc2.tar.bz2
·
系统:Red Hat Enterprise Linux Server release 5 (Tikanga)
起初我通过源代码安装:
c
d
/
usr
/
local
/
src
wget http: // www1 . mplayerhq . hu / MPlayer / releases / MPlayer- 1 . 0rc2 . tar . bz2
tar -xjvf MPlayer- 1 . 0rc2 . tar . bz2
c d MPlayer- 1 . 0rc2
./ configure
Make && make install
wget http: // www1 . mplayerhq . hu / MPlayer / releases / MPlayer- 1 . 0rc2 . tar . bz2
tar -xjvf MPlayer- 1 . 0rc2 . tar . bz2
c d MPlayer- 1 . 0rc2
./ configure
Make && make install
安装好了,
问题1)从wmv转flv
Option lavfopts: Unknown suboption
i_certify_that_my_video_stream_does_not_use_b_frames
Error parsing option on the command line: -lavfopts
Exiting ... ( error parsing command line )
i_certify_that_my_video_stream_does_not_use_b_frames
Error parsing option on the command line: -lavfopts
Exiting ... ( error parsing command line )
参看此篇文档说这个选项去掉了
于是去掉-lavfopts i_certify_that_my_video_stream_does_not_use_b_frames
Ok
问题2)从rmvb转flv
出现问题
opening win32 dll 'drvc
.
so'
Win32 LoadLibrary failed to load: drvc . so , / usr / local / lib / codecs / drvc . so , / usr / lib / win32 / drvc . so , / usr / local / lib / win32 / drvc . so
Win32 LoadLibrary failed to load: drvc . so , / usr / local / lib / codecs / drvc . so , / usr / lib / win32 / drvc . so , / usr / local / lib / win32 / drvc . so
于是
c
d
/
usr
/
local
/
src
wget http: // www1 . mplayerhq . hu / MPlayer / releases / codecs / essential- 20071007 . tar . bz2
Tar -xjvf essential- 20071007 . tar . bz2
m kdir -p / usr / local / lib / codesc
cp -r essential- 20071007 . tar . bz2 / * / usr / local / lib / codesc
wget http: // www1 . mplayerhq . hu / MPlayer / releases / codecs / essential- 20071007 . tar . bz2
Tar -xjvf essential- 20071007 . tar . bz2
m kdir -p / usr / local / lib / codesc
cp -r essential- 20071007 . tar . bz2 / * / usr / local / lib / codesc
ok
问题3)从mp3或者wma到flv
出现问题:
Video stream is mandatory!
查了几篇有限的文档,偶尔有两篇提出了解决方法,但我试过无效,无奈之下放弃
于是采用rpm安装别的版本
最初的rpm是
lame-3.97-1.i386.rpm (必须,否者无法安装mplayer)
libungif-4.1.0-15.i386.rpm(必须,否者无法安装mplayer,会报错:安装时缺少libu ngif.so.4)
mplayer-1.0.9-1.i386.rpm
如果你要截图那么需要安装
SDL-1.2.9-5.2.1.i386.rpm必须,否者无法安装ffmpeg,否则又会报错,缺少某某文件)
ffmpeg-0.5.0-1.i386.rpm
安装好了之后转mp3,wma这种音频没问题,
问题1)
但转换视频的是发现必须加上
-lavfopts i_certify_that_my_video_stream_does_not_use_b_frames这个选项
问题2)
转换rm
Trying to force video codec driver family qtvideo
...
Opening video decoder: [realvid] RealVideo decoder
Error: / usr / local / lib / codecs / drvc . so: cannot restore segment prot after reloc: Permission denied
Win32 LoadLibrary failed to load: drvc . so , / usr / local / lib / codecs / drvc . so , / usr / lib / win32 / drvc . so , / usr / local / lib / win32 / drvc . so
Error loading dll
ERROR: Could not open required DirectShow codec drvc . so .
Read the RealVideo section of the DOCS!
VDecoder init failed : (
Opening video decoder: [realvid] RealVideo decoder
Error: / usr / local / lib / codecs / drv3 . so . 6.0 : cannot open shared object file: No such file or directory
Win32 LoadLibrary failed to load: 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
Error loading dll
ERROR: Could not open required DirectShow codec drv3 . so . 6.0 .
Read the RealVideo section of the DOCS!
VDecoder init failed : (
Opening video decoder: [realvid] RealVideo decoder
Win32 LoadLibrary failed to load: drv33260 . dll , / usr / local / lib / codecs / drv33260 . dll , / usr / lib / win32 / drv33260 . dll , / usr / local / lib / win32 / drv33260 . dll
Error loading dll
ERROR: Could not open required DirectShow codec drv33260 . dll .
Read the RealVideo section of the DOCS!
VDecoder init failed : (
Opening video decoder: [realvid] RealVideo decoder
Error: / usr / local / lib / codecs / drvc . bundle / Contents / MacOS / drvc: cannot open shared object file: No such file or directory
Win32 LoadLibrary failed to load: 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
Error loading dll
ERROR: Could not open required DirectShow codec drvc . bundle / Contents / MacOS / drvc .
Read the RealVideo section of the DOCS!
VDecoder init failed : (
Cannot find codec matching selected -vo and video format 0x30335652 .
Read DOCS / HTML / en / codecs . html!
==========================================================================
Exiting ...
Opening video decoder: [realvid] RealVideo decoder
Error: / usr / local / lib / codecs / drvc . so: cannot restore segment prot after reloc: Permission denied
Win32 LoadLibrary failed to load: drvc . so , / usr / local / lib / codecs / drvc . so , / usr / lib / win32 / drvc . so , / usr / local / lib / win32 / drvc . so
Error loading dll
ERROR: Could not open required DirectShow codec drvc . so .
Read the RealVideo section of the DOCS!
VDecoder init failed : (
Opening video decoder: [realvid] RealVideo decoder
Error: / usr / local / lib / codecs / drv3 . so . 6.0 : cannot open shared object file: No such file or directory
Win32 LoadLibrary failed to load: 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
Error loading dll
ERROR: Could not open required DirectShow codec drv3 . so . 6.0 .
Read the RealVideo section of the DOCS!
VDecoder init failed : (
Opening video decoder: [realvid] RealVideo decoder
Win32 LoadLibrary failed to load: drv33260 . dll , / usr / local / lib / codecs / drv33260 . dll , / usr / lib / win32 / drv33260 . dll , / usr / local / lib / win32 / drv33260 . dll
Error loading dll
ERROR: Could not open required DirectShow codec drv33260 . dll .
Read the RealVideo section of the DOCS!
VDecoder init failed : (
Opening video decoder: [realvid] RealVideo decoder
Error: / usr / local / lib / codecs / drvc . bundle / Contents / MacOS / drvc: cannot open shared object file: No such file or directory
Win32 LoadLibrary failed to load: 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
Error loading dll
ERROR: Could not open required DirectShow codec drvc . bundle / Contents / MacOS / drvc .
Read the RealVideo section of the DOCS!
VDecoder init failed : (
Cannot find codec matching selected -vo and video format 0x30335652 .
Read DOCS / 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
到目前为止,总算解决了以前存在的若干问题
更多推荐
已为社区贡献2条内容
所有评论(0)