How to get NVENC to repeat SPS/PPS NALUs for stream?

Doldol

New Member
I stream NVENC h264 to my own server, where I segment the stream into 30 min segments as MPEG-TS, now by default NVENC only creates SPS/PPS NALUs at the start, which causes corrupt segments for anything but the 1st segment as the follow up segments refer to but don't contain SPS/PPS NALUs

I would need NVENC to be setup as instructed here: https://stackoverflow.com/questions/33185966/how-to-stream-h-264-video-over-udp-using-the-nvidia-nvenc-hardware-encoder

this being the important line:
Code:
m_stEncodeConfig.encodeCodecConfig.h264Config.repeatSPSPPS = 1;
 
Top