Getting into a masters program usually requires a few months. You would be looking at May or Sept 2019. One of the biggest hurdles to being approved fora student visa is proving that you have strong ties to your home country and you will return after your studies. Your chances of approval are much better from your home country. Technically you can apply through the US but you can't send your application to Canada directly.