def parse_start_step(stdout_file):
    """ Parses the starting_step of the clip from the stdout.txt of the job's run. """
    with open(stdout_file, 'r') as f:
        for line in f.readlines():
            if 'FLAGS.start_step' in line:
                return int(line.split()[-1])
    # Otherwise return a default start_step of 0 for jobs that were run before we added this flag
    return 0