Linux 安装 FFmpeg
程序员文章站
2022-07-13 13:32:42
...
FFmpeg官网:http://www.ffmpeg.org
官网介绍
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community or a corporation. It is also highly portable: FFmpeg compiles, runs, and passes our testing infrastructure FATEacross Linux, Mac OS X, Microsoft Windows, the BSDs, Solaris, etc. under a wide variety of build environments, machine architectures, and configurations.
下载安装
- 下载最新源码包并解压
$ axel -n 10 https://ffmpeg.org/releases/ffmpeg-4.2.1.tar.bz2
$ tar jxvf ffmpeg-4.2.1.tar.bz2
- 安装ffmpeg
$ cd ffmpeg-4.2.1
$ yum install yasm -y
$ ./configure
$ make && make install
安装报错
报了错误,提示yasm
没有安装
- 安装yasm
$ yum install yasm -y
- 继续安装ffmpeg
$ ./configure
$ make
$ make install
- 安装成功
$ ffmpeg
输入ffmpeg
打印了相关信息,表示安装成功
安装成功