11 Replies - 1424 Views - Last Post: 25 May 2015 - 08:51 AM

#1 supdog  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 32
  • Joined: 23-May 15

How to download ffmpeg and hook it up to php?

Posted 23 May 2015 - 05:00 PM

I am trying to download ffmpeg so that it can hook up with xampp and I can access ffmpeg using php. I have followed the directions from this site: http://ukphpdevelope...g-in-xampp.html to the key but my Apache server wont allow me to access ffmpeg. When I try to run it I get this error pop up 6 times:
php Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_ffmpeg.dll'
-The specific module could not be found



I have tried this multiple times and have had no success. I don't know if I might be extracting the files wrong but I just use 7-zip and click the "extract here" button. If you have any ideas as to why I cant get ffmpeg to run on my computer please explain what I might have done wrong and what I should do to fix it.

Thank you for your help!

Is This A Good Question/Topic? 0
  • +

Replies To: How to download ffmpeg and hook it up to php?

#2 astonecipher  Icon User is offline

  • Senior Systems Engineer
  • member icon

Reputation: 2489
  • View blog
  • Posts: 9,971
  • Joined: 03-December 12

Re: How to download ffmpeg and hook it up to php?

Posted 23 May 2015 - 05:08 PM

Did you add the extension to the ini file? Did you restart apache? did you add the files to the proper directory?

There are a lot of pieces here that are hard to ascertain. What does your phpinfo() page show?
Was This Post Helpful? 0
  • +
  • -

#3 no2pencil  Icon User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6627
  • View blog
  • Posts: 30,868
  • Joined: 10-May 07

Re: How to download ffmpeg and hook it up to php?

Posted 23 May 2015 - 05:47 PM

This isn't an issue with php code, moving to Web Servers & Hosting as it's related to Apache.
Was This Post Helpful? 0
  • +
  • -

#4 supdog  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 32
  • Joined: 23-May 15

Re: How to download ffmpeg and hook it up to php?

Posted 23 May 2015 - 05:52 PM

I think I have accomplished all of the directions you have given me. my phpinfo() only mentions ffmpeg in "Apache Environment" table under path, "Environment" table under path, and in "php variables" table under _SERVER["PATH"]. It never gets a full table for just ffmpeg I also noticed that gd2 is not installed but gd is. If this gives you any ideas as to what I have to do to accomplish downloading ffmpeg please share them here. Thank you for your help!

no2pencil do you have any specific ideas as to what I have to do to get ffmpeg to run?
Was This Post Helpful? 0
  • +
  • -

#5 no2pencil  Icon User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6627
  • View blog
  • Posts: 30,868
  • Joined: 10-May 07

Re: How to download ffmpeg and hook it up to php?

Posted 23 May 2015 - 06:17 PM

View Postsupdog, on 23 May 2015 - 08:00 PM, said:

php Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_ffmpeg.dll'
-The specific module could not be found


Does this file exist? I'd start there.
Was This Post Helpful? 0
  • +
  • -

#6 supdog  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 32
  • Joined: 23-May 15

Re: How to download ffmpeg and hook it up to php?

Posted 23 May 2015 - 06:28 PM

yes. php_ffmpeg.dll does exist.
Was This Post Helpful? 0
  • +
  • -

#7 supdog  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 32
  • Joined: 23-May 15

Re: How to download ffmpeg and hook it up to php?

Posted 24 May 2015 - 08:14 PM

Hello Everyone,

I am trying to download ffmpeg but cant seem to get it to work. I want to run ffmpeg on an xampp php file. I have followed the directions on websites like http://ukphpdevelope...g-in-xampp.html to the key. I have come upon this warning box when starting my Apache. This pop up box is then repeatedly popped up 3 times stops for a second then pops up 3 more times:

PHP Startup: Unable to load dynamic library 'C:\xampp\php\php_ffmpeg.dll'
-%1 is not a valid Win32 application.

I have also noticed that when I try to run php on my command prompt that this warning box pops up which then is followed by the last warning box pop up and this repeats several times:


C:\Windows\system32\avcodec-52.dll is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vender for support.


I was thinking that because ffmpeg is run threw the command prompt that one of my problems might be that my command prompt might need to be set up or fixed so that it can run ffmpeg and php. Also I have come upon a few sites that are suggesting that a .dll file fixer might be the key to my solutions. Do you think this could solve one of my problems and if so is their any SFC software that is free and you would suggest using in this case.

Any other ideas as to what I might need to do to download ffmpeg would also be very helpful and appreciated. It would be best if you could give me easy instructions on how to download ffmpeg so that I can understand them.

Thank you for your help!
Was This Post Helpful? 0
  • +
  • -

#8 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 13962
  • View blog
  • Posts: 55,727
  • Joined: 12-June 08

Re: How to download ffmpeg and hook it up to php?

Posted 24 May 2015 - 08:18 PM

Please do not create duplicate topics. Merging.
Was This Post Helpful? 0
  • +
  • -

#9 supdog  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 32
  • Joined: 23-May 15

Re: How to download ffmpeg and hook it up to php?

Posted 24 May 2015 - 08:33 PM

sorry guys,

I thought I posted my last entry as a topic. I must have been mistaken and am sorry about the inconvenience. I don't know how to cancel that last entry and post it as a new topic. If anyone would like to share how to take it down I would be glad to know. thanks and sorry!

supdog
Was This Post Helpful? 0
  • +
  • -

#10 no2pencil  Icon User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6627
  • View blog
  • Posts: 30,868
  • Joined: 10-May 07

Re: How to download ffmpeg and hook it up to php?

Posted 25 May 2015 - 08:42 AM

View Postno2pencil, on 23 May 2015 - 09:17 PM, said:

View Postsupdog, on 23 May 2015 - 08:00 PM, said:

php Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_ffmpeg.dll'
-The specific module could not be found


Does this file exist? I'd start there.



View Postsupdog, on 23 May 2015 - 09:28 PM, said:

yes. php_ffmpeg.dll does exist.


Does it exist in this file location?
Was This Post Helpful? 0
  • +
  • -

#11 supdog  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 32
  • Joined: 23-May 15

Re: How to download ffmpeg and hook it up to php?

Posted 25 May 2015 - 08:48 AM

yes that file exists in that file location.
Was This Post Helpful? 0
  • +
  • -

#12 no2pencil  Icon User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6627
  • View blog
  • Posts: 30,868
  • Joined: 10-May 07

Re: How to download ffmpeg and hook it up to php?

Posted 25 May 2015 - 08:51 AM

Which error message is current?

Quote

PHP Startup: Unable to load dynamic library 'C:\xampp\php\php_ffmpeg.dll'
-%1 is not a valid Win32 application.


Quote

php Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_ffmpeg.dll'
-The specific module could not be found


One says it can't find it, & the other (with a different file path) says it can't use it...
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1