i have this code
function make($video,$ige){
$ffmpeg = '/usr/local/bin/ffmpeg';
$image = "$ige";
$interval = 5;
$size = "100x50";
$cmd = "$ffmpeg -i $video -deinterlace -an -ss $interval -f mjpeg -t 1 -r 1 -y -s $size $image 2>&1";
$return = `$cmd`;
}
its working but it only shows 1 image . I want 2 or more image to preview. .and how to detect its video length. .
function make($video,$ige){
$ffmpeg = '/usr/local/bin/ffmpeg';
$image = "$ige";
$interval = 5;
$size = "100x50";
$cmd = "$ffmpeg -i $video -deinterlace -an -ss $interval -f mjpeg -t 1 -r 1 -y -s $size $image 2>&1";
$return = `$cmd`;
}
its working but it only shows 1 image . I want 2 or more image to preview. .and how to detect its video length. .