I use MSDK's HW HEVC Encoder plugin to encode hevc stream and send it to a udp socket to do multicast streaming,so I require every idr frame has sps/pps info,so how to force encoder to insert sps/pps to every idr frame?
I think you can do it, you can refer to the following posts for detailed information:
Dmitry in this post says 2 ways to add SPS/PPS into the HEVC stream.
Zhao in this post mentioned how to force the SPS/PPS in IDR.
This post is older, but Petter also described how to force the SPS PPS in IDR frame.
You can refer to developer reference at page 64 for how to use mfxExtCodingOptionSPSPPS structure.