How to a create thumb image while uploading a video, am using the following code
if ((!empty($vdo))) {
$ext1 = explode('.', $_FILES['tut_video']['name']);
$vname = "T_" . $ext1['0'] . '.' . $ext1['1'];
$vdo_name1 = "../images/tut_vid/" . basename($vname);
move_uploaded_file($_FILES['tut_video']['tmp_name'], $vdo_name1);
$vdo_name1c = "../images/tut_vid/" . basename($vname);
$vdopath_old1 = "../" . $vdo_name1;
}
please help..
You need some tool like ffmpeg for creating thumb images from a video, use :
ffmpeg -itsoffset -4 -i test.avi -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320×240
( http://blog.prashanthellina.com/2008/03/29/creating-video-thumbnails-using-ffmpeg/ )