PHP ffmeg - ffmpeg_animated_gif错误

时间:2012-01-22 21:49:17

标签: php ffmpeg

我有一个代码

$movie = new ffmpeg_movie($_SERVER["DOCUMENT_ROOT"].'/file.mp4'); 
$gif=new ffmpeg_animated_gif("gif_pre.gif",100 ,100 ,24); 

for ($frame = 150; $frame <= 200; $frame++) 
{
   $image = $movie->getFrame($frame);
   $gif->addFrame($image);
}

和错误:

Fatal error: Class 'ffmpeg_animated_gif' not found in {here were err line and path to file}

操作系统:Windows 7 | Denwer | FFMPEG:0.6.0-svn

的phpinfo:

mpeg-php version    0.6.0-svn 
ffmpeg-php built on     Sep 8 2010 12:13:47 
ffmpeg-php gd support   enabled 
ffmpeg libavcodec version   Lavc52.87.4 
ffmpeg libavformat version  Lavf52.78.3 
ffmpeg swscaler version     SwS0.11.0

1 个答案:

答案 0 :(得分:0)

ffmpeg_animated_gif已在版本0.6.0中删除, 0.5.3.1 是最后一个具有此功能的版本。