If the server already has a Ffmpeg installed, for example, it is installed in the/usr/local/ffmpeg directory. The following upgrade steps for Linux are as follows:
1. Download ffmpeg-*.tar.gz
To Ffmpeg official website https://ffmpeg.org/download.html Select the version you want to upgrade to, and then download, for example, the author downloads is ffmpeg-2.0.tar.gz.
2. Compiling the installation
TAR-ZXVF ffmpeg-2.0.tar.gz
CD ffmpeg-2.0
./configure--enable-shared--prefix=/usr/local/ffmpeg
Make
Make install
3. Dynamic Link Library
Vi/etc/ld.so.conf
Join:/usr/local/ffmpeg/lib
Perform
Ldconfig
4. Add environment Variables for Ffmpeg
Vi/etc/profile
Add the following content:
Ffmpeg=/usr/local/ffmpeg
Path join: $FFMPEG/bin
5. Make changes effective immediately
Source/etc/profile
Perform
Ffmpeg-version
Print results
FFmpeg version 2.0
Built on Jul 09:59:06 with GCC 4.4.7 (gcc) 20120313 (Red Hat 4.4.7-3)
Configuration:--enable-shared--prefix=/usr/local/ffmpeg
Libavutil 52. 38.100/52. 38.100
Libavcodec 55. 18.102/55. 18.102
Libavformat 55. 12.100/55. 12.100
Libavdevice 55. 3.100/55. 3.100
Libavfilter 3. 79.101/3. 79.101
Libswscale 2. 3.100/2. 3.100
Libswresample 0. 17.102/0. 17.102
Prove that the upgrade was successful. If you encounter ffmpeg:error while loading shared libraries:libavdevice.so.55:cannot open Shared object file:no such file or dire Ctory, please check if the third step is done.
Recommended reading:
Linux under compile ffmpeg download source files and compile http://www.linuxidc.com/Linux/2012-02/54565.htm
Linux Compilation Upgrade FFmpeg steps