use .3 for timecodes
This commit is contained in:
parent
4e5a84e96a
commit
6deaca8161
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue