Skip to content
Snippets Groups Projects
Commit c22019de authored by Thomas Müller's avatar Thomas Müller
Browse files

Working on a chunked video can result in a broken frame index the option -vsync 1 can heal that

parent 926b2742
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ if (!\OC_Util::runningOnWindows()) { ...@@ -52,7 +52,7 @@ if (!\OC_Util::runningOnWindows()) {
if (self::$avconvBinary) { if (self::$avconvBinary) {
$cmd = self::$avconvBinary . ' -an -y -ss 5'. $cmd = self::$avconvBinary . ' -an -y -ss 5'.
' -i ' . escapeshellarg($absPath) . ' -i ' . escapeshellarg($absPath) .
' -f mjpeg -vframes 1 ' . escapeshellarg($tmpPath) . ' -f mjpeg -vframes 1 -vsync 1 ' . escapeshellarg($tmpPath) .
' > /dev/null 2>&1'; ' > /dev/null 2>&1';
} }
else { else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment