Page tree
Skip to end of metadata
Go to start of metadata

Purpose of this document is provide detail steps to install and set up FFMPEG for using upload feature of phpFox Videos app on server Centos 6/7.

Install FFMPEG

Please follow below steps to install FFMPEG on your Centos server:

Install Library Gcc

Run the command:

yum install gcc gcc-c++ git autoconf automake libtool wget -y

Install Yasm x264

  • On Centos 6, run the command:
yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm
  • On Centos 7, run the commands:
yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
yum install yasm x264 x264-devel -y

Install AAC

Run all below commands, one by one:

mkdir temp
cd temp
git clone https://github.com/mstorsjo/fdk-aac.git
cd fdk-aac
./autogen.sh
./configure --enable-shared --enable-static
make
make install
cd ..

Install latest version of FFMPEG from https://ffmpeg.org

For example, will install version 3.3.1.

  • Download the package:
wget https://ffmpeg.org/releases/ffmpeg-3.3.1.tar.gz
  • Extract archive:
tar -zxvf ffmpeg-3.3.1.tar.gz
  • Install FFMPEG
cd ffmpeg-3.3.1
yum install ffmpeg ffmpeg-devel -y
  • Finish with some configuration for the library
export LD_LIBRARY_PATH=/usr/local/lib/
echo /usr/local/lib > /etc/ld.so.conf.d/custom-libs.conf
ldconfig

Configure Video FFMPEG path for the app

  • Run below command to get FFMPEG path
which ffmpeg
  • Copy the FFMPEG path then add it to Path to FFMPEG setting in Admin > Apps > Videos > Settings
  • Check FFMPEG version and supported video formats in Admin > Apps > Video > FFMPEG Video Utilities

  • No labels