If the server already has a Ffmpeg installed, eg in the /usr/local/ffmpeg directory. The version upgrade steps are as follows:
1. Download ffmpeg-*.tar.gz to the Ffmpeg official website https://ffmpeg.org/download.html Select the version you want to upgrade to, and then download it. For example, the author downloaded ffmpeg-2.0.tar .gz. 2. Compile and install 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. Add so.conf : /usr/local/ffmpeg/lib Execute ldconfig 4. Add the environment variable vi /etc/profile for Ffmpeg Add the following: FFMPEG=/usr/local/ffmpeg PATH Add: $FFMPEG/bin 5. Make the modification Effective immediately source /etc/profile
Execute ffmpeg -version to print the result ffmpeg version 2.0 built on Jul 24 2013 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 libswavfilter 3.79.101/ 22.3. . 3.100 libswresample 0. 17.102 / 0. 17.102 proved that the upgrade was successful. If you encounter errors such as ffmpeg: error while loading shared libraries: libavdevice.so.55: cannot open shared object file: No such file or directory , please check whether the third step is done.
Execute ffmpeg -version to print the result ffmpeg version 2.0 built on Jul 24 2013 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 libswavfilter 3.79.101/ 22.3. . 3.100 libswresample 0. 17.102 / 0. 17.102 proved that the upgrade was successful. If you encounter errors such as ffmpeg: error while loading shared libraries: libavdevice.so.55: cannot open shared object file: No such file or directory , please check whether the third step is done.