Detailed tutorial for installing ffmpeg under Linux

Detailed tutorial for installing ffmpeg under Linux

1. Install ffmpeg under centos linux

1. Download and decompress

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

2. Enter the unzipped directory and enter the following command /usr/local/ffmpeg to specify the installation directory for yourself

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

3. Configuration variables

vi /etc/profile
Add the environment variable PATH at the end:
export PATH=$PATH:/usr/local/ffmpeg/bin
Save and exit to see if source /ect/profile settings are effective

4. Check the version

ffmpeg -version View version

Notice:

If the following errors occur during installation:

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
[email protected] 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.

Need to install yasm

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

2. Install ffmpeg on Debian

1. Edit /etc/apt/sources.list and add

deb http://www.deb-multimedia.org jessie main

2. Install ffmpeg

sudo apt-get update
sudo apt-get install deb-multimedia-keyring
sudo apt-get install ffmpeg

This is the end of this detailed tutorial on how to install ffmpeg under linux. For more information about installing ffmpeg under linux, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • C++ uses OpenCV to implement the function of changing the blue background of the ID photo to white background (or other colors such as red)
  • A complete example of converting blue background photos into white background photos implemented by C++ opencv
  • Opencv3/C++ implements SURF feature detection
  • Opencv3/C++ implements video reading and video writing
  • Opencv3/C++ contour extraction and screening method
  • Java uses ffmpeg to implement functions such as transcoding uploaded videos, extracting video screenshots, etc. (code operation)
  • Python ffmpeg method to extract video frames arbitrarily
  • Python integrates ffmpeg to realize batch conversion of video files
  • C++ opencv ffmpeg picture serialization implementation code analysis

<<:  How to verify whether MySQL is installed successfully

>>:  How to set mysql to case insensitive

Recommend

Detailed tutorial on installing mysql 5.7.26 on centOS7.4

MariaDB is installed by default in CentOS, which ...

Vue conditional rendering v-if and v-show

Table of contents 1. v-if 2. Use v-if on <temp...

Image hover toggle button implemented with CSS3

Result:Implementation Code html <ul class=&quo...

An article teaches you how to use Vue's watch listener

Table of contents Listener watch Format Set up th...

Vue3 implements Message component example

Table of contents Component Design Defining the f...

Mysql join query principle knowledge points

Mysql join query 1. Basic concepts Connect each r...

Vite introduces the implementation of virtual files

Table of contents background Importing virtual fi...

In-depth study of vue2.x--Explanation of the h function

Table of contents Solution, Summarize: vue projec...

The difference between MySQL database host 127.0.0.1 and localhost

Many of my friends may encounter a problem and do...

Use of Docker UI, a Docker visualization management tool

1. Introduction to DockerUI DockerUI is based on ...

CSS achieves the effect of aligning multiple elements at both ends in a box

The arrangement layout of aligning the two ends o...

The whole process of installing gogs with pagoda panel and docker

Table of contents 1 Install Docker in Baota Softw...