|
REQUIREMENTS
1) ffmpeg-0.4.9pre1 or higher built with the --enable-shared option (ffmpeg cvs recommended) 2) php-4.3.x or higher 3) gd-2.0.x or higher or the version of GD bundled with PHP INSTALLATION 1) Download latest version of ffmpeg-php library here 1. BUILDING FFMPEG-PHP AS A SHARED EXTENSION This solution is better, becouse you mustnt recompile your php 1. Build php if not already built (See the file INSTALL in your php source directory)
2. Unpack the archive and copy the ffmpeg extension directory into your the php sources extensions directory
tar -xjf ffmpeg-php.X.XX.tar.gz cp ffmpeg /path/to/php_sources/ext
3. cd into the ffmpeg extension directory
cd /path/to/php_sources/ext/ffmpeg
4. Run phpize (included in the php installation) to build configuration files
phpize (If you cant search for phpize, maybe you will need to install package like php-devel) 5. Configure and build
./configure && make
6. Install the shared extension
make install (you may need to become root depending on your installation)
If everything went as planned, ffmpeg-php is now installed as a shared library. You must explicitly load it in your scripts using dl(ffmpeg.so) or if you want it available to all scripts by default add extension=ffmpeg.so to your php.ini file which will tell php to load it when starting up. 2.BUILDING FFMPEG-PHP AS PART OF THE PHP BINARY 1. Unpack the archive and copy the ffmpeg extension directory into your the php sources extensions directory
tar -xjf ffmpeg-php.X.XX.tar.gz cp ffmpeg /path/to/php_sources/ext
2. Run autoconf to rebuild the php configure script and add the --with-ffmpeg option
cd /path/to/php_sources autoconf 2. configure php using...
./configure --with-ffmpeg=yes ...and build and install php.
Add as favourites (54) | Quote this article on your site | Views: 1062
Powered by AkoComment Tweaked Special Edition v.1.4.5 |