1. Download ffmpeg
Download URL: http://www.ffmpeg.org/download.html
2. Unzip
tar -zxvf ffmpeg-2.0.1.tar.gz
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.