I do not know what you mean by in a good quality
but assuming that you mean it looks blurred out, it could be that
PNG image is smaller in size compared to the size in which you want it encoded.
This will mean less pixels to encode into the video stream. This will result in pixels being spread out and hence looking of poor quality.