Not at all. It's absolutelly safe.
You can get Xvid from
www.koepi.org
DivX Pro with keygen can be downloaded via any P2P program, but remember to get latest version (or the version before that, and then use update feature)! (that's very important when you wanna use it to encoding)