I haven't done it in a while, but I used to use this method from doom9
http://www.doom9.org/xvid.htm
GordianKnot / VirtualDub using AviSynth scripts ... best quality, but not a one click solution... There a quite a lot of AVS plugins that can do wonders for encoding ...
asus z170-A || core i5-6600K || geforce gtx 970 4gb || 16gb ddr4 ram || win10 || 1080p led samsung 27"