|
|
|
@ -21,6 +21,7 @@ Bootstrap(app)
|
|
|
|
|
|
|
|
|
|
attachment_filenames = {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class DownloadForm(FlaskForm):
|
|
|
|
|
start_time = DateTimeField('Start time',
|
|
|
|
|
validators=[InputRequired()],
|
|
|
|
@ -111,8 +112,8 @@ def prepare_download(form):
|
|
|
|
|
|
|
|
|
|
c = ['ffmpeg', '-y']
|
|
|
|
|
c += ['-ss', str(ss)]
|
|
|
|
|
c += ['-i', 'concat:' + '|'.join([os.path.join(app.config['DATA_DIR'],
|
|
|
|
|
source['fn']) for source in sources])]
|
|
|
|
|
c += ['-i', 'concat:' + '|'.join(
|
|
|
|
|
[os.path.join(app.config['DATA_DIR'], s['fn']) for s in sources])]
|
|
|
|
|
c += ['-codec', 'copy']
|
|
|
|
|
c += ['-t', str(form.length.data * 60)]
|
|
|
|
|
c += [os.path.join(app.config['TMP_DIR'], output_filename)]
|
|
|
|
|