public static function canEncode($format)
    {
        $formats = array_merge(self::getSupportedAudioEncoders(), self::getSupportedVideoEncoders());

        // Return boolean if they can be encoded or not
        if(!in_array($format, $formats)) 
        {
            return false;
        } else {
            return true;
        }
    }