0
点赞
收藏
分享

微信扫一扫

CentOS安装FFmpeg

大自然在召唤 2022-03-31 阅读 89

CentOS安装FFmpeg(新方式)

wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz
1.解压
tar xvf ffmpeg-git-amd64-static.tar.xz
2. cd ffmpeg-git-20210325-amd64-static
在这里插入图片描述

3.配置ffmpeg命令全局
cd /usr/bin
ln -s /usr/local/ffmpeg/ffmpeg-git-20210325-amd64-static/ffmpeg ffmpeg
ln -s /usr/local/ffmpeg/ffmpeg-git-20210325-amd64-static/ffprobe ffprole
4、查看ffmpeg、ffprobe配置,命令:
ls
在这里插入图片描述

5.配置永久环境变量
#set ffmpeg environment
PATH=$PATH:/usr/local/ffmpeg/ffmpeg-git-20210325-amd64-static/bin
export PATH
6.重启配置,刷新
source /etc/profile
7.查看配置
echo $PATH
在这里插入图片描述

8.查看版本
ffmpeg -version
在这里插入图片描述

举报

相关推荐

0 条评论