Recently i created One site.
In this site iam using images for videos with ffmpeg Support.
But That images preview showing Only in HighEnd Mobiles Like N73, Opera, UcWeb and PC.
Preview Not showing normal mobile browsers. Thats why i try to modify script. But Not success.
Just i need one help. Storing that ffmpeg image in one folder as filename.jpg
iam giving that code also. please can anyone modify this.
In this site iam using images for videos with ffmpeg Support.
But That images preview showing Only in HighEnd Mobiles Like N73, Opera, UcWeb and PC.
Preview Not showing normal mobile browsers. Thats why i try to modify script. But Not success.
Just i need one help. Storing that ffmpeg image in one folder as filename.jpg
iam giving that code also. please can anyone modify this.
PHP Code:
<?php
$file = $_GET['file'];
$frame = 10;
$mov = new ffmpeg_movie($file);
$w = $mov->GetFrameWidth();
$h = $mov->GetFrameHeight();
$ff_frame = $mov->getFrame($frame);
if ($ff_frame) {
$gd_image = $ff_frame->toGDImage();
if ($gd_image) {
$des_img = imagecreatetruecolor(40, 40);
$s_img = $gd_image;
imagecopyresampled($des_img, $s_img, 0, 0, 0, 0, 40, 40, $w, $h);
imagegif($des_img);
imagedestroy($des_img);
imagedestroy($s_img);
}
}
?>
Comment