• CentOS安装mplayer


    据说mplayer相当于windows下的暴风影音,那么今天就来安装上mplayer。

    • 安装的大体步骤:

    安装mplayer需要安装,解码器,mplayer,皮肤。

    这三个包你都可以在mplayer官方获取到。

    不要认为三个包都有了就可以顺利安装了,mplayer会依赖很多包。稍后你会体会到。

    •  准备

    三个包的下载地址:

    http://www.mplayerhq.hu/design7/dload.html

    source snapshot【mplayer】:http://www.mplayerhq.hu/MPlayer/releases/mplayer-export-snapshot.tar.bz2

    Linux AMD64 20071007【解码的二进制包】:http://www.mplayerhq.hu/MPlayer/releases/codecs/essential-amd64-20071007.tar.bz2

    KDE【皮肤】:http://www.mplayerhq.hu/MPlayer/skins/KDE-0.3.tar.bz2

    •  安装

    下载好三个包以后,来进行正是安装。

    解压【解码的二进制包】放到/usr/local/lib/codecs/目录,mplayer会到这目录找插件。

    解压 mplayer

    #。/configure --enable-gui   //有很多配置项,你感兴趣可以--help,但是gui必须配置才可以有界面
    #make
    #make install

    当然,你中间会遇到很多问题。因为mplayer需要以下这些包。

         POSIX system - You need a POSIX-compatible shell and POSIX-compatible system tools like grep, sed, awk, etc. in your path.
    
        GNU make 3.81 or later
    
        binutils - GNU binutils 2.11 or later is known to work.
    
        compiler - We mostly use gcc, the recommended versions on x86 are 2.95 and 3.4+. On PowerPC, use 4.x+. icc 10.1+ is also known to work.
    
        Xorg/XFree86 - recommended version is 4.3 or later. Make sure the development packages are installed, too, otherwise it won't work. You don't absolutely need X, some video output drivers work without it.
    
        FreeType - 2.0.9 or later is required for the OSD and subtitles
    
        ALSA - optional, for ALSA audio output support. At least 0.9.0rc4 is required.
    
        libjpeg - required for the optional JPEG video output driver
    
        libpng - required for the optional PNG video output driver
    
        directfb - optional, 0.9.22 or later required for the directfb/dfbmga video output drivers
    
        lame - 3.98.3 or later, necessary for encoding MP3 audio with MEncoder
    
        zlib - recommended, many codecs use it.
    
        LIVE555 Streaming Media - optional, needed for some RTSP/RTP streams
    
        cdparanoia - optional, for CDDA support
    
        libxmms - optional, for XMMS input plugin support. At least 1.2.7 is required.
    
        libsmb - optional, for SMB networking support
    
        libmad - optional, for fast integer-only MP3 decoding on FPU-less platforms 

    你可以不去管,硬着头皮安装,中间遇到问题再一个个解决。

    我遇到的问题是 x11,GTK2-devel

    #yum install *x11*
    #yum install *gtk2*

    还有可能需要yasm:

    下载地址:http://yasm.tortall.net/Download.html

    假设你经过千辛万苦终于完成mplayer的install,那接下来安装皮肤。很简单:解压后

    #mv KDE  /usr/local/share/mplayer/skins/default


    安装完成。

    • 可能遇到的问题以及解决方法

    不要高兴的太早,你现在打开视频文件,还有可能遇到 只有画面没有声音的情况。我遇到了。

    解决方法1:

    网上有人说,下载all****.tar.bz2,放到/usr/local/lib/codecs/目录

      271  wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20110131.tar.bz2
      272  ls -hs
      273  tar jxvf all-20110131.tar.bz2 
      274  cp -r ./all-20110131/* /usr/local/lib/codecs/
      275  ls
      276  cd mplayer-checkout-2014-12-22/
      277  ./configure --enable-gui
      278  make
      279  make install

    解决方法2:

    yum install *stream* --skip-broken

    第二种肯定可以使用。第一种不太肯定。如果你实验有准确结果,可以给我留言。谢谢。

    •  参照

    官方的英文指导:http://www.mplayerhq.hu/DOCS/README

    http://www.mplayerhq.hu/DOCS/HTML/en/install.html 【这个我没有看,也顺手贴过来把】

    http://www.linuxidc.com/Linux/2013-12/93726.htm

  • 相关阅读:
    UVALive2678子序列
    UVA11549计算机谜题
    UVA11520填充正方形
    LA3635派
    UVALive3971组装电脑
    记录未完成题目
    SPOJ 6219 Edit distance字符串间编辑距离
    ACM组队安排-——杭电校赛(递推)
    逆袭指数-——杭电校赛(dfs)
    油菜花王国——杭电校赛(并查集)
  • 原文地址:https://www.cnblogs.com/simpman/p/4183702.html
Copyright © 2020-2023  润新知