diff --git a/render.py b/render.py index 3f379b6..6420eb7 100644 --- a/render.py +++ b/render.py @@ -409,7 +409,9 @@ def render_all(options): clips_used = [] stats = defaultdict(lambda: 0) + fragment_base = base for fragment in fragments: + fragment_base += 1 fragment_id = int(fragment['name'].split(' ')[0]) name = fragment['name'].replace(' ', '_') if fragment_id < 10: @@ -422,7 +424,7 @@ def render_all(options): fragment_clips = fragment['clips'] unused_fragment_clips = [c for c in fragment_clips if c not in clips_used] print('fragment clips', len(fragment_clips), 'unused', len(unused_fragment_clips)) - scene, used = compose(unused_fragment_clips, target=target, base=base, voice_over=fragment['voice_over']) + scene, used = compose(unused_fragment_clips, target=target, base=fragment_base, voice_over=fragment['voice_over']) clips_used += used scene_duration = get_scene_duration(scene) print("%s %6.3f -> %6.3f (%6.3f)" % (name, target, scene_duration, fragment_target))