If you are using an NVENC card you can set the following property to force the card to do two-pass encoding that results in a much better picture.
<Parameter>
<Name>nvenc.rateControl</Name>
<Value>8</Value>
<Type>Long</Type>
</Parameter>
*This tends to be a GPU hog.