Let me pick on this for being totally unclear. DivX has at least a dozen versions so if you encode to the latest it's a safe bet the TV will not play it.
As to your question, all have folk telling you this is best. My advice is to go with what works. That is my plain language answer. To go further I have to get too technical.
I have a Panasonic Smart TV with Viera . The instruction book says the video mode supports AVCHD, MPEG2 or DivX. I'm intending to watch films using a USB connected to the TV but all my films are in MP4 format. How can I convert them to one of the above formats and which is best in terms of ease of use and quality output? Please reply in plain language - I'm a bit of a dinosaur!

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic