summaryrefslogtreecommitdiffstats
path: root/lib/private/preview
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-11-15 01:46:51 +0100
committerMorris Jobke <morris.jobke@gmail.com>2013-11-15 01:46:51 +0100
commit926b274200d929af2d290d19202a5236c32c18bd (patch)
tree3842a74fe0a86bfd7c1a19de6d2574655809b733 /lib/private/preview
parent6ef39931cb484286e7bb7bcd8373060d3a8a5ffc (diff)
downloadnextcloud-server-926b274200d929af2d290d19202a5236c32c18bd.tar.gz
nextcloud-server-926b274200d929af2d290d19202a5236c32c18bd.zip
Movie preview - use frame after 5 seconds
Diffstat (limited to 'lib/private/preview')
-rw-r--r--lib/private/preview/movies.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/preview/movies.php b/lib/private/preview/movies.php
index 28f130f7506..276209a876a 100644
--- a/lib/private/preview/movies.php
+++ b/lib/private/preview/movies.php
@@ -50,13 +50,13 @@ if (!\OC_Util::runningOnWindows()) {
file_put_contents($absPath, $firstmb);
if (self::$avconvBinary) {
- $cmd = self::$avconvBinary . ' -an -y -ss 1'.
+ $cmd = self::$avconvBinary . ' -an -y -ss 5'.
' -i ' . escapeshellarg($absPath) .
' -f mjpeg -vframes 1 ' . escapeshellarg($tmpPath) .
' > /dev/null 2>&1';
}
else {
- $cmd = self::$ffmpegBinary . ' -y -ss 1' .
+ $cmd = self::$ffmpegBinary . ' -y -ss 5' .
' -i ' . escapeshellarg($absPath) .
' -f mjpeg -vframes 1' .
' -s ' . escapeshellarg($maxX) . 'x' . escapeshellarg($maxY) .