to infinity
This commit is contained in:
parent
582bcf1813
commit
6e4e8ca7a6
4 changed files with 146 additions and 10 deletions
19
management/commands/infinity.py
Normal file
19
management/commands/infinity.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import json
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
from django.core.management.base import BaseCommand
|
||||
from django.conf import settings
|
||||
|
||||
from ...render import render_infinity
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = 'render infinity'
|
||||
|
||||
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('--duration', action='store', dest='duration', default="3600", help='target duration of all fragments in seconds')
|
||||
|
||||
def handle(self, **options):
|
||||
render_infinity(options)
|
||||
Loading…
Add table
Add a link
Reference in a new issue