You are probalbly missing a codec, here is a link to download the K-Lite player, is quite good supports loads of codecs and will clean up any old codecs it finds lying around when it installs.
K-Lite download page
Codecs like XVid only encode the picture part of the video, and will need to use another codec for sound like an ogg player, seems like what is happening to you.