Skip to content
  • Anton Bondarenko's avatar
    rtph264pay: add "send SPS/PPS with every key frame" mode · 453a618a
    Anton Bondarenko authored
    It's not enough to have timeout or event based SPS/PPS information sent
    in RTP packets. There are some scenarios when key frames may appear
    more frequently than once a second, in which case the minimum timeout
    for "config-interval" of 1 second for sending SPS/PPS is not sufficient.
    It might also be desirable in general to make sure the SPS/PPS is
    available with every keyframe (packet loss aside), so receivers can
    actually pick up decoding immediately from the first keyframe if
    SPS/PPS is not signaled out of band.
    
    This patch adds the possibility to send SPS/PPS with every key frame. This
    mode can be enabled by setting "config-interval" property to -1. In this
    case the payloader will add SPS and PPS before every key (IDR) frame.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=757892
    453a618a