How to get sps and pps from the encoder after init it?

I want to get sps and pps from the encoder after init the encoder but not the encoder_capture_plane_dq_callback.
I look for the NvVideoEncoder.h ,but did not find the interface to get sps and pps.
Anybody who konw this please tell me,thank you very much!

Hi,
This is not possible. Yo have to feed YUVs first so that hardware encoder can generate SPS, PPS and then encoded frames.