I'm running Max OS 10.7, MAMP (PHP 5.3.6), with FFMPEG installed. I want to convert videos from one format to another. The following entered into Terminal works fine:
ffmpeg -i /path/video.wmv /path/video.flv
The file video.wmv is converted to video.flv. Great! Now, this PHP line DOESN'T work:
exec('ffmpeg -i /path/video.wmv /path/video.flv');
Why? I've spent many hours reading up on this and I still can't figure out what is wrong. I have read the other discussions on this topic and there is no clear answer. Any help would be greatly appreciated! (PHP safe_mode is off).
error.log, make sure the binary is in the path, or add2>&1to receive some details on your wrongdoings.