我是靠谱客的博主 难过钻石,这篇文章主要介绍centos7 安装ffmpeg,现在分享给大家,希望可以做个参考。

CentOS 6和7安装方法是不一样的,下面分别说明:

安装前都需要先安装epel扩展源

yum -y install epel-release

CentOS 6比较简单,安装yum源之后直接安装即可:

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

yum -y install ffmpeg ffmpeg-devel

而CentOS 7需额外安装扩展源:

su -c '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'

rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm

yum -y install ffmpeg ffmpeg-devel

查看版本
ffmpeg -version
转换视频命令

ffmpeg -i 72Z888piCcTP.mp4 -y a.mp4 

截图命令

复制代码
1
ffmpeg -i test.asf -y -f image2 -t 0.001 -s 352x240 a.jpg

最后

以上就是难过钻石最近收集整理的关于centos7 安装ffmpeg的全部内容,更多相关centos7内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(50)

评论列表共有 0 条评论

立即
投稿
返回
顶部