安装ffmpeg

一、centos linux下安装ffmpeg

1、下载解压

1
2
wget http://www.ffmpeg.org/releases/ffmpeg-3.1.tar.gz
tar -zxvf ffmpeg-3.1.tar.gz

2、 进入解压后目录,输入如下命令/usr/local/ffmpeg为自己指定的安装目录

1
2
3
cd ffmpeg-3.1
./configure --prefix=/usr/local/ffmpeg
make && make install

3、配置变量

1
2
3
4
5
6
vi /etc/profile
在最后PATH添加环境变量:
export PATH=$PATH:/usr/local/ffmpeg/bin
保存退出
查看是否生效
source /ect/profile  设置生效

4、查看版本

1
ffmpeg -version    查看版本

注意:

若安装过程中出现以下错误:

yasm/nasm not found or too old. Use –disable-yasm for a crippled build.

If you think configure made a mistake, make sure you are using the latest
version from Git. If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file “config.log” produced by configure as this will help
solve the problem.

需要安装 yasm

 

1
2
3
4
5
wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
tar -zxvf yasm-1.3.0.tar.gz
cd yasm-1.3.0
./configure
make && make install

 

 

 

 

 

ffmpeg命令参数详解

ffmpeg命令参数详解

http://linux.51yip.com/search/ffmpeg

ffmpeg图片加滤镜效果

参考:https://cloud.tencent.com/developer/article/1413085

FFMPEG指令

参考:https://cloud.tencent.com/developer/article/1072264

https://www.jianshu.com/p/049d03705a81

posted @ 2021-03-02 13:02  mirror_zaozao  阅读(84)  评论(0)    收藏  举报