I managed to get H.264 encoder to work in hardware mode and I am really amazed by the performance. My issue is that since there is no hardware implementation that controls/limits the maximum NAL size, I tried to enable periodic intra refresh but I get an error of -15 which corresponds to invalid video parameters. I really want to use periodic intra refresh for the sake of bandwidth because I want to integrate the encoder in a real-time streaming application. Generation of IDR frames create spikes in bandwidth consumption and as a result packets are being dropped at the receiver side.
What I would like to know is what options are incompatible with periodic intra refresh in order to turn them off or modify them accordingly and what is a typical value for the refresh cycle. My version of SDK is1.7
I look forward to hearing from you.