Severe recording issues

Whenever I try to record any thing over 13 minutes, it gets corrupted when it's converted so I download and install Xvid and it never shows up as an option. So I uninstall it and install it again. nothing. Someone help. I'm begging you.