Here is a code for you to get image from a video
Most users that hosted with me and only 1 compliant about it
Here mate test this out on your hosting ;)
As i said start learning to code son other coding is crap lol
Thank me Or Else !!
You will be frozen!
Most users that hosted with me and only 1 compliant about it
Here mate test this out on your hosting ;)
As i said start learning to code son other coding is crap lol
PHP Code:
<?php
$video = 'movie.3gp';
$filename = "$video.jpg";
if (file_exists($filename)) {
make("$video");
}else{
$fh = fopen("$video.jpg", "w");
if($fh==false) die("unable to create file");
fputs ($fh, 1);
fclose ($fh);
make("$video");
}
function make($video){
// where ffmpeg is located
$ffmpeg = '/usr/local/bin/ffmpeg';
//where to save the image
$image = "$video.jpg";
//time to take screenshot at
$interval = 5;
//screenshot size
$size = '640x480';
//ffmpeg command
$cmd = "$ffmpeg -i $video -deinterlace -an -ss $interval -f mjpeg -t 1 -r 1 -y -s $size $image 2>&1";
$return = `$cmd`;
echo $return;
}
?>
You will be frozen!
Comment