php exec() isn't running ffmpeg?
Posted by: gharman
Posted on: 2006-08-20 09:36:00
I'm trying to execute ffmpeg from within a php script using exec(). I've got the following ffmpeg command, which does work from ssh: /home/magaresa/ffmpeg/bin/ffmpeg -i /home/magaresa/magaresa.dreamhosters.com/web/uploads/1/06-8-20-Test.avi -vcodec png -vframes 1 -an -f rawvideo -s 320x240 /home/magaresa/magaresa.dreamhosters.com/web/uploads/1/06-8-20-Test.png
However, when I place this command as a string inside a php script as exec($command, $output); it doesn't seem to execute; no errors in the logs or in $output. As a sanity check, I passed in ls as the command instead of the ffmpeg call, and it worked fine. PHP is running as the same user that can execute this command from the shell.
I'm using PHP 5.1.4 (my build, not DreamHost's), and phpinfo() is available at: http://magaresa.dreamhosters.com/test.php
Any thoughts?