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.
- FFMPEG static library download and install
- Install FFMPEG on your Mac
- Build and install FFMPEG on Centos7
- Install FFMPEG using Docker
You can choose to install according to your preferences. Today we’ll look at how to install FFMPEG under Docker.
Docker has almost no difficulty installing FFmpeg compared to Mac installing FFmpeg or Centos7 installing FFmpeg, so Docker is so popular for a good reason.
First, I’m going to assume that you already have Docker installed and can easily use it.
1. Download the image
~ docker pull jrottenberg/ffmpeg
2. Run the container directly to test whether the installation was successful
~ docker run jrottenberg/ffmpeg: latest version - ffmpeg version 4.1 Copyright (c) 2000-2018 the ffmpeg developers built With GCC 5.4.0 (Ubuntu 5.4.0-6Ubuntu 1~16.04.11) 20160609 Configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libass --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-postproc --enable-small --enable-version3 --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib --extra-libs=-ldl --prefix=/opt/ffmpeg libavutil 56\.22.100/56 \.22.100 libavCodec 58\.35.100/58 \.35.100 libavFormat 58\.20.100/58 \.20.100 libavDevice 58\. 5.100/58 \.5.100 libavFilter 7\.40.101/7 \.40.101 libavresample 4\.0 \.0 \.0 libswscale 5\.3.100/5 \. 3.100 libswresample 3\.3.100/3 \.3.100 libpostproc 55\.3.100/55 \.3.100
The feeling of one step in place is cool.
For the sake of practice, we are just doing a simple installation now, and we will write a Dockfile for installation when the deployment goes online.