PHP exec not executing command

前端 未结 4 1352
故里飘歌
故里飘歌 2021-01-06 09:21

I have used php\'s exec to execute FFmpeg command but its not woking when I open it in browser. But when i run this php file script in terminal it works fine.And my php safe

4条回答
  •  旧巷少年郎
    2021-01-06 10:17

    Note that if you are on windows you must use COMMAS. I.E:

    $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);
    

提交回复
热议问题