Linux installation, compilation and configuration of ffmpeg

1. Download ffmpeg

Download URL: http://www.ffmpeg.org/download.html

2. Unzip

tar -zxvf ffmpeg-2.0.1.tar.gz

3. Edit the profile file:
vi /etc/profile
Add two sentences at the end of the file:
export FFMPEG_HOME=/usr/local/ffmpeg
export PATH=$FFMPEG_HOME/bin:$PATH
If the original java environment variable has been configured

export PATH=$FFMPEG_HOME/bin:$ JAVA_HOME /bin:$PATH
Execute source etc/profile
output variable echo $FFMPEG_HOME

4. Configure the installation path and the like:

./configure –enable-shared –prefix=/usr/local/ffmpeg

The –enable-shared parameter is said to allow it to compile and generate a dynamic library. I will use these dynamic libraries in future programming. I didn’t verify it, so I used it directly.

If an exception occurs, it prompts that you need to add parameters because of the lack of yasm, and then execute the following command:

./configure –enable-shared –disable-yasm –prefix=/usr/local/ffmpeg

If the execution result is incorrect, you can follow the prompt information and view the help to solve the problem

./configure…

The post linux install compile and configure ffmpeg first appeared on Lenix Blog .

This article is reprinted from https://blog.p2hp.com/archives/9692
This site is for inclusion only, and the copyright belongs to the original author.