use .3 for timecodes

This commit is contained in:
j 2026-01-14 02:04:15 +00:00
commit 6deaca8161

View file

@ -217,7 +217,7 @@ def join_tiles(source_paths, durations, target_path):
offset += durations[i] offset += durations[i]
with open(os.path.join(target_path, 'cuts.json'), 'w') as f: with open(os.path.join(target_path, 'cuts.json'), 'w') as f:
# avoid float rounding artefacts # avoid float rounding artefacts
f.write('[' + ', '.join(map(lambda x: '%.2f' % x, cuts)) + ']') f.write('[' + ', '.join(map(lambda x: '%.3f' % x, cuts)) + ']')
def split_tiles(path, paths, durations): def split_tiles(path, paths, durations):