fixed multiple of two issue

git-svn-id: http://yolanda.mister-muffin.de/svn@113 7eef14d0-6ed0-489d-bf55-20463b2d70db
main
josch 17 years ago
parent 9c1935a43b
commit 7409586d5e

@ -141,11 +141,11 @@ while(1)
#the width/height calculation could of course be much shorter but less readable then
$tnwidth = 160;
$tnheight = int(160*($height/$width) + .5);
$tnheight = int(160*($height/$width)/2 + .5)*2;
if($tnheight > 120)
{
$tnheight = 120;
$tnwidth = int(120*($width/$height) + .5);
$tnwidth = int(120*($width/$height)/2 + .5)*2;
}
system "ffmpeg -i $gnutube_root/tmp/$id -vcodec mjpeg -vframes 1 -an -f rawvideo -ss $thumbnailsec -s ".$tnwidth."x$tnheight $gnutube_root/video-stills/$id";

Loading…
Cancel
Save