Skip to content
Snippets Groups Projects
Commit b57f0b6e authored by Yassine Doghri's avatar Yassine Doghri
Browse files

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

fixes #163
parent 4716a4a5
No related branches found
No related tags found
No related merge requests found
......@@ -119,9 +119,9 @@ class VideoClipsController extends BaseController
]);
// First, check that requirements to create a video clip are met
$ffmpeg = trim(shell_exec('type -P ffmpeg'));
$ffmpeg = shell_exec('which ffmpeg');
$checks = [
'ffmpeg' => ! empty($ffmpeg),
'ffmpeg' => $ffmpeg !== null,
'gd' => extension_loaded('gd'),
'freetype' => extension_loaded('gd') && gd_info()['FreeType Support'],
'transcript' => $this->episode->transcript !== null,
......
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