don't give ffmpeg wanted size, cause it doesn't care about aspect ratio

This commit is contained in:
Georg Ehrke 2013-05-28 12:09:46 +02:00
parent 55b00fe819
commit 08a022aaa4
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,8 @@ if(!is_null(shell_exec('ffmpeg -version'))){
$abspath = $fileview->toTmpFile($path);
$tmppath = OC_Helper::tmpFile();
$cmd = 'ffmpeg -y -i ' . escapeshellarg($abspath) . ' -f mjpeg -vframes 1 -ss 1 -s ' . escapeshellarg($maxX) . 'x' . escapeshellarg($maxY) . ' ' . $tmppath;
//$cmd = 'ffmpeg -y -i ' . escapeshellarg($abspath) . ' -f mjpeg -vframes 1 -ss 1 -s ' . escapeshellarg($maxX) . 'x' . escapeshellarg($maxY) . ' ' . $tmppath;
$cmd = 'ffmpeg -y -i ' . escapeshellarg($abspath) . ' -f mjpeg -vframes 1 -ss 1 ' . $tmppath;
shell_exec($cmd);
unlink($abspath);