FFMPEG running in Command Line but not PHP

前端 未结 6 1249
-上瘾入骨i
-上瘾入骨i 2021-01-04 18:46

I am using ffmpeg build for windows to make video thumbnails . The command works well in command line but not from PHP exec method. am using PHP 5.2.11

Here is the c

6条回答
  •  醉酒成梦
    2021-01-04 19:08

    Maybe try this:

    $cmd = "\"$path\" -itsoffset -4 -i \"$in\" -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 \"$out\" 2>&1";
    

提交回复
热议问题