Add audio and video codec to iTunes
The answer to this question used to be "install Perian", and although that still works and provides many great codecs for Quicktime (and therefore iTunes), it's discontinued.

Give it a go, it's always worked really well for me.