How do you find out what codecs were used to create a compressed movie ?

I have several files that quicktime will not play, and I want to find the correct codecs for it.

Thank you.