zoukankan      html  css  js  c++  java
  • CentOS7编译安装MPLAYER!!!

    Linux装软件就是折磨人!!

    Mplayer官网下好release版本

    然后./configure --[options]

    注意:
    --prefix=/usr/local/mplayer 是安装路径
    --enable-gui 安装图形化用户界面
    --enable-freetype 调节字体
    --with-codecsdir=/usr/lib/codecs/
    --with-win32libdir=/usr/lib/wincodecs 指定解码位置
    --language=zh_CN 中文

    接着错误缺少yasm

    百度yasm编译安装,然后又Error: The GUI requires PNG support

    缺少zlib

    执行yum install zlib-devel libpng-devel

    接着又Error: X11 support required for GUI compilation.

    缺少gtk2-devel和glib2-devel

    执行yum install gtk2-devel

    终于configure完了!!

    然后make,很长时间,接着make install

    然后必须要安装皮肤,先下好皮肤,解压(下载高版本的皮肤,不然会出错!!)

    mv Abyss /usr/local/share/mplayer/skins/

    cd /usr/local/share/mplayer/skins/

    mv Abyss default

    然后终于可以用了!!!

    安装后使用正常,可再次开机后,终端运行gmplayer出现如下错误
    [root@www ~]# gmplayer xxx.rmvb
    Option equ_channel_1 needs a parameter at line 11
    Option equ_channel_2 needs a parameter at line 12
    Option equ_channel_3 needs a parameter at line 13
    Option equ_channel_4 needs a parameter at line 14
    Option equ_channel_5 needs a parameter at line 15
    Option equ_channel_6 needs a parameter at line 16
    配置文件错误

    正在退出...(致命错误)
    但,[root@www ~]# mplayer xxx.rmvb正常播放。
    解决方法:运行过mplayer后,会在~/.mplayer/下生成gui.conf,出错的原因是该配置文件的11~16行为:
    equ_channel_1 = 前右
    equ_channel_2 = 前左
    equ_channel_3 = 后右
    equ_channel_4 = 后左
    equ_channel_5 = 中间
    equ_channel_6 = 低音炮
    可直接将gui.conf删除,再次运行mplayer就可以了,同时新的gui.conf会再次生成,而这次生成的文件中就没有这六行。

  • 相关阅读:
    【应试】数据通信与网络
    【应试】操作系统OS
    【笔记】 卷积
    【HDU 5920】 Ugly Problem
    【笔记】位运算
    【洛谷P1378】油滴扩展
    【洛谷 P1120】 小木棍[数据加强版]
    [codeforces]Round #538 (Div. 2) F. Please, another Queries on Array?
    [BZOJ]2563: 阿狸和桃子的游戏
    [BZOJ]4668: 冷战
  • 原文地址:https://www.cnblogs.com/acgpiano/p/4136172.html
Copyright © 2011-2022 走看看