LinuxSir.cn,穿越时空的Linuxsir!

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

又是mplayer的问题,找不到codecs

[复制链接]
发表于 2005-11-19 04:35:15 | 显示全部楼层 |阅读模式
我是yum install mplayer* 安装的mplayer和gmplayer。并下了all-20050412.tar.bz2。

看rmvb,一开始不能看,我也是有心理准备的,没有指望yum出来的mplayer带上所有的库。我看终端下的提示,
Opening video decoder: [realvid] RealVideo decoder
opening shared obj '/usr/lib64/real/drv4.so.6.0'
Error: /usr/lib64/real/drv4.so.6.0: 无法打开共享对象文件: 没有那个文件或目录
于是我把那些codecs都放到了那个文件夹(BTW,为什么会跑到那个奇怪的地方?)
但是还是不行,可别说我放错了地方哟
[root@Genius mplayer]# ls /usr/lib64/real/drv4.so.6.0
/usr/lib64/real/drv4.so.6.0
这是怎么回事?难道非编译安装不可吗?
 楼主| 发表于 2005-11-19 16:03:51 | 显示全部楼层
没有高人帮忙吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-20 08:46:03 | 显示全部楼层
不是吧?再顶一下,这个问题没人碰到过吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-20 22:09:30 | 显示全部楼层
再顶!期待高手
回复 支持 反对

使用道具 举报

发表于 2005-11-21 20:41:22 | 显示全部楼层
我不是高手啊,我是大菜鸟,你确定所需的库放在提示的那个目录下面了吗?
我以前用rpm装的时候,第一次运行也提示找不到库,然后我把所有的库都移动到提示的那个目录下就好了。
不过现在装的这个是编译的,所以没什么问题,实在不行你就自己编译吧,那样就没什么问题了,置顶的帖子里有详细的方法。祝你成功啊
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-21 23:38:18 | 显示全部楼层
Post by zwithersir
我不是高手啊,我是大菜鸟,你确定所需的库放在提示的那个目录下面了吗?
我以前用rpm装的时候,第一次运行也提示找不到库,然后我把所有的库都移动到提示的那个目录下就好了。
不过现在装的这个是编译的,所以没什么问题,实在不行你就自己编译吧,那样就没什么问题了,置顶的帖子里有详细的方法。祝你成功啊


谢谢。我能确定是放在了那个文件夹下面。对这句话非常恼火:
Error: /usr/lib64/real/drv4.so.6.0: 无法打开共享对象文件: 没有那个文件或目录

[john@Genius MPlayer-20050806]$ ls /usr/lib64/real/drv4.so.6.0
/usr/lib64/real/drv4.so.6.0

感觉都是睁眼说瞎话。

另外,我编译也没有成功。

下了一个CVS版本的,./configure 加了一些参数过去了,然后make,出来

demux_rtp.cpp:520: error: 'mediaSession' was not declared in this scope
demux_rtp.cpp:520: error: 'struct RTPState' has no member named 'mediaSession'
demux_rtp.cpp:522: error: 'struct RTPState' has no member named 'rtspClient'
demux_rtp.cpp:523: error: 'MediaSubsessionIterator' was not declared in this scope
demux_rtp.cpp:523: error: expected `;' before 'iter'
demux_rtp.cpp:524: error: 'MediaSubsession' was not declared in this scope
demux_rtp.cpp:524: error: 'subsession' was not declared in this scope
demux_rtp.cpp:526: error: 'iter' was not declared in this scope
demux_rtp.cpp:527: error: 'struct RTPState' has no member named 'rtspClient'
demux_rtp.cpp:529: error: 'struct RTPState' has no member named 'sipClient'
demux_rtp.cpp:530: error: 'struct RTPState' has no member named 'sipClient'
demux_rtp.cpp: At global scope:
demux_rtp.cpp:536: error: expected `)' before '*' token
make[1]: *** [demux_rtp.o] Error 1
make[1]: Leaving directory `/setup/mplayer/MPlayer-20050806/libmpdemux'
make: *** [libmpdemux/libmpdemux.a] 错误 2
很多这样错误。没有办法了。

有时候都觉得在Linux下弄东西有折腾时间的嫌疑。在Lin下面编程是很爽,但是桌面应用真的不怎么样。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-21 23:57:16 | 显示全部楼层
我编译安装成功了,这回configure的时候只有两个参数--enable-gui --enable-smb,一路下来还算成功。刚才不成功可能是因为后面的参数多了。
但是mplayer还是出现找不到codecs的错误提示,
Error: /usr/local/lib/codecs/drv4.so.6.0: cannot open shared object file: No such file or directory
又是睁眼说瞎话,
root@Genius .mplayer]# ll /usr/local/lib/codecs/drv4.so.6.0
-rwxr-xr-x  1 root root 338788 11月 21 23:13 /usr/local/lib/codecs/drv4.so.6.0

用gmplayer播放的时候还有一个对话框,说
Cannot find codec matching seleced -vo and video format 0x30345652.
不知道和找不到那个so文件是否有关。


唉,还是没有搞定。
回复 支持 反对

使用道具 举报

发表于 2005-11-22 10:42:30 | 显示全部楼层
编译时要指定你codecs的存放目录,这样编译出来才能正常,否则又提示找不到code了,
1.下载
MPlayer-1.0pre7
官方CODES-all
all-20050412.tar.bz2
官方win32_CODES-all
windows-all-20050412.zip
皮肤
Blue-1.4.tar.bz2
相关网址: http://www.mplayerhq.hu/homepage/design7/dload.html

2. 安装code

tar vjxf all-20050412.tar.bz2
mv all-20050412 /usr/lib/codes
chmod 644 /usr/lib/codes/*
chown root.root /usr/lib/codes/*

unzip windows-all-20050412.zip
mv windows-all-20050412 /usr/lib/wincodes
chmod 644 /usr/lib/wincodes/*
chown root.root /usr/lib/wincodes/*

3.安装MPlayer

tar vjxf MPlayer-1.0pre7.tar.bz2

cd MPlayer-1.0pre7
在/MPlayer-1.0pre7/help 中用gedit把help_mp-zh_CN.h 编码改成utf-8

./configure --prefix=/usr/local/mplayer/ --enable-gui --enable-freetype --with-codecsdir=/usr/lib/codes/ --with-win32libdir=/usr/lib/wincodes/ --disable-gcc-checking --language=zh_CN

make && make install

cd etc
cp example.conf /usr/local/mplayer/etc/config
cp codecs.conf /usr/local/mplayer/etc/

4.安装字体
把你想用的字体放到/home/你的用户名/.mplayer 下并且改名为subfont.ttf

5.安装皮肤
tar vjxf Blue-1.4.tar.bz2
mv Blue /usr/local/mplayer/share/mplayer/Skin/
cd /usr/local/mplayer/share/mplayer/Skin/
ln -s Blue default

都是置顶贴的内容,好好看看那些编译时的--with***
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-22 12:37:43 | 显示全部楼层
十分感谢兄弟的热心。
但是我还是没有搞定。
我的系统是FC4的x86-64版本,不知道这会不会有什么影响。
前1,2步我是照着做的,下载到的是MPlayer-1.0pre7try2.tar.bz2,configure是这么做的:
[john@Genius MPlayer-1.0pre7try2]$ ./configure --prefix=/usr/local/mplayer/ --enable-smb --enable-freetype --with-codecsdir=/usr/lib/codes/ --with-win32libdir=/usr/lib/win32/ --disable-gcc-checking --language=zh_CN
少了个--enable-gui,wincodecs变成了win32,我自己变的,多了个--enable-smb。
能通过,但是configure的后面给出这么一个提示:
NOTE: Win32 codec DLLs are not supported on your CPU (x86_64) or your
operating system (Linux). You may encounter a few files that cannot
be played due to missing open source video/audio codec support.
然后的make没有通过,告诉我:
pe_image.c: In function 'PE_CreateModule':
pe_image.c:698: warning: cast to pointer from integer of different size
pe_image.c:698: warning: cast to pointer from integer of different size
pe_image.c: In function 'PE_UnloadLibrary':
pe_image.c:880: warning: cast to pointer from integer of different size
pe_image.c: In function 'PE_InitDLL':
pe_image.c:925: warning: cast to pointer from integer of different size
pe_image.c:925: warning: cast to pointer from integer of different size
pe_image.c:926: warning: cast to pointer from integer of different size
pe_image.c:926: warning: cast to pointer from integer of different size
pe_image.c:931: warning: cast to pointer from integer of different size
pe_image.c:931: warning: cast to pointer from integer of different size
pe_image.c:931: warning: cast to pointer from integer of different size
make[1]: *** [pe_image.o] Error 1
make[1]: Leaving directory `/setup/mplayer/MPlayer-1.0pre7try2/loader'
make: *** [loader/libloader.a] 错误 2
回复 支持 反对

使用道具 举报

发表于 2005-11-22 12:58:09 | 显示全部楼层
这个try2的版本我也装过,好像不如MPlayer-1.0pre7省事,我的系统是RHEL AS4,Mplayer是MPlayer-1.0pre7,编译时没加--enble-gui,--enalbe-smb,--language=zh_CN
,我觉得可能是FC版本的问题,FC确实有点麻烦,要不你装MPlayer-1.0pre7试一下,论坛的ftp上就有
http://download.linuxsir.cn/mplayer/
,然后再试一试,不要闲麻烦啊,多弄几次就差不多了,我刚开始装软件的时候也是你这样,现在越来越习惯了,坚持下去,总会有进步的。^_^
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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