I have a bluray player that is happy with xvid avi but will not play divx. As divx is a commercial codec and xvid is open source, I guess the manufacturer was too tight to pay for the license to use Divx. Maybe your TV is the same?
Luckily the vast majority of video you will encounter is Xvid.
You can use
Gspot to identify the codec.
You can
try changing the fourCC of a divx to fool the TV into thinking the codec is xvid.
Mpeg4modifier includes a handy fourCC changer.
If you decide to or have to, physically change an avi's codec then
Avirecomp is a simple to use solution that does a nice job of recompressing to xvid.
If you have a movie in some other format than Xvid,
FFmpeg seems to make a good job of converting most things to xvid avi.
All apps mentioned are oen source or freeware.