Skip to content
  • Eloi Bail's avatar
    daemon: force keyframe rate on encoder at 5 seconds · 87624f98
    Eloi Bail authored and Guillaume Roguez's avatar Guillaume Roguez committed
    
    
    Some codecs, as h264, use a default keyframe rate based on frame count.
    As example, on h264 this rate is one IFrame each 250 frames.
    So this rate is sensible to fps changes, that ofen happens with
    output type (images, frame size, screen casting, etc).
    Using a rate based on fps seems more viable solution.
    
    Moreover, in order to handle video artifacts in case of missed packets,
    we want to send more keyframes so that artifacts will be seen for
    a shorter period.
    
    Note: the drawback of this solution is an average bitrate higher than
    before as I frames are bigger than P frames.
    
    Issue: #79690
    Change-Id: I0b9daef8723c84b5998c9eb156d1e73538e8abed
    Signed-off-by: default avatarGuillaume Roguez <guillaume.roguez@savoirfairelinux.com>
    87624f98