]> source.dussan.org Git - nextcloud-server.git/commitdiff
don't give ffmpeg wanted size, cause it doesn't care about aspect ratio
authorGeorg Ehrke <georg@ownCloud.com>
Tue, 28 May 2013 10:09:46 +0000 (12:09 +0200)
committerGeorg Ehrke <georg@ownCloud.com>
Tue, 28 May 2013 10:09:46 +0000 (12:09 +0200)
lib/preview/movies.php

index 1e517b381824ab4e5f41d23b34d1590bf802c280..d2aaf730d6713943ff9ca6c5bfc8dd81f263a8d9 100644 (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);