FFMPEG running in Command Line but not PHP

前端 未结 6 1224
-上瘾入骨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 18:57

    exec("\"E:\\Documents and Settings\\x\\WINDOWS\\ffmpeg\" -i   ");
    

    Here's one of mine I've used in the past (granted I'm on a LAMP stack):

    $cmd = "/usr/bin/ffmpeg -i ".$in." -y -an -sameq -vframes 1 -s 100x56 -ss 3 -t 0.001 ".$out;
    

    You may also consider: http://ffmpeg-php.sourceforge.net/

提交回复
热议问题