How to optimize the quality of wowza transcoder ?

When opened "Qucik Sync" or not, the quality of wowza's H.264 is bad compared with x264 in the same video rate.

I'd like to know how to optimize the quality by setting some parameters, thank you~