How To Install Ffmpeg-php



NEW Solution

Feb 13, 2010 # tar jxvf ffmpeg-php-0.6.0.tbz2 # cd ffmpeg-php-0.6.0 # phpize #./configure # make # make install. It will copy the ffmpeg.so module in php default module location. Now you have to edit php.ini file to enable ffmpeg-php support in it by using ffmpeg.so module.

Sudo apt-get install build-essential libjpeg62 libjpeg-progs libjpeg62-dev php5-dev unzip libsdl1.2-dev 1. FFmpeg-PHP Installation You can simply install it with the following command: sudo apt-get install php5-ffmpeg To install from source, use the following commands: cd /tmp && wget -O ffmpeg-php-0.6.0.tbz2 http://goo.gl/Ik9C8. Yum install ffmpeg ffmpeg-devel ffmpeg-libpostproc. Note: If you install ffmpeg-libpostproc, the entire FFmpeg software library changes from the LGPL license to the GPL license. After a couple of minutes, the packages and the packages that they depend on were installed.

Here's how: Right-click the Windows/Start button and select File Explorer. Click the Downloads folder in the left panel (you may have to click This PC first to find it). Right-click ffmpeg-.-git-.fullbuild.7z (the file name will vary depending on the current release). Ffmpeg-php version = 0.7.0 ffmpeg-php built on = Jul 28 2015 15:27:12 ffmpeg-php gd support = enabled ffmpeg libavcodec version = Lavc55.52.102 ffmpeg libavcodec license = GPL version 3 or later ffmpeg libavformat version = Lavf55.33.100 ffmpeg libavformat license = GPL version 3 or later ffmpeg swscaler version = SwS2.5.102.

Step1) Download

Step2) Unzip ffmpeg-3.2.2-win64-static.zip and copy the three files in bin folder i.e ffmpeg.exe ffprobe.exe ffplay.exe to C:ffmpeg (create a folder C:ffmpeg if not exists)

Step3) Add the C:ffmpeg path to Environment Variable PATH (let me know if you need help with this)

Step4) Install composer from here https://getcomposer.org/Composer-Setup.exe (if asked for php path select C:xamppphpphp.exe)

Step5) open command prompt and go to C:xampphtdocs (cd C:xampphtdocs)

Step6) type

composer require php-ffmpeg/php-ffmpeg

and wait for it to complete

Step7) when ever we call the create function we should pass the executable array like this

Done :) this is working for now :)

OLD Solution

Step 1 ) Download all the below files according to your system

Step 2) Download this file http://azzerti.free.fr/php_ffmpeg_win32.zip

Step 3) Copy both ffmpeg-3.2.2-win64-static.zip and php_ffmpeg_win32.zip in some directory and extract them in their specific folders

Step 4) when you extract ffmpeg-3.2.2-win64-static.zip you will see three files ffmpeg.exe , ffplay.exe, ffprobe.exe copy these three files in C:Xampphtdocs

Step 5) Extract php_ffmpeg_win32.zip, you should see many files like avcodec.dll, avformat.dll php_ffmpeg_20050123.dll, php_ffmpeg_20050212.dll, php_ffmpeg_20050618.dll , ffmpeg.rar

Step 6) Open C:xamppphpphp.ini and search for extension=php_gd2.dll if you see ; in front of extension=php_gd2.dll remove it it should look like extension=php_gd2.dll without ';' in front

Step 7) just after the extension=php_gd2.dll in next line enter the below line

Ffmpeg-php

Step 8) If you have xampp running stop everything and quit now

Testing Time

Step 9) in the root C:xampphtdocs copy paste this content in some file test.php

Step 10) Edit the test.php and give the flv path and image name and save it

Install

Install Ffmpeg On Windows

Step 11) Run it http://localhost/test.php

:)

Let me know if you need help i can help you with Teamviewer if needed

How to install ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encoder, and Libog from source

This article shows how to install ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encoder, and Libog from source. It should work on most systems, however may need some tweaking from system to sytem.

cd /usr/local/src

Download source tarballs:

wget http://rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz
wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
wget http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2
wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz
wget http://www4.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2

Extract the tarballs:

tar zxvf lame-3.97.tar.gz
tar zxvf libogg-1.1.3.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz
tar zxvf flvtool2_1.0.5_rc6.tgz
tar jxvf essential-20061022.tar.bz2
tar jxvf ffmpeg-php-0.5.0.tbz2
tar zxvf flvtool2_1.0.5_rc6.tgz


Make a directory to store all the codecs:

How

mkdir /usr/local/lib/codecs/


Install any necessary packages:

yum install gcc gmake make libcpp libgcc libstdc++ gcc4 gcc4-c++ gcc4-gfortran
yum install subversion ruby ncurses-devel

svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
cd /usr/local/src/mplayer
svn update
cd /usr/local/src

Copy codecs for mplayer:

mv /usr/local/src/essential-20061022/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/

If you are using secure tmp:

mkdir /usr/local/src/tmp
chmod 777 /usr/local/src/tmp
export TMPDIR=/usr/local/src/tmp

Installing Lame:

How To Install Ffmpeg-php

cd /usr/local/src/lame-3.97
./configure
make && make install

Installing Libogg:

cd /usr/local/src/libogg-1.1.3
./configure && make && make install

Installing libvorbis:

cd /usr/local/src/libvorbis-1.1.2
./configure && make && make install

Installing flvtool2:

cd /usr/local/src/flvtool2_1.0.5_rc6/
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install

cd /usr/local/src/mplayer
./configure && make && make install

Installing ffmpeg:

cd /usr/local/src/ffmpeg/
./configure –enable-libmp3lame –enable-libogg –enable-libvorbis –disable-mmx –enable-shared
make && make install

ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51

How

Installing ffmpeg-php:

How To Install Ffmpeg-php On Ubuntu

cd /usr/local/src/ffmpeg-php-0.5.0/
phpize
./configure
make
make install

Note: Make sure this is the correct php.ini for this server.

Install Ffmpeg Mac

echo ‘extension=/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ffmpeg.so’ >> /usr/local/Zend/etc/php.ini

How To Install Ffmpeg-php Pocket Door

Restart apache:

How To Use Ffmpeg

service httpd restart