



Restart Apache to make this change in effect: service httpd restart Next, we download the latest ffmpeg-php release: wget Īdd the below lines at the end of php.ini: Follow the steps below to install FFmpeg and ffmpeg-php on your Linux server: yum install php-gd php-devel Installing FFmpeg-PHP Extension on CentOS.įFmpeg-PHP is a PHP extension that is used for accessing and retrieving information from video and audio files from within PHP scripts. If you want to learn more about FFmpeg, input: ffmpeg -h This should result in something very similar to the following output: ~]# ffmpeg -version ffmpeg -versionįfmpeg version 2.6.8 Copyright (c) 2000-2016 the FFmpeg developersīuilt with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)Ĭonfiguration: -prefix=/usr -bindir=/usr/bin -datadir=/usr/share/ffmpeg -incdir=/usr/include/ffmpeg -libdir=/usr/lib64 -mandir=/usr/share/man -arch=x86_64 -optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong -param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' -enable-bzlib -disable-crystalhd -enable-gnutls -enable-ladspa -enable-libass -enable-libcdio -enable-libdc1394 -enable-libfaac -enable-nonfree -enable-libfdk-aac -enable-nonfree -disable-indev=jack -enable-libfreetype -enable-libgsm -enable-libmp3lame -enable-openal -enable-libopenjpeg -enable-libopus -enable-libpulse -enable-libschroedinger -enable-libsoxr -enable-libspeex -enable-libtheora -enable-libvorbis -enable-libv4l2 -enable-libx264 -enable-libx265 -enable-libxvid -enable-x11grab -enable-avfilter -enable-avresample -enable-postproc -enable-pthreads -disable-static -enable-shared -enable-gpl -disable-debug -disable-stripping -shlibdir=/usr/lib64 -enable-runtime-cpudetect

To check for an installed FFmpeg version run: ffmpeg -version
