Getting Started

Requirements And Installation

Operating System

  • Linux (CentOS 6, CentOS 6.5, Fedora, Ubuntu)
  • CentOS 7 ( Recomended )

Requirements

  • Apache
  • MySQL v5.6,5.7 (major)
  • PHP v7.0 (major)
  • FFMPEG
  • MP4Box
  • FFPROBE
  • MediaInfo
  • ImageMagick

Lets Setup with Centos 7.0

Utilities

  • yum groupinstall -y Development Tools
  • yum install autoconf automake gcc gcc-c++ git libtool make pkgconfig zlib-devel
  • yum install yum-utils
  • yum-config-manager --add-repo http://www.nasm.us/nasm.repo
  • yum install nasm

FFmpeg Installation Steps

    Export :

  • export TMPDIR=/opt/tmp-ffmpeg
  • mkdir $TMPDIR && mkdir /opt/ffmpeg_sources
  • Installing yasm

  • cd /opt/ffmpeg_sources
  • wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
  • tar xzvf yasm-1.3.0.tar.gz && cd yasm-1.3.0
  • ./configure && make && make install
  • cd /opt/ffmpeg_sources
  • git clone --depth 1 https://github.com/yasm/yasm.git
  • cd yasm && autoreconf -fiv
  • ./configure --prefix="/opt/ffmpeg_build" --bindir="/opt/bin"
    make && make install && make distclean
  • Installing x264

  • cd /opt/ffmpeg_sources
  • git clone --depth 1 git://git.videolan.org/x264
  • cd x264 && ./configure --prefix="/opt/ffmpeg_build" --bindir="/opt/bin" --enable-shared --disable-lavf
  • make && make install && make distclean
  • git clone --depth 1 git://git.videolan.org/x264
  • cd x264 && ./configure --prefix="/opt/ffmpeg_build" --bindir="/opt/bin" --enable-shared --disable-lavf
  • make && make install && make distclean
  • Installing libfdk-aac

  • cd /opt/ffmpeg_sources
  • git clone --depth 1 https://github.com/Distrotech/fdk-aac.git
  • cd fdk-aac && autoreconf -fiv && ./configure --prefix="/opt/ffmpeg_build" --disable-shared
  • make && make install && make distclean
  • Installing libLame

  • cd /opt/ffmpeg_sources
  • curl -L -O http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
  • cd lame-3.99.5 && ./configure --prefix="/opt/ffmpeg_build" --bindir="/opt/bin" --disable-shared --enable-nasm
  • make && make install && make distclean
  • Installing Opus

  • cd /opt/ffmpeg_sources
  • wget http://downloads.xiph.org/releases/opus/opus-1.1.2.tar.gz
  • tar xzvf opus-1.1.2.tar.gz
  • cd opus-1.1.2 && ./configure --prefix="/opt/ffmpeg_build" --disable-shared
  • make && make install && make distclean
  • Installing libogg

  • cd /opt/ffmpeg_sources
  • wget http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.xz
  • tar -xJf libogg-1.3.2.tar.xz
  • cd libogg-1.3.2 && ./configure --prefix="/opt/ffmpeg_build" --disable-shared
  • make && make install && make distclean
  • Installing libvorbis

  • cd /opt/ffmpeg_sources
  • wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.xz
  • tar -xJf libvorbis-1.3.5.tar.xz && cd libvorbis-1.3.5
  • LDFLAGS="-L/opt/ffmeg_build/lib" CPPFLAGS="-I/opt/ffmpeg_build/include" ./configure --prefix="/opt/ffmpeg_build" --with-ogg="/opt/ffmpeg_build" --disable-shared
  • make && make install && make distclean
  • Now Finally FFmpeg

  • cd /opt/ffmpeg_sources
  • git clone --depth 1 https://github.com/FFmpeg/FFmpeg.git
  • cd FFmpeg && PKG_CONFIG_PATH="/opt/ffmpeg_build/lib/pkgconfig" ./configure --prefix="/opt/ffmpeg_build" --extra-cflags="-I/opt/ffmpeg_build/include" --extra-ldflags="-L/opt/ffmpeg_build/lib" --bindir="/opt/bin" --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libx264
  • make && make install && make distclean && hash -r && unset TMPDIR
  • Edit /etc/ld.so.conf

  • give path of lib folder for ffmpeg such as
  • /opt/ffmpeg_build/lib
    /usr/local/lib
    /usr/lib

  • Execute : ldconfig

MP4Box

  • yum install MP4Box
  • or compaile
  • cd && git clone https://github.com/gpac/gpac.git && cd gpac &&
    ./configure --static-mp4box --use-zlib=no &&
    make -j4 &&
    make install

Mediainfo

  • yum install mediainfo
  • or compaile
  • cd /usr/local/src &&
    wget http://mediaarea.net/download/binary/libzen0/0.4.29/libzen0-0.4.29-1.x86_64.CentOS_6.rpm &&
    wget http://mediaarea.net/download/binary/libmediainfo0/0.7.64/libmediainfo0-0.7.64-1.x86_64.CentOS_6.rpm &&
    wget http://mediaarea.net/download/binary/mediainfo/0.7.64/mediainfo-0.7.64-1.x86_64.CentOS_6.rpm &&
    rpm -ivh libzen0-0.4.29-1.x86_64.CentOS_6.rpm &&
    rpm -ivh libmediainfo0-0.7.64-1.x86_64.CentOS_6.rpm &&
    rpm -ivh mediainfo-0.7.64-1.x86_64.CentOS_6.rpm

Imagick

  • yum -y install php-pear
  • yum -y install ImageMagick*
  • yum -y install php-imagick
  • yum -y install gcc php-devel
  • yum -y install ImageMagick ImageMagick-devel
  • pecl install imagick
  • ##if above command does not work, use following one

  • pecl install imagick-3.1.2

Installation

Please Give us your feedback if this guide was helpful. Your feedback is how we improve. ThankYou for Reading !

Docker Image Coming Soon…

1 Comments

Comments are closed.

1 Star2 Stars3 Stars4 Stars5 Stars (142 votes, average: 1.45 out of 5)
Loading...