CentOS 7 安装 ffmpeg

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_39184388/article/details/82994717

1.安装 epel-release


[root@VM_0_10_centos ~]# yum install -y epel-release

Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================
 Package                  Arch               Version           Repository        Size
======================================================================================
Installing:
 epel-release             noarch             7-11              epel              15 k

Transaction Summary
======================================================================================
Install  1 Package

Total download size: 15 k
Installed size: 24 k
Downloading packages:
epel-release-7-11.noarch.rpm                                   |  15 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : epel-release-7-11.noarch                                           1/1 
  Verifying  : epel-release-7-11.noarch                                           1/1 

Installed:
  epel-release.noarch 0:7-11                                                          

Complete!

2.查看是否epel-release完成安装

[root@VM_0_10_centos ~]# yum repolist
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
repo id                                 repo name                               status
【epel-release 安装成功】
epel/7/x86_64                           EPEL for redhat/centos 7 - x86_64       12,723
extras/7/x86_64                         Qcloud centos extras - x86_64              432
mysql-connectors-community/x86_64       MySQL Connectors Community                  65
mysql-tools-community/x86_64            MySQL Tools Community                       69
mysql57-community/x86_64                MySQL 5.7 Community Server                 287
os/7/x86_64                             Qcloud centos os - x86_64                9,911
updates/7/x86_64                        Qcloud centos updates - x86_64           1,543
repolist: 25,030

3.安装nux-dextop 源

[root@VM_0_10_centos ~]# rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
[root@VM_0_10_centos ~]# rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
Retrieving http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
Preparing...                          ################################# [100%]
Updating / installing...
   1:nux-dextop-release-0-1.el7.nux   ################################# [100%]

4.查看nux-dextop 源​​​​​​​是否安装

[root@VM_0_10_centos ~]# yum repolist
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * nux-dextop: li.nux.ro
nux-dextop                                                     | 2.9 kB  00:00:00     
nux-dextop/x86_64/primary_db                                   | 1.8 MB  00:00:04  
【安装成功】  
 
repo id                                repo name                                status
epel/7/x86_64                          EPEL for redhat/centos 7 - x86_64        12,723
extras/7/x86_64                        Qcloud centos extras - x86_64               432
mysql-connectors-community/x86_64      MySQL Connectors Community                   65
mysql-tools-community/x86_64           MySQL Tools Community                        69
mysql57-community/x86_64               MySQL 5.7 Community Server                  287
nux-dextop/x86_64                      Nux.Ro RPMs for general desktop use       2,677
os/7/x86_64                            Qcloud centos os - x86_64                 9,911
updates/7/x86_64                       Qcloud centos updates - x86_64            1,543
repolist: 27,707

5.安装ffmpeg

[root@VM_0_10_centos ~]# yum install -y ffmpeg
Loaded plugins: fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * nux-dextop: li.nux.ro
Resolving Dependencies
--> Running transaction check

...
省略
...  
                                                     
  speex.x86_64 0:1.2-0.19.rc1.el7                                                     
  trousers.x86_64 0:0.3.14-2.el7                                                      
  vo-amrwbenc.x86_64 0:0.1.2-1.el7.nux                                                
  x264-libs.x86_64 0:0.142-11.20141221git6a301b6.el7.nux                              
  x265-libs.x86_64 0:1.9-1.el7.nux                                                    
  xvidcore.x86_64 0:1.3.2-5.el7.nux                                                   

Complete!    【安装完成】

6.查看ffmpeg版本

[root@VM_0_10_centos ~]# ffmpeg -version
ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-28)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-gnutls --enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil      54. 31.100 / 54. 31.100
libavcodec     56. 60.100 / 56. 60.100
libavformat    56. 40.101 / 56. 40.101
libavdevice    56.  4.100 / 56.  4.100
libavfilter     5. 40.101 /  5. 40.101
libavresample   2.  1.  0 /  2.  1.  0
libswscale      3.  1.101 /  3.  1.101
libswresample   1.  2.101 /  1.  2.101
libpostproc    53.  3.100 / 53.  3.100

7.查看ffmpeg安装目录

[root@VM_0_10_centos ~]# rpm -ql ffmpeg
/usr/bin/ffmpeg
/usr/bin/ffplay
/usr/bin/ffprobe
/usr/bin/ffserver

...
省略
...

/usr/share/man/man1/ffprobe.1.gz
/usr/share/man/man1/ffserver-all.1.gz
/usr/share/man/man1/ffserver.1.gz

猜你喜欢

转载自blog.csdn.net/qq_39184388/article/details/82994717