1, 在线仓库2选1:

在线仓库1:
yum -y install epel-release

在线仓库2:
yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm


2,清理yum 缓存

yum clean all
yum list


3,安装SDL2开发库

yum install SDL2-deve


4,解压编译安装 FFmpeg

tar xf ffmpeg-3.3.2.tar.bz2
./configure --disable-optimizations --disable-yasm --prefix=${HOME}/ffmpeg
make -j 4
make install


测试:

[root@localhost ~]# cd ~
[root@localhost ~]# cd ffmpeg/bin/
[root@localhost bin]#
./ffplay rtsp://172.16.66.22:554/nuc.sdp

能看到画面了