I readded the \r\n in the RtspClient, remove it if you need. Sps and pps are now sent before every NAL I in a single RTP packet.