2023-10-08 11:19:05 +00:00
|
|
|
import json
|
|
|
|
import os
|
2023-10-09 19:29:11 +00:00
|
|
|
import subprocess
|
2023-10-08 11:19:05 +00:00
|
|
|
|
|
|
|
from django.core.management.base import BaseCommand
|
|
|
|
from django.conf import settings
|
|
|
|
|
2023-10-10 15:16:59 +00:00
|
|
|
from ...render import render_all
|
2023-10-08 11:19:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Command(BaseCommand):
|
2023-10-09 13:10:34 +00:00
|
|
|
help = 'genrate kdenlive porject and render'
|
2023-10-08 11:19:05 +00:00
|
|
|
|
|
|
|
def add_arguments(self, parser):
|
|
|
|
parser.add_argument('--prefix', action='store', dest='prefix', default="/srv/t_for_time", help='prefix to build clips in')
|
2023-10-10 15:16:59 +00:00
|
|
|
parser.add_argument('--duration', action='store', dest='duration', default="3600", help='target duration of all fragments in seconds')
|
2023-10-08 11:19:05 +00:00
|
|
|
parser.add_argument('--offset', action='store', dest='offset', default="1024", help='inital offset in pi')
|
2023-10-09 19:29:11 +00:00
|
|
|
parser.add_argument('--no-video', action='store_true', dest='no_video', default=False, help='don\'t render video')
|
2023-10-08 11:19:05 +00:00
|
|
|
|
|
|
|
def handle(self, **options):
|
2023-10-10 15:16:59 +00:00
|
|
|
render_all(options)
|