First you have to download all the required files which can be found here
FFMPEG
click to download
(download the zip,rar or 7z extension file)
MENCODER
click here to download
(download the zip,rar or 7z extension file)
CODECS FOR MPLAYER
click here to download
(download the zip,rar or 7z extension file)
PHP-FFMPEG
click here to download
(download the zip,rar or 7z extension file. this will not work on php 5.3)
extract all the files you have download in separate folders in a temp directory.
1) copy ffmpeg to c:\ffmpeg (you can choose any path)
2) copy mencoder to c:\mencoder (you can choose any path)
3) copy mplayer codecs in c:\mencoder\codecs (all the codecs should be in that codecs folder of mencoder)
4) copy all php-ffmpeg to windows\system32 and php\ext (extension folder)
5) open php.ini and add extension=php_ffmpeg.dll (to locate php.ini file loaded make a temp php file and put phpinfo();?> run that file in the webserver and look for php.ini file)
6) restart web server and thats it.
Related posts:




17 Responses
You really outdid yourself this post. Great work
Good morning, I found this blog once, then lost it. Took me forever to come back and find it. I wanted to see what comments you got. Great blog by the way.
I’ve just stumbled upon your site while searching for a tutorial on an related subject. Glad I did too. There’s a lot I like. Anyway, you’ve been bookmarked and I’ll be back soon.
I ended up on this place a little while back and I absolutely cannot get enough! Please keep writing!
Thanks for the absorbing read! Alright playtime is over and back to school work.
I’m trying to install MEncoder for use in dealing with video files in Windows XP. Trying to re-combine (mux?) an audio file and a video file that I took apart with ProjectX. I’m lost here – the blend of linux stuff, which looks vaguely like old DOS stuff ,and command-line stuff is beyond me. I’m trying to follow instructions but I am darned ignorant of these items.
Re Step 3, the MEncoder/codecs folder is empty. What should I do?
The CODECS FOR MPLAYER download is Windows essentials…a lot of stuff. Where does it go to?
Re step 4, there are 3 php download files….suggestions on which to use?
Also step 4, and 5 – I don’t have a php file in my C Drive. What to do?
Thanks!
Hello … i think mencoder download link is broken ..
Hi, Your post is good, please can you tel me how to install it in php 5.3.
thank you.
Hey, pretty nice work
But it doesn´t work correctly on my server, could help me? Would be great. Thanx.
This ist the warning:
—————————-
1 PHP Warning: PHP Startup: Unable to load dynamic library ‘C:\Program Files (x86)\Plesk\Additional\PleskPHP5\ext\php_ffmpeg.dll’ – Das angegebene Modul wurde nicht gefunden. in Unknown on line 0
Best greetings,
Martin
‘:~ I am very thankful to this topic because it really gives up to date information `*~
Great Article!
I have php version 5.3.2 ..so the above builds do not work.
Realy need to find php_ffmpeg extension for 5.3.2 version of php.
Help, anyone!?
thank you very much.
Can I ask to you how to build a home server creating for example 3 websites under this home server?
I try to configure with 1 site hosted on dyndns but I would know how to do with a IP static and 3 websites to register.
Thanks in advance
I am extremely enjoyed for this weblog. Its an informative topic. It aid me pretty a great deal to resolve some issues. Its chance are so great and functioning style so speedy. I feel it may perhaps be aid all of you. Thanks.
The final link to download MENCODER and FFMPEG is the same.
veryyyyyyyyyyyyyyyyyyyy veryyyyyyyyyyyyyyyyyyyyyyyyy veryyyyyyyyyyyyyyyyy goooooooooooooooood
tnnnnnnnnnnnnnxxxxxx
How can i convert video to flv ?
code php on win
helpppppppp me
Thanks for the article. One thing to mention, php-ffmpeg requires thread-safe php. I tried enabling php-ffmpeg on non-thread safe php, but failed.