fix infinity
This commit is contained in:
parent
b2552d6059
commit
f7dfa96389
2 changed files with 4 additions and 1 deletions
|
|
@ -14,6 +14,9 @@ class Command(BaseCommand):
|
||||||
def add_arguments(self, parser):
|
def add_arguments(self, parser):
|
||||||
parser.add_argument('--prefix', action='store', dest='prefix', default="/srv/t_for_time", help='prefix to build clips in')
|
parser.add_argument('--prefix', action='store', dest='prefix', default="/srv/t_for_time", help='prefix to build clips in')
|
||||||
parser.add_argument('--duration', action='store', dest='duration', default="3600", help='target duration of all fragments in seconds')
|
parser.add_argument('--duration', action='store', dest='duration', default="3600", help='target duration of all fragments in seconds')
|
||||||
|
parser.add_argument('--single-file', action='store_true', dest='single_file', default=False, help='render to single video')
|
||||||
|
parser.add_argument('--keep-audio', action='store_true', dest='keep_audio', default=False, help='keep independent audio tracks')
|
||||||
|
parser.add_argument('--debug', action='store_true', dest='debug', default=False, help='output more info')
|
||||||
|
|
||||||
def handle(self, **options):
|
def handle(self, **options):
|
||||||
render_infinity(options)
|
render_infinity(options)
|
||||||
|
|
|
||||||
|
|
@ -848,7 +848,7 @@ def render_infinity(options):
|
||||||
"max-items": 30,
|
"max-items": 30,
|
||||||
"no_video": False,
|
"no_video": False,
|
||||||
}
|
}
|
||||||
for key in ("prefix", "duration"):
|
for key in ("prefix", "duration", "debug", "single_file", "keep_audio"):
|
||||||
state[key] = options[key]
|
state[key] = options[key]
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue