Skip to content
  • Seungha Yang's avatar
    splitmuxsink: Enhancement for timecode based split · ca48f526
    Seungha Yang authored
    The calculated threshold for timecode might be varying depending on
    "max-size-timecode" and framerate.
    For instance, with framerate 29.97 (30000/1001) and
    "max-size-timecode=00:02:00;02", every fragment will have identical
    number of frames 3598. However, when "max-size-timecode=00:02:00;00",
    calculated next keyframe via gst_video_time_code_add_interval()
    can be different per fragment, but this is the nature of timecode.
    To compensate such timecode drift, we should keep track of expected
    timecode of next fragment based on observed timecode.
    ca48f526