Forward from White Wolf Stack: See the original article

About the installation of FFMPEG, some people may have to toss about for a long time, or even toss about for a week, the reason, the basic is to compile and install the trouble.

There are four types of installation available, the most complex being compilation and installation on Centos7.

  1. FFMPEG static library download and install
  2. Install FFMPEG on your Mac
  3. Build and install FFMPEG on Centos7
  4. Install FFMPEG using Docker

You can choose to install according to your preferences.

In the production environment, we suggest using source code compilation or using Docker installation. In the later stage, we will also choose Docker deployment first when we practice online.

In order to unify the specification, we recommend to choose the compiled static library when practicing. The static library is the compiled binary file, which can be downloaded directly for use.

In this article, we will briefly introduce the installation steps of downloading static libraries on CentOS, Windows, MacOS, and other systems such as Ubuntu’s own choice, no introduction.

First open the FFMPEG website, as shown below

1. CentOS downloads a static library

Follow steps 1-2-3 above to make the selection. If you do not know how to select the system version, execute lsb_release-a command locally and check the system version

$ lsb_release -a LSB Version: : the core - 4.1 - amd64: core - 4.1 - noarch: CXX - 4.1 - amd64: CXX - 4.1 - noarch: desktop - 4.1 - amd64: desktop - 4.1 - noarch: languages - 4.1 - amd64: la Nguages-4.1-noarch: print-4.1-amd64: print-4.1-noarch Distributor ID: CENTOS Description: CentOS Linux release 7.4.1708 (Core) release: 7.4.1708 codeName: Core

Here I choose to download ffmpeg-release-amd64-static. Tar.xz-md5. If you don’t know how to choose, you can leave a message.

Right click and copy the above download address. We are in the terminal operation the following command in turn $$tar - xvJf wget HTTP: / / https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz Ffmpeg -release-amd64-static.tar.xz $CD ffmpeg-4.4-amd64-static $ln -s /opt/ffmpeg-4.4-amd64-static/ffmpeg $CD ffmpeg-4.4-amd64-static $ln -s /opt/ffmpeg-4.4-amd64-static/ffmpeg / usr/bin/ffmpeg finally whether is $ffmpeg - the success of the installation version ffmpeg version 4.4 - static https://johnvansickle.com/ffmpeg/ Copyright (c) The FFmpeg Developers Built with GCC 8 (Debian 8.3.0-6) Configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg libavutil 56\.70.100/56 \. 70.100 libavcodec 58.134.100/58.134.100 libavformat 58\.76.100/58 \.76.100 libavdevice 58\.13.100/58 \.13.100 LibavFilter 7.110.100/7.110.100 libswscale 5\.9.100/5 \.9.100 libswresample 3\.9.100/3 \.9.100 libpostproc 55\. 9.100/55 \. 9.100

As you can see, FFMPEG version 4.4, and Configuration has a very rich set of codec libraries.

2, Windows download

Click in from step 2 to download it on GitHub.

After downloading, unzip, and then you will see the three EXE programs, find ffmpeg. Exe, Win + R input CMD, open the terminal, we directly in the terminal to view the version of ffmpeg information.

3. Mac installation



After downloading and unziping, you can see an executable UNIX file that the terminal executes

Downloads. / ffmpeg - version ffmpeg version 4.4 - tessus https://evermeet.cx/ffmpeg/ Copyright (c) 2000-2021 the ffmpeg Developers built with Apple Clang version 11.0.0 (Clang-1100.0.33.17) configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable -- ffplay libavutil 56\.70.100/56 \.70.100 libavcodec 58.134.100/58.134.100 Libavformat 58\.76.100/58 \.76.100 libavDevice 58\.13.100/58 \.13.100 libavFilter 7.110.100/7.110.100 libswscale 5\.9.100/5 \.9.100 libswresample 3\.9.100/3 \.9.100 libpostproc 55\.9.100/55 \.9.100

You can create a soft link to point to it, so you can manipulate FFmpeg anywhere.