Add --audio-streams flag to configure number of audio streams for .ts output

Since videos with translations appear to require at least as many audio
streams in the intro/outro as there are audio streams in the main video,
this allows to create intro/outro files for videos with more than one
translation (so far, the code already created 2 streams).
This commit is contained in:
Manfred Stock 2021-07-22 22:42:02 +02:00
parent edf8624da4
commit af310d7e3e
2 changed files with 10 additions and 4 deletions

View file

@ -56,6 +56,10 @@ parser.add_argument('--resvg', action="store_true", default=False, help='''
Render frames using resvg instead of Inkscape.
Usage: ./make.py yourproject/ --resvg
''')
parser.add_argument('--audio-streams', action="store", default=2, type=int, help='''
Number of audio streams to generate.
Usage: ./make.py yourproject/ --audio-streams 4
''')
if len(sys.argv) < 2:
parser.print_help()