Centos7 uses yum to install FFmpeg and ffmpeg-php extension problems

What is it?
FFmpeg is an open source free software that can perform recording, transcoding, and streaming functions of audio and video in multiple formats. It includes libavcodec, a decoder function used for audio and video in multiple projects. library, and libavformat - an audio and video format conversion library. The "FF" in the word "FFmpeg" refers to " Forward".

existUse belowWhen installing ffmpeg, it cannot be installed by default. You need to add the nux-dextop source. If you have installed the nux-dextop source before, use the yum command to install it directly.

yum install -y ffmpeg

Now install the nux-dextop source.

sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
yum list ffmpeg

Check if there is ffmpeg in the nux-dextop source

OK, you can find the 64-bit installation package of ffmpeg and run the yum command to install it.

yum install -y ffmpeg

After the installation is complete, check whether the installation was successful and check the version number.

ffmpeg-version


Ok, you can see that the installed version is ffmpeg2.8.15. At this point, ffmpeg is installed.

The latest version can be downloaded from the official website of ffmpeghttp://ffmpeg.org

Regarding the installation of the ffmpeg-php extension, if your PHP version is greater than 5.6, you cannot install the ffmpeg-php extension. The ffmpeg-php extension cannot currently be installed in PHP versions above 5.6 because the version is too old! Regarding this point, I searched relevant websites at home and abroad and the final answer was to install multiple versions of PHP.

score

Leave a Reply

Your email address will not be published. Required fields are marked *