MPEG (Fast Forward MPEG) is a set of open-source computer programs that can be used to record, transform, and convert digital audio and video into streams.FFmpeg is developed under the Linux platform and can be compiled and run in OS environments such as Windows, Mac OS x.I. Installing other auxiliary packages
1. Installing the LAME----MP3 encoder1) Lame official website Download the latest installation package lame-3.99.5.tar.gzhttp://lame.sourceforge.net/download.php2) Unzip
3) Open the terminal in the package after decompression, enter the package
4) must be advanced into the administrator mode, otherwise it will be wrong
5) configuration
6) installation, should be error-free
6) Check whether the installation is successful
2. Installing the Libogg----OGG Stream decoder
1) Download the latest installation package libogg-1.3.2.tar.gzhttp://www.xiph.org/downloads/2) Unzip
3) Open the terminal in the package after decompression, enter the package
4) Enter admin mode
5) configuration
6) Installation
3. Installing Libvorbis
Libvorbis relies on Libogg, so libogg must be installed prior to Libvorbis
1) Download the latest installation packagehttp://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.gz2) Unzip
3) Open the terminal in the package after decompression, enter the package
4) Enter admin mode
5) configuration
6) Installation
4. Installing XviD
1) Download the latest installation package
http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gz2) Unzip
3) Open the terminal in the package after decompression, enter the package with the configuration file
4) Enter admin mode
5) configuration
6) Installation
5. Installing Yasm
Yasm must be installed, otherwise there will be a problem when installing x264
1) Download the latest installation package
Http://yasm.tortall.net/Download.html
2) Unzip
3) Open the terminal in the package after decompression, enter the package with the configuration file
4) Enter admin mode
5) configuration
6) Installation
6. Installing x264
1) Download the latest installation package
Http://www.videolan.org/developers/x264.html
2) Unzip
3) Open the terminal in the package after decompression, enter the package with the configuration file
4) Enter admin mode
5) configuration
6) Installation
7. Installing Libdts
1) Download the latest installation package libdca-0.0.5.tar.bz2
Http://www.videolan.org/developers/libdca.html
2) Unzip
3) Open the terminal in the package after decompression, enter the package with the configuration file
4) Enter admin mode
5) configuration
6) Installation
8. Installing A52
1) Download the latest installation package a52dec-0.7.4.tar.gz
Http://liba52.sourceforge.net/downloads.html
The following steps are the same as 7. Installing Libdts
9. Installing Faad2
1) Download the latest installation package faad2-2.7.tar.gz
Http://www.audiocoding.com/downloads.html
2) Unzip
3) Open the terminal in the package after decompression, enter the package with the configuration file
4) Enter admin mode
5) configuration
6) Installation
10. Installing FAAC
1) Download the latest installation package faac-1.28.tar.gz
Http://www.audiocoding.com/downloads.html
2) Unzip
3) Open the terminal in the package after decompression, enter the package with the configuration file
4) Enter admin mode
5) configuration
6) Installation
make will appear error about 3GP.O, workaround: Comment out the 126th line in Faac-1.28/common/mp4v2/mpeg4ip.h char *strcasestr (const char *haystack, const Char *needle); re-make
11. Installing AMR-NB
1) Download the latest installation package amrnb-10.0.0.0.tar.bz2
http://ftp.penguin.cz/pub/users/utx/amr/
The following steps are the same as 7. Installing Libdts
About the unzip error, no solution, welcome message Discussion
12. Installing AMR-WB
1) Download the latest installation package amrwb-7.0.0.1.tar.bz2
http://ftp.penguin.cz/pub/users/utx/amr/
The following steps are the same as 7. Installing Libdts
About the unzip error, no solution, welcome message Discussion
Two. Installing FFmpeg
1. Download the source code
From FFmpeg official website: https://www.ffmpeg.org/download.html Download tar.bz2 format package
2. Extracting files
3. Enter the catalogue
4. Configuration
Where –enable-shared represents the generation of dynamic-link libraries, which can be used for later programming, and the resulting executable program also relies on these dynamic libraries. If you do not add the –enable-shared option to compile with a static link, the dynamic library will not be generated at the same time, and the resulting executable files such as FFmpeg will be larger, but they will not need a dynamic library to run directly.
–prefix represents the directory where the program is installed, which is set to/usr/local/ffmpeg.
5. Compile, it takes 10 minutes
6. Installation
7. Path interpretation
after the installation is complete, three directories appear in/usr/local/ffmpeg:
- Bin: Executable directory (run ffmpeg with./ffmpeg)
- LIB: dynamic-link library directory (either programming or executable execution requires reliance on the dynamic library below Lib)
- Include: Header file directory for programming
Install FFmpeg under Linux