X-Git-Url: http://dolda2000.com/gitweb/?p=utils.git;a=blobdiff_plain;f=mpsync;h=cd8b08c75fa4f79f68069806eeca256bceec1171;hp=62008f0ef39e8abc8c4489362138aa87217d0214;hb=f7bd9b51138dbccb7cc2fd27f07ef66d5d2d79cf;hpb=28b58da269454e2f8166cb9c77c9a721fa427648 diff --git a/mpsync b/mpsync index 62008f0..cd8b08c 100755 --- a/mpsync +++ b/mpsync @@ -98,6 +98,7 @@ class target(object): self.sk.connect(path) self.obuf = bytearray() self.ibuf = bytearray() + self.fps = self.getprop("container-fps") def write(self, data): self.obuf.extend(data) @@ -246,7 +247,7 @@ def main(tty): 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