Просмотр поста

.
hooligan

zumak, файл index.php делает первый скрин...

if($res['type']==7){
if(file_exists(('screen/' . $res['name'] . '.gif'))){
echo '<img src="screen/'.$res['name'].'.gif" width="50" height="50"/><br/>';
}else{
$file = 'files/'.$res['name'];
if (file_exists($file)) 
{ 
$mov = new ffmpeg_movie($file); 
}else{ 
echo 'невозможно найти файл'; 
} 
$frame = 50; 
$w = $mov->GetFrameWidth(); 
$h = $mov->GetFrameHeight(); 
$ff_frame = $mov->getFrame($frame); 
if ($ff_frame) 
{ 
$gd_image = $ff_frame->toGDImage(); 
if ($gd_image) 
{ 
echo '<img src="screen/'.$res['name'].'.gif" width="50" height="50"/><br/>';
imagegif($gd_image, 'screen/'.$res['name'].'.gif'); 
}else{ 
echo 'невозможно преобразовать в GD'; 
} 
}else{ 
echo 'невозможно извлечь кадр'; 
}
}
}