centos播放器解码器下载

时间:2021-08-29 16:43:09

centos自带的播放器没有包含视频解码器,播放视频时报错,同时在线搜索不到,通过执行下属命令,可以是播放器在线获取解码器:

  • Fedora 22 and later: 

    su -c 'dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'
  • Fedora 14 to Fedora 21 : 

    su -c 'yum install --nogpgcheck https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'
  • RHEL 5 or compatible like CentOS: 

    su -c 'rpm -Uvh https://download1.rpmfusion.org/free/el/updates/5/i386/rpmfusion-free-release-5-1.noarch.rpm https://download1.rpmfusion.org/nonfree/el/updates/5/i386/rpmfusion-nonfree-release-5-1.noarch.rpm'
  • RHEL 6 or compatible like CentOS: 

    su -c 'yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm https://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm'


    同时也可以执行如下命令,安装mplayer播放器:

    yum -y install mplayer              播放器主程序,约15MByum -y install mplayer-gui        图形界面的壳,约230KByum -y install ffmpeg*              各种解码器,约22MB

    参考地址:

    https://rpmfusion.org/Configuration