1,在线仓库2选1:
在线仓库1: yum-yinstallepel-release 在线仓库2: yumlocalinstall--nogpgcheckhttps://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpmhttps://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm
2,清理yum 缓存
yumcleanall yumlist
3,安装SDL2开发库
yuminstallSDL2-deve
4,解压编译安装 FFmpeg
tarxfffmpeg-3.3.2.tar.bz2 ./configure--disable-optimizations--disable-yasm--prefix=${HOME}/ffmpeg make-j4 makeinstall
测试:
[root@localhost~]#cd~ [root@localhost~]#cdffmpeg/bin/ [root@localhostbin]# ./ffplayrtsp://172.16.66.22:554/nuc.sdp 能看到画面了