473,403 Members | 2,366 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

How to install ffmpeg PHP extension on Windows?

sumaiya
43
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_20050618_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.
Nov 6 '07 #1
6 48714
Hi,

You check the php\ext paste
libavcodec.dll
And in php ini file add
extension=php_ffmpeg.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..
Nov 13 '07 #2
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.
Sep 2 '08 #3
pbmods
5,821 Expert 4TB
Heya, Lepak.

You need to add the appropriate entry to your php.ini file. See two posts ago.
Sep 2 '08 #4
pranoy
2
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_20050618_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_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");
}


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

Warning: dl() [function.dl]: Not supported in multithreaded Web servers - use extension=ffmpeg.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
Feb 16 '10 #5
look for the same php version as this php_ffmpeg_20050618

php version 20050618 = php_ffmpeg_20050618 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
Aug 27 '11 #6
http://groups.google.com/group/ffmpe...a448a135141d2d

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
Aug 28 '11 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Olav | last post by:
Hi all, I can not install CF 2.0 SP 1 on an Symbol PPT8800 running WinCE 4.2. The Install-Log say's cgacutil.exe failed with exit-code 80000004 and I get a messagebox indicating a support-Info...
0
Nert
by: Nert | last post by:
hi.., According to an article i've read on the intermet, FFMPEG is the only solution for the convertion of media files to flv on fly. I spent most of my time searching on the Internet about how to...
6
by: jcor | last post by:
Hi, i installed ffmpeg but seems to be a old version. With the command "ffmpeg -v" I get the this output: I tried to upgrade it with: but didn't work. Can someone tell me out to upgrade...
2
by: jcor | last post by:
Hi, I'm trying to use the module FFmpeg::Command to convert some files from .mpg to .wmv when I use ffmpeg in command line the command is just like this: "ffmpeg -i input.mpg output.wmv" When I...
1
by: chanchelkumar | last post by:
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...
6
by: globalrev | last post by:
type "python setup.py install" that is used in most "addons" for python. well using windows vista, where the h*** am i supposed to type this? if it is not doable in windows, what do i have...
12
by: dkurth | last post by:
Hi, I'm running PHP 5.2.3 on Windows 2000 Server with IIS 5. I'm trying to get cUrl working, so in my php.ini file, I have this line: extension_dir ="F:\PHP\ext" And later, I have: ...
0
by: =?Utf-8?B?U2hhbQ==?= | last post by:
Hai all, In my application i am using the code below i mentioned. But it couldn't converted into flv format and its not saved into specified path .Can any one help me to do this using c#. ...
1
by: creative1 | last post by:
hi, I have a video file in .wmv format and size is 263MB. I want to convert it in flash format to display it on my site. I want ti use ffmpeg for this purpose. I got link to binaries for windows....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.