self.sk.connect(path)
self.obuf = bytearray()
self.ibuf = bytearray()
+ self.fps = self.getprop("container-fps")
def write(self, data):
self.obuf.extend(data)
elif c == 'S':
offsets = getoffsets()
for tgt, off in zip(targets, offsets):
- tgt.runcmd("show_text", "Offset: %f" % off)
+ tgt.runcmd("show_text", "Offset: %i" % round(off * tgt.fps))
elif c == '.':
runcmd("frame_step")
paused = True