You can refer to the SDI II Intel FPGA IP User Guide, section 5.3.1. Insert Line for a correct line insertion.