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
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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,