Here i am giving the details about to install FFMPEG in windows. But if any dll Compiling problem will come there means kindly check the sources with your windows and web server versions
Ok, Now we can see the steps to install
step 1:
Download FFMPEG from the below URL
http://www.mediafire.com/?7j897g07hgm03ft
step 2:
Extract The downloaded file on your local drive C, like
C:/ffmpeg/ffmpeg.exe
step 3:
Now just open your DOS Commend Prompt and then check with below code
"c:/ffmpeg/ffmpeg.exe -i d:/path/input_file.mpg d:/path/output_file.flv"
If that above working fine means you have installed ffmpeg successfully.
step 4:
Download ffmpeg-php system32 files in below url
http://www.mediafire.com/?39x88wsh54cufa1
step 5:
Extract the folder and then copy all dll files to "c:/windows/system32/".
step 6:
Download ffmpeg-php ini config file from this below url
http://www.mediafire.com/?bu1e1c3eccbc9bc
step 7:
Find your php extension_dir in phpinfo() and then extract the above downloaded folder. Now copy the "php_ffmpeg.dll" to that "php/ext/" folder.
step 8:
Then open your php.ini file which is the current running one. This you can check using phpinfo() on info.php. Then add below line in "Dynamic Extension" section with other dll configurations
extension=php_ffmpeg.dll
step 9:
Now just restart your webserver and then check info.php file if there is enabled the "ffmpeg-php". If it is enabled means you can work with that. Otherwise check if your are getting any compiled error means try some other dll library.
step 10:
If you have installed php successfully means you can execute the below script in your test.php file.
exec('c:/ffmpeg/ffmpeg.exe -i d:/path/input_file.jpg d:/path/output_file.png',$output);
If you are getting the output means your ffmpeg started to work.
No comments:
Post a Comment