Regarding H264, there are a large number of mosaics in the encoding at a bit rate of 2M and a resolution of 1920 * 1080

Hi,
Please refer to the post and configure CBR + virtual buffer size:
Random blockiness in the picture RTSP server-client -Jetson TX2 - #5 by DaneLLL

Check if there is improvement in video quality in the setup. 2Mbps is strict to 1920x1080p25 and there may still be mosaics in complex scenes.