public function checkForFFmpeg()
    {
        $binaries = [
            'ffmpeg',
        ];

        foreach ($binaries as $binary) {
            $output = shell_exec("which {$binary}");

            if (! empty($output)) {
                return true;
            }
        }

        $this->emit('error', [new FFmpegNotFoundException('No FFmpeg binary was found.')]);

        return false;
    }
public function checkForFFmpeg()
    {
        $binaries = [
            'ffmpeg',
        ];

        foreach ($binaries as $binary) {
            $output = shell_exec("which {$binary}");

            if (! empty($output)) {
                return true;
            }
        }

        $this->emit('error', [new FFmpegNotFoundException('No FFmpeg binary was found.')]);

        return false;
    }
public function checkForFFmpeg ( ) { $ binaries = [ 'ffmpeg' , ] ; foreach ( $ binaries as $ binary ) { $ output = shell_exec ( "which {$binary}" ) ; if ( ! empty ( $ output ) ) { return true ; } } $ this -> emit ( 'error' , [ new FFmpegNotFoundException ( 'No FFmpeg binary was found.' ) ] ) ; return false ; }
Checks if FFmpeg is installed.

@throws \Discord\Exceptions\FFmpegNotFoundException Thrown when FFmpeg is not found.

@return bool Whether FFmpeg is installed or not.
Checks if FFmpeg is installed .