LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: songweiwen

fedora6 下编译的mplyaer-1.0rc2

[复制链接]
 楼主| 发表于 2008-1-12 07:57:22 | 显示全部楼层
Post by onelay;1805999
你指定的目录有问题,为什么不试下我的方法重新编译一下。


好!谢谢。
我现在试试编译它。
感谢!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-12 08:33:39 | 显示全部楼层
Post by onelay;1805995
你指定的目录跟所存放的codecs有问题mplayer不能正确识别他,all-codecs已经有了realplayer的codecs.你又指定一个realplayer,mplayer不能理解。
1新建两个目录,第一个为all-codecs的目录,第二个为essential-codecs的目录不要搞反搞反的话会出现你现在所出现的错误。
/usr/lib/win32
/usr/local/lib/codecs

2  ./configure --language=zh_CN --charset=utf8 --enable-gui --enable-largefiles

#Follow it.就没问题codecs目录会自动检测到,不需要你特别指定。




我用以下命令编译:
$ ./configure --prefix=/usr/program/mplayer2 --language=zh_CN --charset=utf8 --enable-gui --enable-largefiles && make

为了方便删除,我还是设定了一个目录:mplayer2;我想应该没关系吧!
make install后,我
cp  -r /usr/program/codefmp/all-20071007 /usr/local/lib/codes

cp -r /usr/program/codefmp/win32 /usr/lib/win32

cp -r /usr/program/mplayer/share/mplayer/Skin /usr/program/mplayer2/share/mplayer/Skin

mkdir /usr/program/mplayer2/share/mplayer/font

cp /home/song/font-arial-cp1250/font-arial-14-cp1250/* /usr/program/mplayer2/share/mplayer/font/
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-12 08:39:35 | 显示全部楼层
然后
cd /usr/program/mplayer2/bin

./gmplayer

播放rm文件出现错误窗口,不过还可以观看电影,没问题!
但播放rmvb文件时,出现以下窗口,没有图像有声音,跟之前的一样,可惜还是不成功!!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-12 08:41:20 | 显示全部楼层
终端信息如下:

# ./gmplayer
MPlayer 1.0rc2-4.1.1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Celeron(R) CPU 1.80GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
编译用了针对 x86 CPU 的扩展指令集: MMX MMX2 SSE SSE2

正在播放 /share/夺宝奇兵/夺宝奇兵之法柜奇兵.rmvb。
检测到 REAL 文件格式。
Stream description: Audio Stream
Stream mimetype: audio/x-pn-realaudio
[real] 找到音频流,-aid 0
Stream description: Video Stream
Stream mimetype: video/x-pn-realvideo
[real] 找到视频流,-vid 1
Stream mimetype: logical-fileinfo
VIDEO:  [RV40]  608x256  24bpp  23.000 fps    0.0 kbps ( 0.0 kbyte/s)
剪辑信息:
name: ᱦ���
author: �����
copyright: ���
No vidix driver name provided, probing available ones (-v option for details)!
[VO_SUB_VIDIX] 无法找到能工作的 VIDIX 驱动。
打开/初始化 (-vo) 所选的视频输出设备出错。
==========================================================================
打开音频解码器: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 64.1 kbit/4.54% (ratio: 8010->176400)
已选音频编解码器: [ffcook] afm: ffmpeg (FFmpeg COOK audio decoder)
==========================================================================
[AO OSS] 音频设置: 无法打开音频设备 /dev/dsp: Device or resource busy
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
视频: 没视频
开始播放...
A:  14.8 (14.8) of 6916.0 ( 1:55:16.0)  3.0%

[root@localhost bin]# ./gmplayer
MPlayer 1.0rc2-4.1.1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Celeron(R) CPU 1.80GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
编译用了针对 x86 CPU 的扩展指令集: MMX MMX2 SSE SSE2

正在播放 /share/夺宝奇兵/夺宝奇兵之法柜奇兵.rmvb。
检测到 REAL 文件格式。
Stream description: Audio Stream
Stream mimetype: audio/x-pn-realaudio
[real] 找到音频流,-aid 0
Stream description: Video Stream
Stream mimetype: video/x-pn-realvideo
[real] 找到视频流,-vid 1
Stream mimetype: logical-fileinfo
VIDEO:  [RV40]  608x256  24bpp  23.000 fps    0.0 kbps ( 0.0 kbyte/s)
剪辑信息:
name: ᱦ���
author: �����
copyright: ���
==========================================================================
尝试锁定为视频编解码器驱动族 realvid...
打开视频解码器: [realvid] RealVideo decoder
Error: libstdc++.so.5: cannot open shared object file: No such file or directory
Win32 LoadLibrary failed to load: drvc.so, /usr/program/codefmp/win32/drvc.so, /usr/lib/win32/drvc.so, /usr/local/lib/win32/drvc.so
Error loading dll
错误: 打不开所需的 DirectShow 编解码器: drvc.so
Read the RealVideo section of the DOCS!
VDecoder 初始化失败
打开视频解码器: [realvid] RealVideo decoder
Win32 LoadLibrary failed to load: drvc.dll, /usr/program/codefmp/win32/drvc.dll, /usr/lib/win32/drvc.dll, /usr/local/lib/win32/drvc.dll
Error loading dll
错误: 打不开所需的 DirectShow 编解码器: drvc.dll
Read the RealVideo section of the DOCS!
VDecoder 初始化失败
打开视频解码器: [realvid] RealVideo decoder
Error: /usr/program/codefmp/all-20071007/drv4.so.6.0: cannot restore segment prot after reloc: Permission denied
Win32 LoadLibrary failed to load: drv4.so.6.0, /usr/program/codefmp/win32/drv4.so.6.0, /usr/lib/win32/drv4.so.6.0, /usr/local/lib/win32/drv4.so.6.0
Error loading dll
错误: 打不开所需的 DirectShow 编解码器: drv4.so.6.0
Read the RealVideo section of the DOCS!
VDecoder 初始化失败
打开视频解码器: [realvid] RealVideo decoder
Win32 LoadLibrary failed to load: drv43260.dll, /usr/program/codefmp/win32/drv43260.dll, /usr/lib/win32/drv43260.dll, /usr/local/lib/win32/drv43260.dll
Error loading dll
错误: 打不开所需的 DirectShow 编解码器: drv43260.dll
Read the RealVideo section of the DOCS!
VDecoder 初始化失败
打开视频解码器: [realvid] RealVideo decoder
Error: /usr/program/codefmp/all-20071007/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/program/codefmp/win32/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
错误: 打不开所需的 DirectShow 编解码器: drvc.bundle/Contents/MacOS/drvc
Read the RealVideo section of the DOCS!
VDecoder 初始化失败
找不到匹配 -vo 所选的和视频格式 0x30345652 的编解码器。
请阅读 DOCS/zh/codecs.html!
==========================================================================
==========================================================================
打开音频解码器: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 64.1 kbit/4.54% (ratio: 8010->176400)
已选音频编解码器: [ffcook] afm: ffmpeg (FFmpeg COOK audio decoder)
==========================================================================
[AO OSS] 音频设置: 无法打开音频设备 /dev/dsp: Device or resource busy
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
视频: 没视频
开始播放...


还是不行啊!!!!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-12 08:50:52 | 显示全部楼层
等待大侠们的搭救!!!
回复 支持 反对

使用道具 举报

发表于 2008-1-12 13:25:21 | 显示全部楼层
Post by songweiwen;1805402
终端返回了一大堆如下所示的错误信息,也不知道怎么处理了:

打开视频解码器: [realvid] RealVideo decoder
Error: libstdc++.so.5: cannot open shared object file: No such file or directory
Win32 LoadLibrary failed to load: drvc.so, /usr/program/mplayer/win32/drvc.so, /usr/lib/win32/drvc.so, /usr/local/lib/win32/drvc.so
Error loading dll


hehe,你的FC6是x86_64位的吧,去mplayer官网下载一个all开头的包和essential-amd64开头的那个解码包,然后把解压后的文件(不是文件夹),覆盖到提示目录。你的提示目录有三个
/usr/program/codefmp/win32/drvc.so, /usr/lib/win32/drvc.so,
/usr/local/lib/win32/drvc.so
如果不想提示那么多,应该在编译./configure时就统统指定为/usr/lib/codecs。
先解压all包,拷贝文件到相应目录,例/usr/lib/codecs;
在解压essential-amd64包把文件覆盖到/usr/lib/codecs。
如果还不行,把SELinux关了试试看。
如果还不行,应该是我说的那2个包错误,all是基础,再下另一个覆盖它。
如果还不行,建议安装Fedora 8
回复 支持 反对

使用道具 举报

发表于 2008-1-12 13:27:43 | 显示全部楼层
贴下你的xorg.conf
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-12 13:55:42 | 显示全部楼层
Post by onelay;1806106
贴下你的xorg.conf


不知道有何用呢??

# Xorg configuration created by system-config-display

Section "ServerLayout"
        Identifier     "single head configuration"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us"
EndSection

Section "Device"
        Identifier  "Videocard0"
        Driver      "i810"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Videocard0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes    "1024x768" "800x600" "800x600" "640x480" "640x480"
        EndSubSection
EndSection


谢谢!!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-12 14:07:47 | 显示全部楼层
Post by yourfriend;1806103
hehe,你的FC6是x86_64位的吧,去mplayer官网下载一个all开头的包和essential-amd64开头的那个解码包,然后把解压后的文件(不是文件夹),覆盖到提示目录。你的提示目录有三个
/usr/program/codefmp/win32/drvc.so, /usr/lib/win32/drvc.so,
/usr/local/lib/win32/drvc.so
如果不想提示那么多,应该在编译./configure时就统统指定为/usr/lib/codecs。
先解压all包,拷贝文件到相应目录,例/usr/lib/codecs;
在解压essential-amd64包把文件覆盖到/usr/lib/codecs。
如果还不行,把SELinux关了试试看。
如果还不行,应该是我说的那2个包错误,all是基础,再下另一个覆盖它。
如果还不行,建议安装Fedora 8


硬盘安装的系统:
FC-6-i386-disc1.iso  FC-6-i386-disc3.iso  FC-6-i386-disc5.iso  
FC-6-i386-disc2.iso  FC-6-i386-disc4.iso  

记得之前下了个x86-64的f7,下完了才知道用不得,所以再下f6时应该不至于这般糊涂吧。

之前用redhat9,曾编译过一个mplayer  : MPlayer-1.0pre5.tar.bz2;
这个播放器到可以播放rm,rmvb文件,无论是在源系统redhat9还是在现在的f6(在f6只有菜单的中文显示问题而已)。

我也试着将它的code文件cp到相应的目录,但结果还是一样:有声音没图像!
回复 支持 反对

使用道具 举报

发表于 2008-1-12 14:27:07 | 显示全部楼层
glx都没有当然不会出图像拉!

Section "Module"
    Load           "glx"
    Load           "dbe"
    Load           "extmod"
    Load           "fbdevhw"
    Load           "record"
    Load           "freetype"
    Load           "type1"
EndSection
加入上述段。

我的是nvidia的显卡参照下。
# Xorg configuration created by system-config-display

Section "ServerLayout"
    Identifier     "single head configuration"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
EndSection

Section "Module"
    Load           "glx"
    Load           "dbe"
    Load           "extmod"
    Load           "fbdevhw"
    Load           "record"
    Load           "freetype"
    Load           "type1"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "rotocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "us+inet"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       30.0 - 110.0
    VertRefresh     50.0 - 150.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "DisableGLXRootClipping" "True"
    Option         "AddARGBGLXVisuals" "True"
    Option         "NoLogo" "True"
    Option         "RenderAccel" "True"
    Option         "AllowGLXWithComposite" "True"
    SubSection     "Display"
        Viewport    0 0
        Depth       24
        Modes      "1680x1050" "1600x1200" "1600x1024" "1440x900" "1400x1050" "1360x768" "1280x1024" "1280x960" "1280x800" "1280x720" "1152x864" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "Enable"
EndSection
回复 支持 反对

使用道具 举报

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

本版积分规则

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