From dc46591109f58db37cd81dd6bccb369c8913d127 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Fri, 8 Mar 2019 09:53:31 +0100 Subject: [PATCH] higher tolerance in copy mode --- ffplayout.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ffplayout.py b/ffplayout.py index 9b04be2e..55f3cf17 100755 --- a/ffplayout.py +++ b/ffplayout.py @@ -366,7 +366,7 @@ def src_or_dummy(src, duration, seek, out, dummy_len=None): if seek > 0.0 or out < duration: return seek_in_cut_end(src, duration, seek, out) else: - return ['-i', src] + add_filter + return ['-i', src] + add_filter else: mail_or_log( 'Clip not exist:', get_time(None), @@ -383,7 +383,12 @@ def src_or_dummy(src, duration, seek, out, dummy_len=None): def check_sync(begin): time_now = get_time('full_sec') start = float(_playlist.start * 3600) - tolerance = _buffer.tol * 4 + + # in copy mode buffer length can not be calculatet correctly... + if _pre_comp.copy: + tolerance = 60 + else: + tolerance = _buffer.tol * 4 t_dist = begin - time_now if 0 <= time_now < start and not begin == start: