hello ,
i installed ffmpeg-php in my localhost with php4.x (xammp software) , and it’s successfully installed and i see ffpmeg in phpinfo configurations page …
now i tried php code to get thumbinil image of swf file … i tried this code :
$mov = new ffmpeg_movie('0706171149164.swf');
$ff_frame = $mov->getFrame(30);
if ($ff_frame) {
$gd_image = $ff_frame->toGDImage();
if ($gd_image) {
imagepng($gd_image, 'thumbnails/mythumbnail.png');
imagedestroy($gd_image);
}
}
but i got this error messages :
Warning: Can't open movie file 0706171149164.swf in C:\\xampp\\htdocs\\a.php on line 17
Fatal error: Call to a member function on a non-object in C:\\xampp\\htdocs\\a.php on line 19
with noting that the swf file is already in the same path with a.php file ، and on the line 19 is : $ff_frame = $mov->getFrame(30);
so what’s the problem , and how to solve it ?