-
Notifications
You must be signed in to change notification settings - Fork 0
/
reorder_movie.py
43 lines (29 loc) · 1.14 KB
/
reorder_movie.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env python3
from chromosome_movie import config
import chromosome_movie
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('-o', '--order', default=config.order)
parser.add_argument('-d', '--force-database-rebuild', action='store_true')
parser.add_argument('-a', '--force-audio-rebuild', action='store_true')
parser.add_argument('-c', '--force-concat-rebuild', action='store_true')
args = parser.parse_args()
config.order = args.order
reordered = False
order = chromosome_movie.order.Order(config)
if not order.in_database or args.force_database_rebuild:
order.write_db()
reordered = True
if args.force_audio_rebuild or reordered:
audio = chromosome_movie.audio.Audio(config)
audio.write_midi()
if reordered:
foreground = chromosome_movie.composite.Foreground(config)
foreground.write_svg()
foreground.write_png()
movie = chromosome_movie.movie.Movie(config)
#if args.force_concat_rebuild or reordered:
# movie.write_concat()
#movie.write_mp4()
movie.write_bg_fg_mp4()