c++h.264openh264

Openh264 encoder increase number of IDR or I-frames


I am looking for a way to control the frequency of IDR/I-Frames that openh264 encodes. Is there any encoder setting that can archive that?


Solution

  •     int idrInterval = 0;
        m_encoder->SetOption(ENCODER_OPTION_IDR_INTERVAL, &idrInterval);
    

    Did the trick!