How to install ffmpeg PHP extension on Windows?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sumaiya
    New Member
    • Apr 2007
    • 43

    How to install ffmpeg PHP extension on Windows?

    Iam totally confused about the working ffmpeg.I tried many times to use that dll in my php project.If u can please help me.

    First I extaracted the dll from http://sourceforge.net/project/downl...e_mirror=jaist .

    I got the latest ffmpeg dll.Iam using PHP5 .My operating system is windows.Is that ffmpeg dll works only with linux.

    after unzipping (ffmpeg_new) i found these files :

    In common folder

    1) avcodec.dll
    2) avformat.dll

    In php5 folder

    1) php_ffmpeg_2005 0618_nogif.dll
    6) php_ffmpeg.dll


    i followed and copied the avcodec.dll and
    avformat.dll files to system32 folder.and i copied ffmpeg file into php5\ext folder.Then i added tha extension php_ffmpeg in ini file extension.And restarted Apche server.

    But when iam using that dll it gives an error by sying that ffmpeg dll was not loaded.

    Please clear me i dont understand this ffmpeg how to work it out.What is the next step...

    Please let me know where i'm doing wrong to work it out.
    Last edited by Atli; Nov 6 '07, 10:57 PM. Reason: Changed thread title to better describe it's contents.
  • vskarthik
    New Member
    • Oct 2007
    • 5

    #2
    Hi,

    You check the php\ext paste
    libavcodec.dll
    And in php ini file add
    extension=php_f fmpeg.dll
    Ensure that no semicolon(;) in front of extension.
    and Add dll file in system32.

    Its simple to work , if u install FFMPEG.

    i think this info is useful 4u..

    bye..

    Comment

    • LepaKCrewZ
      New Member
      • Sep 2008
      • 1

      #3
      Hi, I've a big headache installing ffmpeg. I've tried to install it to be used with apache 2.2 and php 5.2.5 on windows xp. I've put the php-ffmpeg.dll and pThreadGC2.dll in php/ext folder. I've copied avxxx.dll to windows/system32 folder as well. The problem is, it is not working, Can some one help me? Thanks.

      Comment

      • pbmods
        Recognized Expert Expert
        • Apr 2007
        • 5821

        #4
        Heya, Lepak.

        You need to add the appropriate entry to your php.ini file. See two posts ago.

        Comment

        • pranoy
          New Member
          • Feb 2010
          • 2

          #5
          Facing problem installing FFMPEG on Windows.

          HI,

          I am also facing this problem. I have XAMPP runing on Windows system and i have php 5.0 installed and GD library too.

          I have got the ffmpeg_new.rar from a weblink (http://sourceforge.net/project/downl...e_mirror=jaist ) got from this thread. And i have also the same content in that folder.

          In common folder

          1) avcodec.dll
          2) avformat.dll

          In php5 folder

          1) php_ffmpeg_2005 0618_nogif.dll
          6) php_ffmpeg.dll

          i followed and copied the avcodec.dll and
          avformat.dll files to system32 folder.and i copied ffmpeg file into php\ext folder.Then i added tha extension = php_ffmpeg in php.ini file extension. And restarted XAMPP services.

          I also tried keeping this php code in a file under this folder : ../xampp/htdocs/myprojectdir/ffmpeg/test.php

          $extension = "ffmpeg";
          $extension_sona me = $extension . "." . PHP_SHLIB_SUFFI X;
          $extension_full name = PHP_EXTENSION_D IR . "/" . $extension_sona me;

          # // load extension
          if(!extension_l oaded($extensio n)) {
          dl($extension_s oname) or die("Can't load extension $extension_full name\n");
          }


          When i run this page from the Browser i got this warning:

          Warning: dl() [function.dl]: Not supported in multithreaded Web servers - use extension=ffmpe g.dll in your php.ini in D:\xampp\htdocs \myband\ffmpeg\ ffmpeg.php on line 9
          Can't load extension C:\php5/ffmpeg.dll

          Any help/suggestion is greatly appreciated.

          Cheers,
          pranoy

          Comment

          • cabalsdemon
            New Member
            • Aug 2011
            • 2

            #6
            look for the same php version as this php_ffmpeg_2005 0618

            php version 20050618 = php_ffmpeg_2005 0618 it should be php 4.4
            and you should be good

            its easier with linux cause you can use the php ffmpeg source and build it

            Comment

            • cabalsdemon
              New Member
              • Aug 2011
              • 2

              #7


              with xamp version 1.6.5

              download php_ffmpeg all
              follow directions in this tut should work
              also grab a ffmpeg for windows and place em in a folder but tell php where they are when you exec() it

              Comment

              Working...