Perfect Encoding for my LG PW350 Tv

For sometime, I’ve been having trouble encoding files to play on my LG PW350 TV, and a lot of encoders, some caused loss in quality, some had sync issue, and some didn’t work at all, but this seams to get me the perfect result.

$ mencoder input.mkv -o output.avi -oac twolame -ovc x264