Install FFMPEG

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chanchelkumar
    New Member
    • Feb 2007
    • 1

    Install FFMPEG

    Basically what I want to do is create a site similar to zamzar.com, where I can convert videos online. I understand that using FFMPEG is the best way to do this.

    Thing is, I am having problems installing it. I've been been to numerous tutorials which don't work and they all say to do this

    Copy avcodec.dll to system32
    Copy avformat.dll to system32
    Copy php_ffmpeg.dll to PHP/ext

    Write extension=php_f fmpeg.dll to php.ini

    I have done that and it still doesn't work.

    I am using php5, can you please help me?
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Have you also done this
    If you've the installed ffmpeg-php extension as a shared library but haven't set it to auto-load in your php.ini file, you'll need to use the PHP dl() function to make ffmpeg-php available to your scripts. Add the following PHP code to the beginning of scripts you want to call ffmpeg-php methods in.
    Code:
    <?php
    $extension = "ffmpeg";
    $extension_soname = $extension . "." . PHP_SHLIB_SUFFIX;
    $extension_fullname = PHP_EXTENSION_DIR . "/" . $extension_soname;
    
    // load extension
    if(!extension_loaded($extension)) {
        dl($extension_soname) or die("Can't load extension $extension_fullname\n");
    }
    ?>
    Ronald

    Comment

    Working...