欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Linux 安装 FFmpeg

程序员文章站 2022-07-13 13:32:42
...

FFmpeg官网:http://www.ffmpeg.org

官网介绍

FFmpeg is the leading multimedia framework, able to decodeencodetranscodemuxdemuxstreamfilter 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.

下载安装

  1. 下载最新源码包并解压
$ axel -n 10 https://ffmpeg.org/releases/ffmpeg-4.2.1.tar.bz2
$ tar jxvf ffmpeg-4.2.1.tar.bz2
  1. 安装ffmpeg
$ cd ffmpeg-4.2.1
$ yum install yasm -y
$ ./configure
$ make && make install

 

 

Linux 安装 FFmpeg

安装报错


报了错误,提示yasm没有安装

 

  1. 安装yasm
$ yum install yasm -y
  1. 继续安装ffmpeg
$ ./configure
$ make
$ make install
  1. 安装成功
$ ffmpeg

输入ffmpeg打印了相关信息,表示安装成功

 

Linux 安装 FFmpeg

安装成功