linux下安装mplayer
2007-12-20 15:20
405 查看
系统:Red Hat Enterprise Linux Server release 5 (Tikanga)
起初我通过源代码安装:
cd /usr/local/src
wget http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2
tar -xjvf MPlayer-1.0rc2.tar.bz2
cd 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)
参看此篇文档说这个选项去掉了
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
出现问题
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
于是
cd /usr/local/src
wget http://www1.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
Tar -xjvf essential-20071007.tar.bz2
mkdir -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)
地址: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
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...
修改/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
到目前为止,总算解决了以前存在的若干问题
起初我通过源代码安装:
cd /usr/local/src
wget http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2
tar -xjvf MPlayer-1.0rc2.tar.bz2
cd 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)
参看此篇文档说这个选项去掉了
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
出现问题
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
于是
cd /usr/local/src
wget http://www1.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
Tar -xjvf essential-20071007.tar.bz2
mkdir -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)
地址: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
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...
修改/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 至尊播放器MPlayer 安装详解
- linux安装mplayer成功
- linux 下命令行播放器mplayer安装及使用
- 在linux下安装mplayer和解码器
- linux下Mplayer安装与设置指南(以及如何加载显示中文字幕)
- linux试用(2)安装 mplayer, g++
- Linux(CentOS 6.4)系统中安装mplayer
- Linux下MPlayer的安装
- linux安装mplayer
- Linux桌面的福音——RedHat下mplayer和smplayer的安装
- 教您如何安装使用Mplayer(linux)
- 安装MPlayer for linux(FC7)详细介绍--适合菜鸟
- Linux下Mplayer的安装
- linux下最好用的视频播放器,mplayer,smplayer怎么安装 播放黑屏
- 在linux下安装mplayer和解码器
- linux下安装mplayer,新手必看轻松搞定
- linux 安装和配置MPlayer
- 总结:linux下安装mplayer详细步骤和问题解决
- Linux 软件安装使用(4) MPlayer安装、配置及使用
- Linux下Mplayer的安装