Best Video Quaility for YouTube?

Pretty simple...

I would like instructions on how to make the best video quality using JNES. I guess I'm looking for a guide on the start to finish process for ensuring videos that I upload to YouTube are the best possible quality.