fix(video-clips): update condition to check if ffmpeg is installed

fixes #163
This commit is contained in:
Yassine Doghri 2022-03-04 15:40:38 +00:00
parent 4716a4a5b9
commit b57f0b6eb6
1 changed files with 2 additions and 2 deletions

View File

@ -119,9 +119,9 @@ class VideoClipsController extends BaseController
]); ]);
// First, check that requirements to create a video clip are met // First, check that requirements to create a video clip are met
$ffmpeg = trim(shell_exec('type -P ffmpeg')); $ffmpeg = shell_exec('which ffmpeg');
$checks = [ $checks = [
'ffmpeg' => ! empty($ffmpeg), 'ffmpeg' => $ffmpeg !== null,
'gd' => extension_loaded('gd'), 'gd' => extension_loaded('gd'),
'freetype' => extension_loaded('gd') && gd_info()['FreeType Support'], 'freetype' => extension_loaded('gd') && gd_info()['FreeType Support'],
'transcript' => $this->episode->transcript !== null, 'transcript' => $this->episode->transcript !== null,