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

IIS7~IIS8.5 delete or modify the server protocol header Server

Requirements: Remove HTTP response headers in IIS...

How to import Tomcat source code into idea

Table of contents 1. Download the tomcat code 2. ...

MySQL 5.7.16 ZIP package installation and configuration tutorial

This article shares the installation and configur...

Method of using MySQL system database for performance load diagnosis

A master once said that you should know the datab...

Creating a file system for ARM development board under Linux

1. Please download the Busybox source code online...

Common structural tags in XHTML

structure body, head, html, title text abbr, acro...

Some Linux file permission management methods you may not know

Why do we need permission management? 1. Computer...

How webpack implements static resource caching

Table of contents introduction Distinguish betwee...

Docker exposes port 2375, causing server attacks and solutions

I believe that students who have learned about th...

The first step in getting started with MySQL database is to create a table

Create a database Right click - Create a new data...