I think this rather depends on the type of file, but a good thing to use if you hit this problem is the VLC player which has codecs bult in.
The site
http://www.free-codecs.com/ will provide you with codecs and hopefully tell you what you need.
I hope this helps