我已从此link下载ffmpeg,然后解压缩到我的localhost路径:
C:\瓦帕\ WWW \ ffmpeg的-2.5.3 \的ffmpeg-2.5.3
然后在上面的路径中创建一个文件:test.php并编写以下代码:
// where ffmpeg is located
$ffmpeg = 'http://localhost/ffmpeg-2.5.3/ffmpeg-2.5.3';
/*//video dir
$video = 'ww.flv';
//where to save the image
$image = 'image.jpg';
//time to take screenshot at
$interval = 5;
//screenshot size
$size = '640x480'; */
//ffmpeg command
$cmd = "$ffmpeg -i ww.flv -ss 00:00:14 -f image2 -vframes 1 out.png";
exec($cmd);
为什么我的缩略图没有创建? 请帮我! 非常感谢...