PHP exec not executing FFmpeg command -
i have used php's exec execute ffmpeg command not woking when open in browser. when run php file script in terminal works fine.and php safe mode off. please me solved. php code
<?php $output=exec("ffmpeg -f image2 -i /home/phedra/imgs/image/img%03d.png -r 12 -s 610x489 /home/phedra/imgs/video/out.avi", $out); echo $out; echo $output; ?>
try giving full path ffmpeg application located.
e.g.
/usr/bin/ffmpeg
so function might like:
$output=exec("/usr/bin/ffmpeg -f image2 -i /home/phedra/imgs/image/img%03d.png -r 12 -s 610x489 /home/phedra/imgs/video/out.avi", $out);
you must check location of "ffmpeg".
Comments
Post a Comment