Did you mean "install both Divx and
Xvid codecs"?
Yes, it's possible, you can install both of them, and if you DON'T select the option to play generic MPEG-4 encoded videos, then DivX codec will only decode DivX videos and XviD will decode XviD ones..
Which error did ffdshow gave you? :?
With which kind of videos?