Skip to content

Commit

Permalink
[VD:abstract] fix #1703 problem of make the video thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Oct 15, 2016
1 parent 07a620f commit 6b7eac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/elFinderVolumeDriver.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2777,7 +2777,7 @@ public function ffmpegToImg($file, $stat) {
} else {
$ss = $this->options['tmbVideoConvSec'];
}
$cmd = sprintf('ffmpeg -ss 00:00:%.3f -vframes 1 -i %s -f image2 %s', $ss, escapeshellarg($tmp), escapeshellarg($file));
$cmd = sprintf('ffmpeg -i %s -ss 00:00:%.3f -vframes 1 -f image2 %s', escapeshellarg($tmp), $ss, escapeshellarg($file));
$r = $this->procExec($cmd);
unlink($tmp);
return ($r === 0);
Expand Down

0 comments on commit 6b7eac3

Please sign in to comment.