def video_size(source):

    ret, stdout, stderr = call_subprocess(['ffmpeg', '-i', source])
    pattern = re.compile(r'Stream.*Video.* ([0-9]+)x([0-9]+)')
    match = pattern.search(stderr)

    if match:
        x, y = int(match.groups()[0]), int(match.groups()[1])
    else:
        x = y = 0
    return x, y
Creates a new historical scheduler with the specified initial clock
dataset/ETHPy150Open saimn/sigal/sigal/video.py/video_size--crossover with--dataset/ETHPy150Open ReactiveX/RxPY/rx/concurrency/historicalscheduler.py/HistoricalScheduler.__init__