|
|
|
@ -417,11 +417,15 @@ class PreviewManager implements IPreview {
|
|
|
|
|
|
|
|
|
|
// Video requires avconv or ffmpeg
|
|
|
|
|
if (in_array(Preview\Movie::class, $this->getEnabledDefaultProvider())) {
|
|
|
|
|
$movieBinary = $this->binaryFinder->findBinaryPath('avconv');
|
|
|
|
|
$movieBinary = $this->config->getSystemValue('preview_ffmpeg_path', null);
|
|
|
|
|
if (!is_string($movieBinary)) {
|
|
|
|
|
$movieBinary = $this->binaryFinder->findBinaryPath('ffmpeg');
|
|
|
|
|
$movieBinary = $this->binaryFinder->findBinaryPath('avconv');
|
|
|
|
|
if (!is_string($movieBinary)) {
|
|
|
|
|
$movieBinary = $this->binaryFinder->findBinaryPath('ffmpeg');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (is_string($movieBinary)) {
|
|
|
|
|
$this->registerCoreProvider(Preview\Movie::class, '/video\/.*/', ["movieBinary" => $movieBinary]);
|
|
|
|
|
}
|
|
|
|
|