| How to install ffmpeg on windows |
|
|
|
| Written by Waheed Akhtar |
| Wednesday, 07 January 2009 19:10 |
|
Let me introduce you to ffmpeg first. ffmpeg is widely used for media format conversions or encoding. You may have seen on Youtube. Whatever media format you upload, it is converted into streaming flash files.(.flv). You can get more information about ffmpeg from http://ffmpeg.mplayerhq.hu/ ffmeg installation on Linux may be easy because primarily it is made for Linux not Windows. However some good experts have made it for windows also. As I worked on ffmpeg, one thing is confirmed that you must have dedicated Windows server to install ffmpeg. There are a lot of changes in the OS and PHP settings. Right now I will guide you to install ffmpeg on Windows XP. If you want to install it on Windows 2003 server then you can contact me. Ok, please follow these steps to install ffmpeg on your Windows XP machine.
1- You must have PHP version 5.2.6 or above installed 2- Graphics library GD2 must also be installed. 3- Now download ffmpeg.exe file from this URL http://ffmpeg.arrozcru.org/builds/ 4- Put this file on a base or short location like c:/ffmpeg/ffmpeg.exe this path will be used in DOS commands. So keep it easy and simple. 5- In fact this is the only file required for encoding files. However I am giving you whole application development guide like creating frame images and flash movie player etc. 6- If you switch to DOS simply give a source and destination file like 7- Now come to another thing. It is called ffmpeg-php extension. This extension is made to manipulate encoded files. You can create frames and logo for your output file. 8- You can download ffmpeg-php extension and API documentation from this URL a) http://sergey89.ru/files/ffmpeg-php/ffmpeg-php-win32-all.zip b)http://groups.google.com/group/ffmpeg-php-windows/browse_thread/thread/0c46df97c0898f63?pli=1 c)http://sourceforge.net/projects/ffmpeg-php 9- Copy all fmpeg-php dll files into PHP "ext" (extensions) folder or System32, 10- Make this entry in php.ini 11- Now restart your PC. It’s good, because sometimes IIS restart doesn’t show effect. 12- Take phpinfo() to check that extension is installed successfully. I hope it will be there. J 13- As ffmpeg.exe will be executed from DOS within PHP. There is a function in PHP called exec() for that. However it will not work straight away. Restart your pc in safe mode with Administrator account. Because mostly Windows XP won’t let set security permissions in normal mode. Here is a very good example of setting permissions. http://www.somacon.com/p255.php 14- Ok, everything is done, How should we test that it is working? If sample code is printing all the information then your ffmpeg installation is successful and you can carry on with development of your application development. When working on Home or PC, you might face some issues like slow encoding, It is because ffmpeg encoding requires more resources. You must experiment with small video/audio clips. However on Web servers you can try large files also. If you are looking for ffmpeg hosting with everything ready then you can try Cirtex Hosting |
| Last Updated on Monday, 30 January 2012 06:57 |




Thank You
Now builds for php 5.3 is available in this link http://sergey89.ru/files/ffmpeg-php/ . This may be usefull to you i think. Please read that readme inside that zip file it has clear explanation
i have change my php version from 5.3.0 to 5.2.6
There is one mistake in the article .. at step 9
->Copy all fmpeg-php dll files into PHP "ext" (extensions) folder or System32, Where the extensions are located
You also have to copy .dll files to System 32. folder
too. Otherwise extension will not work..
finally ffmpeg has show up on my php info,
thank you so much for your guide,so happy right now after a lot of trying and trying...
if you guys,still get frustrated...don't give up
you'll make it
this;
[PHP_ffmpeg]
extension=php_ffmpeg.dll
on my php.ini but,i still can't find ffmpeg configuration at php info
i've download this link
http://sourceforge.net/projects/ffmpeg-php, but i still don't know what's this for,
so what i miss with my installation?
p.s: i've send an email too
I have followed all instructions and restarted all services (WAMP) but I get error messages. "PHP Startup: ffmpeg: Unable to initialize module... "
I honestly have no idea why,I copied all ddl as instructed.
I will be grateful for any feedback at all, and will always be glad to help where I can with other problems..
Andrew
Admin Reply.
ffmpeg-php library is currently for the version upto PHP 5.2.6, while Wamp is using PHP 5.3.x.
this is causing problems. So install previous version Wamp and Xampp with PHP 5.2.6.
I will try to look any solution for current versions.
Admin Reply,
Well, May be it is because of User Access Control. Search "how to turn off User Access Control in Windows 7".
Thaks a lot for the guide !
I am running php5.3.0 on Windows Vista and MS IIS 7.0 (I do not run my php on Apache).
I copied the php_ffmpeg.dll in the ext folder and added the entery below to the php.ini:
[PHP_ffmpeg]
extension=php_ffmpeg.dll
Could you please help me get FFMPEG extension installed properly?
Thanks a lot!
-Saman
Admin Reply:
Saman, Please copy the dlls to you System folders as well. i.e /system32
your step by step for ffmpeg is very useful.
I got a error after adding all dll files to ext folder in wampserver.
The error is unable load dynamic library.
Plz guide me to overcome the error.
Admin Reply,
Copy same dll files in Windows System folder.
Can you please guide me in installing ffmpeg in windows 2003 virtual private server
(VPS)
Thanks in advance,
Maheswaran S
http://sourceforge.net/projects/ffmpeg-php
but in that i did not find any files named php_ffmpeg.dll.So can u give me the exect link where i can download the php_ffmpeg exes and dlls
Admin Reply:
Please download it from this link http://sergey89.ru/files/ffmpeg-php/ffmpeg-php-win32-all.zip