aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGeorg Ehrke <georg@ownCloud.com>2013-05-28 12:09:46 +0200
committerGeorg Ehrke <georg@ownCloud.com>2013-05-28 12:09:46 +0200
commit08a022aaa48a6bae95ff75204a763a7c16a8253e (patch)
tree2de59ea61a47fa08320c52425d62be3b1b3b2b32 /lib
parent55b00fe819079d78224989eee91d5886233738ab (diff)
downloadnextcloud-server-08a022aaa48a6bae95ff75204a763a7c16a8253e.tar.gz
nextcloud-server-08a022aaa48a6bae95ff75204a763a7c16a8253e.zip
don't give ffmpeg wanted size, cause it doesn't care about aspect ratio
Diffstat (limited to 'lib')
-rw-r--r--lib/preview/movies.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/preview/movies.php b/lib/preview/movies.php
index 1e517b38182..d2aaf730d67 100644
--- a/lib/preview/movies.php
+++ b/lib/preview/movies.php
@@ -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);