]> source.dussan.org Git - nextcloud-server.git/commitdiff
Working on a chunked video can result in a broken frame index the option -vsync 1...
authorThomas Müller <thomas.mueller@tmit.eu>
Fri, 22 Nov 2013 11:20:06 +0000 (12:20 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Fri, 22 Nov 2013 11:20:06 +0000 (12:20 +0100)
lib/private/preview/movies.php

index 276209a876a68c4b2582edc49e2903fd154c5762..3cbbaa9d3bec5f11802802797ab3f4e9418c5bfc 100644 (file)
@@ -52,7 +52,7 @@ if (!\OC_Util::runningOnWindows()) {
                                if (self::$avconvBinary) {
                                        $cmd = self::$avconvBinary . ' -an -y -ss 5'.
                                                ' -i ' . escapeshellarg($absPath) .
-                                               ' -f mjpeg -vframes 1 ' . escapeshellarg($tmpPath) .
+                                               ' -f mjpeg -vframes 1 -vsync 1 ' . escapeshellarg($tmpPath) .
                                                ' > /dev/null 2>&1';
                                }
                                else {