def parse_keyframes(path):
    text = read_all_text(path)
    if text.find('# XviD 2pass stat file')>=0:
        frames = parse_scxvid_keyframes(text)
    else:
        raise SushiError('Unsupported keyframes type')
    if 0 not in frames:
        frames.insert(0, 0)
    return frames
dataset/ETHPy150Open tp7/Sushi/keyframes.py/parse_keyframes/original