FFMPEG-PHP INSTALLATION Print E-mail
Written by Administrator   
Saturday, 16 December 2006

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

Be first to comment this article
RSS comments

Write Comment
  • Please keep the topic of messages relevant to the subject of the article.
  • Personal verbal attacks will be deleted.
  • Please don't use comments to plug your web site. Such material will be removed.
  • Just ensure to *Refresh* your browser for a new security code to be displayed prior to clicking on the 'Send' button.
  • Keep in mind that the above process only applies if you simply entered the wrong security code.
Name:
E-mail
Homepage
Title:
BBCode:Web AddressEmail AddressLoad Image from WebBold TextItalic TextUnderlined TextQuoteCodeOpen ListList ItemClose List
Comment:



Code:* Code
I wish to be contacted by email regarding additional comments

Powered by AkoComment Tweaked Special Edition v.1.4.5

Last Updated ( Saturday, 16 December 2006 )
 
< Prev   Next >
Main Menu
Home
Our Services
Contact Us
Search
News Feeds
Our offers
Linux Tutorials
Affiliate program
Links
CarTube.co.cc
PetTube.co.cc
Slick RSS
GetAFreelancer.com New Projects
Latest projects published at GetAFreelancer.com
ScriptLance Projects
The newest projects posted on ScriptLance.
Google AdSense
Last comments
Howto install memcached, setup...
Thanks! :)
08/05/08 09:38 More...
By Jupp

Howto install memcached, setup...
wery good site
26/01/08 12:18 More...
By u26stycznia2008

Script installation Services
Comment 13 2008
Helo1l, great site!
13/10/07 10:10 More...
By John 200809

Visitors Counter
73770 Visitors
Joomla Template by Joomlashack
components joomla modules Joomla Templates Joomla tutorials