Need Help Installing Codecs

My repos have been corrected according to what you have said. I installed xvid. What do I do with it? I assume that a codec is just a series of programs that allow another program to decode files, in this case multimedia files like a DVD movie. I think Totem has been damaged somehow because when I start the program, it comes up and then immediately closes itself.