installing ffmpeg to use with php

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
etnastyles
Forum Newbie
Posts: 3
Joined: Mon Jul 07, 2008 4:26 am

installing ffmpeg to use with php

Post 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
adroit
Forum Commoner
Posts: 37
Joined: Fri Aug 08, 2008 1:25 am
Location: India
Contact:

Re: installing ffmpeg to use with php

Post 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
Post Reply