• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] How to compile FFMPEG on Linux x86-64 with CentOs 6.5 Final + cPanel installed

Started by Bob.Weston,

Previous topic - Next topic

0 Members and 5 Guests are viewing this topic.

Bob.WestonTopic starter

Hi Community,

It took me a while to get PHPVIBE to work because there is not a really good tutorial on the net that will specifically get you what you need to make it work on a server, plus most are old and outdated. If you follow the tutorial provided by FFMPEG.org for CentOs will not get you up and running. With the information I provide you can set up your server in less than 30 minutes, but you must follow every step. I also must warn you that if you currently have website running the video script clipbucket, they will no longer be able to upload videos. Clipbucket is very old and outdated, it will only run on FFMPEG .09 or so.

I spent a couple weeks trying this and that and finally came up with a system and configuration  that works perfectly on every video I tested (flv,mp4,avi,mpeg,wmv,divx,mov,mpg). In this tutorial I will not go into settings for PHPVIBE nor the server apache settings. If you read the installation of PHPVIBE EVERYTHING you need is already written there. This tutorial will only help you get FFMPEG and required libraries setup on your server. Some of the libraries I have listed here may not be required, but hey.. it is working :)

Anyone on shared hosting can also send this information to their host and if they follow the instructions exactly, you will be able to run PHPVIBE with no problems.

Everything in this tutorial was performed on 1 October 2014, so if you read it in 10 years it is probably outdated ;)

There is nothing in here that will make your server not work anymore and everything is also undo-able :)

You must be logged in as "root" with putty to perform anything listed in this tutorial.

First thing you want to do is make sure FFMPEG is not already installed.
You can accomplish this with the following command:
ffmpeg


if you get something, it is installed, if you get nothing it could still be installed but not linked properly.

so run the following command to see where everything is located:
locate ffmpeg


if FFMPEG is installed already, you need to get rid of all previous installations until the list shown is down to just website ffmpeg references (EX: public_html/lib/upload-ffmpeg.php) <- files in public_html directories can stay. Remember, google is your friend and will help you figure out how to uninstall ffmpeg.

NOTE: Be sure to run commands one at a time, do not attempt to copy an entire code and paste it in putty!

Once you are sure ffmpeg is not installed, you can continue here :

FIREWALL MUST BE DISABLED!

Ensure your operating system is CentOs:
cat /etc/redhat-release


Install the additional repo for x64_64:
rpm -Uhv http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm


Update repository:
yum -y update


Install all necessary packages:
yum install glibc gcc gcc-c++ autoconf automake libtool git make nasm pkgconfig
yum install SDL-devel a52dec a52dec-devel alsa-lib-devel faac faac-devel faad2 faad2-devel
yum install freetype-devel giflib gsm gsm-devel imlib2 imlib2-devel lame lame-devel libICE-devel libSM-devel libX11-devel
yum install libXau-devel libXdmcp-devel libXext-devel libXrandr-devel libXrender-devel libXt-devel speex-devel
yum install libogg libvorbis vorbis-tools mesa-libGL-devel mesa-libGLU-devel xorg-x11-proto-devel zlib-devel
yum install libtheora theora-tools
yum install ncurses-devel
yum install libdc1394 libdc1394-devel
yum install amrnb-devel amrwb-devel opencore-amr-devel


Make a directory to put all of the source code into ( I use /home in this tutorial because there is the most space):
mkdir /home/ffmpeg_sources


Install xvid:
cd /home/ffmpeg_sources
wget http://downloads.xvid.org/downloads/xvidcore-1.3.2.tar.gz
tar xzvf xvidcore-1.3.2.tar.gz
cd xvidcore/build/generic
./configure --prefix="/home/ffmpeg_build"
make
make install
make distclean


Install LibOgg:
cd /home/ffmpeg_sources
wget http://downloads.xiph.org/releases/ogg/libogg-1.3.1.tar.gz
tar xzvf libogg-1.3.1.tar.gz
cd libogg-1.3.1
./configure --prefix="/home/ffmpeg_build" --disable-shared
make
make install
make distclean


Install Libvorbis:
cd /home/ffmpeg_sources
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.4.tar.gz
tar xzvf libvorbis-1.3.4.tar.gz
cd libvorbis-1.3.4
./configure --prefix="/home/ffmpeg_build" --with-ogg="/home/ffmpeg_build" --disable-shared
make
make install
make distclean


Install Libtheora:
cd /home/ffmpeg_sources
wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.gz
tar xzvf libtheora-1.1.1.tar.gz
cd libtheora-1.1.1
./configure --prefix="/home/ffmpeg_build" --with-ogg="/home/ffmpeg_build" --disable-examples --disable-shared --disable-sdltest --disable-vorbistest
make
make install
make distclean


Install Aacenc:
cd /home/ffmpeg_sources
wget http://downloads.sourceforge.net/opencore-amr/vo-aacenc-0.1.2.tar.gz
tar xzvf vo-aacenc-0.1.2.tar.gz
cd vo-aacenc-0.1.2
./configure --prefix="/home/ffmpeg_build" --disable-shared
make
make install
make distclean


Install Yasm:
yum remove yasm
cd /home/ffmpeg_sources
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar xzfv yasm-1.2.0.tar.gz
cd yasm-1.2.0
./configure --prefix="/home/ffmpeg_build" --bindir="/usr/bin"
make
make install
make distclean
export "PATH=$PATH:/usr/bin"


Install Libvpx:
cd /home/ffmpeg_sources
git clone http://git.chromium.org/webm/libvpx.git
cd libvpx
./configure --prefix="/home/ffmpeg_build" --disable-examples
make
make install
make distclean


Install X264:

NOTE: (Sometimes the network might be down.
Then you can also grab it via wget at ftp://ftp.videolan.org/pub/videolan/x264/snapshots/last_stable_x264.tar.bz2)
and then use "tar xvjf last_xxx" to extract.
cd /home/ffmpeg_sources
git clone git://git.videolan.org/x264.git
cd x264
./configure --prefix="/home/ffmpeg_build" --bindir="/usr/bin" --enable-static
make
make install
make distclean


Install libfdk_aac:
cd /home/ffmpeg_sources
git clone --depth 1 git://git.code.sf.net/p/opencore-amr/fdk-aac
cd fdk-aac
autoreconf -fiv
./configure --prefix="/home/ffmpeg_build" --disable-shared
make
make install
make distclean


Install libmp3lame:
cd /home/ffmpeg_sources
curl -L -O http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz
tar xzvf lame-3.99.5.tar.gz
cd lame-3.99.5
./configure --prefix="/home/ffmpeg_build" --bindir="/usr/bin" --disable-shared --enable-nasm
make
make install
make distclean


Install libopus:
cd /home/ffmpeg_sources
curl -O http://downloads.xiph.org/releases/opus/opus-1.1.tar.gz
tar xzvf opus-1.1.tar.gz
cd opus-1.1
./configure --prefix="/home/ffmpeg_build" --disable-shared
make
make install
make distclean


Configure Libraries:
export LD_LIBRARY_PATH=/usr/local/lib/
echo /usr/local/lib >> /etc/ld.so.conf.d/custom-libs.conf
ldconfig


Compile FFmpeg:
cd /home/ffmpeg_sources
git clone git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg
git checkout release/2.4
PKG_CONFIG_PATH="/home/ffmpeg_build/lib/pkgconfig"
export PKG_CONFIG_PATH
./configure --prefix="/home/ffmpeg_build" --extra-cflags="-I/home/ffmpeg_build/include" --extra-ldflags="-L/home/ffmpeg_build/lib" --bindir="/usr/bin" \
--extra-libs=-ldl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libfaac \
--enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libvo-aacenc --enable-libxvid --enable-ffplay \
--enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads --enable-libfdk_aac --enable-libopus \
--enable-libfreetype --enable-libspeex --extra-version=phpvibe
make
make install


Thats it! Check your compilation with:
ffmpeg


Troubleshoot:

It could be that you run into issues with a message of "ffmpeg: error while loading shared libraries....:. This simply means that it can't find the required libraries, in short you need to add them to the linked library configuration.

Check what libraries are missing with:
ldd `which ffmpeg`


This will give you a list of libraries ffmpeg is using. If any of them are marked with "not found" then search for the missing library in question, e.g. "libswresample.so.0" with:
find / -name libswresample.so.0


Once you have the path simply add it to /etc/ld.so.conf and issue a "ldconfig".

This should get you ffmpeg up and running.

LAST STEP! TURN FIREWALL BACK ON!

TO UNDO CHANGES MADE BY THIS TUTORIAL:
rm -rf /home/ffmpeg_build /home/ffmpeg_sources /usr/bin/{ffmpeg,ffprobe,ffserver,vsyasm,x264,yasm,ytasm}

yum erase glibc gcc gcc-c++ autoconf automake libtool git make nasm pkgconfig
yum erase SDL-devel a52dec a52dec-devel alsa-lib-devel faac faac-devel faad2 faad2-devel
yum erase freetype-devel giflib gsm gsm-devel imlib2 imlib2-devel lame lame-devel libICE-devel libSM-devel libX11-devel
yum erase libXau-devel libXdmcp-devel libXext-devel libXrandr-devel libXrender-devel libXt-devel speex-devel
yum erase libogg libvorbis vorbis-tools mesa-libGL-devel mesa-libGLU-devel xorg-x11-proto-devel zlib-devel
yum erase libtheora theora-tools
yum erase ncurses-devel
yum erase libdc1394 libdc1394-devel
yum erase amrnb-devel amrwb-devel opencore-amr-devel
hash -r


I will try to answer any questions asked but am not always on this website.

Hope this is helpful for someone, it is definitely useful for someone setting up a new server.

Bob
  •  

Marius P.

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

dimafabor

  •  

Bob.WestonTopic starter

Quote from: dimafabor on
Hello

it's --disable-shared or --enable-shared

Thanks

As it is written.. all the above is exactly how I configured a centos 64 bit server and it is working perfectly.

do if it says --disable-shared that is what it should be.
  •  

dimafabor

  •  

cyonx

Thank you I was able to install ffmpeg without any errors but when installing ffmpeg-php I get the following errors

configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for ffmpeg support... yes, shared
checking whether to force gd support in ffmpeg-php... no
checking for ffmpeg headers...
configure: error: ffmpeg headers not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option


Is ffmpeg-php required for this script ? also how can I overcome this problem ?
  •  

Bob.WestonTopic starter

Quote from: cyonx on
Thank you I was able to install ffmpeg without any errors but when installing ffmpeg-php I get the following errors

configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for ffmpeg support... yes, shared
checking whether to force gd support in ffmpeg-php... no
checking for ffmpeg headers...
configure: error: ffmpeg headers not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option


Is ffmpeg-php required for this script ? also how can I overcome this problem ?

as far as I know, ffmpeg-php is not required.
I never installed it and mine is working.
  •  

Marius P.

Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

aryan2029

Hi, thank you very much for helping us. i got problem while installing ffmpeg. i finished installing others without any problem, but while installing the ffmpeg i received this massage. thank you.

Receiving objects: 100% (399466/399466), 95.56 MiB | 11.47 MiB/s, done.
Resolving deltas: 100% (317067/317067), done.
root@server [/home/ffmpeg_sources]# cd ffmpeg
root@server [/home/ffmpeg_sources/ffmpeg]# git checkout release/2.4
Branch release/2.4 set up to track remote branch release/2.4 from origin.
Switched to a new branch 'release/2.4'
root@server [/home/ffmpeg_sources/ffmpeg]# PKG_CONFIG_PATH="/home/ffmpeg_build/lib/pkgconfig"
root@server [/home/ffmpeg_sources/ffmpeg]# export PKG_CONFIG_PATH
root@server [/home/ffmpeg_sources/ffmpeg]# ./configure --prefix="/home/ffmpeg_build" --extra-cflags="-I/home/ffmpeg_build/include" --extra-ldflags="-L/home/ffmpeg_build/lib" --bindir="/usr/bin" \
> --extra-libs=-ldl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libfaac \
> --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libvo-aacenc --enable-libxvid --enable-ffplay \
> --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads --enable-libfdk_aac --enable-libopus \
> --enable-libfreetype --enable-libspeex --extra-version=phpvibe
Unable to create and execute files in /tmp.  Set the TMPDIR environment
variable to another directory and make sure that it is not mounted noexec.
Sanity test failed.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.
root@server [/home/ffmpeg_sources/ffmpeg]#

i will wait for you answer and then contuse... Thank you
  •  

Bob.WestonTopic starter

Quote from: aryan2029 on
Hi, thank you very much for helping us. i got problem while installing ffmpeg. i finished installing others without any problem, but while installing the ffmpeg i received this massage. thank you.

Receiving objects: 100% (399466/399466), 95.56 MiB | 11.47 MiB/s, done.
Resolving deltas: 100% (317067/317067), done.
root@server [/home/ffmpeg_sources]# cd ffmpeg
root@server [/home/ffmpeg_sources/ffmpeg]# git checkout release/2.4
Branch release/2.4 set up to track remote branch release/2.4 from origin.
Switched to a new branch 'release/2.4'
root@server [/home/ffmpeg_sources/ffmpeg]# PKG_CONFIG_PATH="/home/ffmpeg_build/lib/pkgconfig"
root@server [/home/ffmpeg_sources/ffmpeg]# export PKG_CONFIG_PATH
root@server [/home/ffmpeg_sources/ffmpeg]# ./configure --prefix="/home/ffmpeg_build" --extra-cflags="-I/home/ffmpeg_build/include" --extra-ldflags="-L/home/ffmpeg_build/lib" --bindir="/usr/bin" \
> --extra-libs=-ldl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libfaac \
> --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libvo-aacenc --enable-libxvid --enable-ffplay \
> --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads --enable-libfdk_aac --enable-libopus \
> --enable-libfreetype --enable-libspeex --extra-version=phpvibe
Unable to create and execute files in /tmp.  Set the TMPDIR environment
variable to another directory and make sure that it is not mounted noexec.
Sanity test failed.

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.
root@server [/home/ffmpeg_sources/ffmpeg]#

i will wait for you answer and then contuse... Thank you

This means that your /tmp directory has noexec flag and you need to disable it for a while.

Another solution
============
make sure you have /root/tmp (you should) and just run

export TMPDIR=$HOME/tmp

before you do your
./configure
  •  

aryan2029

Dear BOB.

Thank you very much. after applying that code it works and installed.
  •  

Bob.WestonTopic starter

  •  

cdahal1995

  •  

Bob.WestonTopic starter

Quote from: cdahal1995 on
Thanks a lot for this tutorial

You are very welcome and Happy New Year..

I wrote this because I spent a couple of months trying over and over on different setups and finally found this that worked with phpVibe, was a very frustrating time for me.. it needed to be shared so everyone who purchases has something to follow to get it working on their server.
  •  

pkwebhost

my ffmpeg installed fine but avi not converting and giving error
the video being currently proceed


root@vps [~]# ffmpeg
ffmpeg version git-2015-01-12-3aaff80 Copyright (c) 2000-2015 the FFmpeg developers
  built on Jan 12 2015 14:06:41 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11)
  configuration:
  libavutil      54. 16.100 / 54. 16.100
  libavcodec     56. 20.100 / 56. 20.100
  libavformat    56. 18.101 / 56. 18.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5.  7.100 /  5.  7.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
  •  

Bob.WestonTopic starter

Quote from: pkwebhost on
my ffmpeg installed fine but avi not converting and giving error
the video being currently proceed


root@vps [~]# ffmpeg
ffmpeg version git-2015-01-12-3aaff80 Copyright (c) 2000-2015 the FFmpeg developers
  built on Jan 12 2015 14:06:41 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11)
  configuration:
  libavutil      54. 16.100 / 54. 16.100
  libavcodec     56. 20.100 / 56. 20.100
  libavformat    56. 18.101 / 56. 18.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5.  7.100 /  5.  7.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'

you have no FFMPEG configuration, it cannot work.
  •  

pkwebhost

Quote from: Bob.Weston on
you have no FFMPEG configuration, it cannot work.

Dear Sir

how to configure ffmpeg now ?

please help

Thanks
  •  

Marius P.

If this fails, there are so many guides on the web http://www.phpvibe.com/ffmpeg-installation-for-a-video-script/
But first, remove the failing version, as installing two can create chaos.
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

pkwebhost

Quote from: @Mario on
If this fails, there are so many guides on the web http://www.phpvibe.com/ffmpeg-installation-for-a-video-script/
But first, remove the failing version, as installing two can create chaos.

please check

http://www.samatube.com/phpinfo.php

here it show ffmpeg configure
  •  

Bob.WestonTopic starter

Quote from: pkwebhost on
Dear Sir

how to configure ffmpeg now ?

please help

Thanks

Hi,

you did not follow all the steps I provided above or it would be configured.
The configuring is done during the compile section as it is stated in the tutorial:

Compile FFmpeg:
Code: [Select]

cd /home/ffmpeg_sources
git clone git://source.ffmpeg.org/ffmpeg.git
cd ffmpeg
git checkout release/2.4
PKG_CONFIG_PATH="/home/ffmpeg_build/lib/pkgconfig"
export PKG_CONFIG_PATH
./configure --prefix="/home/ffmpeg_build" --extra-cflags="-I/home/ffmpeg_build/include" --extra-ldflags="-L/home/ffmpeg_build/lib" --bindir="/usr/bin" \
--extra-libs=-ldl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libfaac \
--enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libvo-aacenc --enable-libxvid --enable-ffplay \
--enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads --enable-libfdk_aac --enable-libopus \
--enable-libfreetype --enable-libspeex --extra-version=phpvibe
make
make install
  •  

Marius P.

Quote from: pkwebhost on
please check

http://www.samatube.com/phpinfo.php

here it show ffmpeg configure

Your ffmpeg is 0.6 and it's a big warning saying you need 1.0+ and that it will not work on lower version, all this is on the requirements page http://www.phpvibe.com/requirements/
Upgrade your ffmpeg, this one you use is very very old!
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

pkwebhost

Dear i make new fresh vps and installed cpanel and easy apache

at the end i am getting this error


Quoteroot@vps2 [/home/ffmpeg_sources/ffmpeg]# cd /home/ffmpeg_sources
root@vps2 [/home/ffmpeg_sources]# git clone git://source.ffmpeg.org/ffmpeg.git
fatal: destination path 'ffmpeg' already exists and is not an empty directory.
root@vps2 [/home/ffmpeg_sources]# cd ffmpeg
root@vps2 [/home/ffmpeg_sources/ffmpeg]# git checkout release/2.4
Already on 'release/2.4'
root@vps2 [/home/ffmpeg_sources/ffmpeg]# PKG_CONFIG_PATH="/home/ffmpeg_build/lib/pkgconfig"
root@vps2 [/home/ffmpeg_sources/ffmpeg]# export PKG_CONFIG_PATH
root@vps2 [/home/ffmpeg_sources/ffmpeg]# ./configure --prefix="/home/ffmpeg_build" --extra-cflags="-I/home/ffmpeg_build/include" --extra-ldflags="-L/home/ffmpeg_build/lib" --bindir="/usr/bin" \
> --extra-libs=-ldl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libfaac \
> --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libvo-aacenc --enable-libxvid --enable-ffplay \
> --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads --enable-libfdk_aac --enable-libopus \
> --enable-libfreetype --enable-libspeex --extra-version=phpvibe
ERROR: libfaac not found

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.
root@vps2 [/home/ffmpeg_sources/ffmpeg]# make
Makefile:2: config.mak: No such file or directory
Makefile:58: /common.mak: No such file or directory
Makefile:99: /libavutil/Makefile: No such file or directory
Makefile:99: /library.mak: No such file or directory
Makefile:101: /doc/Makefile: No such file or directory
Makefile:184: /tests/Makefile: No such file or directory
make: *** No rule to make target `/tests/Makefile'.  Stop.
root@vps2 [/home/ffmpeg_sources/ffmpeg]# make install
Makefile:2: config.mak: No such file or directory
Makefile:58: /common.mak: No such file or directory
Makefile:99: /libavutil/Makefile: No such file or directory
Makefile:99: /library.mak: No such file or directory
Makefile:101: /doc/Makefile: No such file or directory
Makefile:184: /tests/Makefile: No such file or directory
make: *** No rule to make target `/tests/Makefile'.  Stop.
root@vps2 [/home/ffmpeg_sources/ffmpeg]#
  •  

Marius P.

Did you uninstall the previous version completely before trying to install again?
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

pkwebhost

Quote from: @Mario on
Did you uninstall the previous version completely before trying to install again?

yes i create new vps and install

i help from this link and installed fine

https://trac.ffmpeg.org/wiki/CompilationGuide/Centos#FFmpeg

now get this result

root@vps2 [~/ffmpeg_sources/ffmpeg]# ffmpeg
ffmpeg version git-2015-01-29-d43c1ec Copyright (c) 2000-2015 the FFmpeg developers
  built on Jan 29 2015 07:25:10 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11)
  configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264
  libavutil      54. 18.100 / 54. 18.100
  libavcodec     56. 21.101 / 56. 21.101
  libavformat    56. 19.100 / 56. 19.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5.  9.101 /  5.  9.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
root@vps2 [~/ffmpeg_sources/ffmpeg]#


but phpinfo page not show ffmpeg

please help to installed ffmpeg extension
  •  

Bob.WestonTopic starter

I also followed that link at the beginning and never could get it to work and many other tutorials on the net.. that is why I wrote this tutorial because it does work if you go step by step.

If my tutorial doesn't work and you have a VPS, you may want to contact the server owner and ask them if they have some security turned on that would block FFMPEG.
  •  

Similar topics (7)