Вход Регистрация
Файл: ffmpeg.php
Строк: 21
<?php
require'includes.php';


$W intval($_GET['W']);
$H intval($_GET['H']);
$video intval($_GET['video']);

$file_info mysql_fetch_row(query('SELECT TRIM(`adres`) FROM `video` WHERE `id` = '.$video.' LIMIT 1'));
$adres "files/video/".$file_info[0]."";
$pic urldecode(htmlspecialchars($adres));

if(
substr($pic,0,1) != '.'){

$mov = new ffmpeg_movie($picfalse);
$wn $mov->GetFrameWidth();
$hn $mov->GetFrameHeight();

$frame $mov->getFrame(3);

$gd $frame->toGDImage();

if(!
$W and !$H)
{
$size explode('*',80);
$W round(intval($size[0])); // ширина картинки
$H round(intval($size[1])); // высота картинки
}
$new imageCreateTrueColor($W$H);
imageCopyResized($new$gd0000$W$H$wn$hn);
imageGif($new,null,100);

}
?>
Онлайн: 0
Реклама