This is not a bug. These are encoding artifacts and mean you have to optimize your settings.
You try to encoding with 20 Mbit/s. I don't know the resolution or the fps, but most likely this is not enough.
- Try to avoid bit rate based rate controls and use quality / quantizer based rate controls instead (unless you aim for a specific file size i.e. for DVD/BD authoring).
- Don't set a level if you just want to upload to youtube. Levels are needed when your rendered videos should be played on certain hardware decoders. But YT re-encodes all videos again anyway.
Try this simple settings:
profile=high qp=23 quality=quality rc=cqp
And if the quality is bad decrease the "qp" value until you are happy with the video quality.