Before downloading the respective codecs, make sure you are running Mac OSX 10.4 or higher as these are not available for versions prior to the one mentioned. Download the codec and install it following the on-screen instruction. On its official website you also have manuals on how to configure and install these codecs.