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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -