CentOS 7 安装ffplay

前端之家收集整理的这篇文章主要介绍了CentOS 7 安装ffplay前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。


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

能看到画面了

猜你在找的CentOS相关文章