Page 1 of 1

exec not always working

Posted: Sun Oct 22, 2006 3:43 pm
by GeXus
I'm using the following code

Code: Select all

exec('ffmpeg -i uploads/videos/original/video7.mpg -an -ss 3 -t 
00:00:01 -r 1 -y -vcodec mjpeg -f mjpeg uploads/videos/original/vids.jpg')
When I run the command from the command line (same user), it works just fine.. but when I run it using exec, it doesnt work properly..

Are there any other settings or anything that can be used with exec that may cause problems?

Posted: Sun Oct 22, 2006 6:29 pm
by s.dot
capture the output

Code: Select all

exec("command", $output);

echo '<pre>';
print_r($output);
echo '</pre>';
give you anything useful?