fix(video-clips): update condition to check if ffmpeg is installed
fixes #163
This commit is contained in:
parent
4716a4a5b9
commit
b57f0b6eb6
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue