Urgent problem with ffmpeg-php & localhost

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'); 


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 ? :blush:

First thing I’d check are the directory and file permissions. The user apache is running under needs permission to access that file.

Hello Dan,

i checked and it’s normal ! ,

To my knowledge, the extent of FFMpeg’s ability to open SWF files only goes as far as opening embedded FLV videos.