Page 1 of 1

installing ffmpeg to use with php

Posted: Mon Jul 07, 2008 4:34 am
by etnastyles
hello ,

i have been trying to get ffmpeg to work through a php script - i have found loads of scripts on the net about ffmpeg but nothing that explains how to install ffmpeg. At present i have apache mysql and php all runnign on a windows xp system. I have not been able to find any php_ffmpeg.dll all i can find i a windows .exe that runs through the command line. could someone explain how you go about adding ffmpeg into your php modules and maybe a small script to go with it.

windows: http://www.youtube.com/watch?v=WrXYofs1IRo

regards

etnastyles

Re: installing ffmpeg to use with php

Posted: Mon Sep 08, 2008 7:48 am
by adroit
etnastyles wrote:hello ,

i have been trying to get ffmpeg to work through a php script - i have found loads of scripts on the net about ffmpeg but nothing that explains how to install ffmpeg. At present i have apache mysql and php all runnign on a windows xp system. I have not been able to find any php_ffmpeg.dll all i can find i a windows .exe that runs through the command line. could someone explain how you go about adding ffmpeg into your php modules and maybe a small script to go with it.

windows: http://www.youtube.com/watch?v=WrXYofs1IRo

regards

etnastyles

Hi etnastyles,

Use like this for windows server.

$ffmpegcmd = "ffmpeg -i test.mov test.flv";
shell_exec($ffmpegcmd);

The above script will conver text.mov file to text.flv file. You must have ffmpeg.exe file in the same folder alse respective .dll files.


Regards,
Adroit
http://www.adroitsoftware.org