Avast shouldn’t have any problems with youtube, I certainly don’t.

Have (or did) you another Anti-Virus installed in this system, if so what was it and how did you get rid of it ?

Are you getting any errors when trying to view youtube videos ?

Have you been having any other computer related issues as there is one piece of malware that when removed breaks your ability to connect to it ?