reformat ffmpeg calls
This commit is contained in:
parent
b9ac31aee0
commit
64c35cf502
2 changed files with 16 additions and 13 deletions
|
@ -110,14 +110,15 @@ def prepare_download(form):
|
|||
output_filename = os.path.basename(output_filename)
|
||||
attachment_filename = '{}_{}.mp3'.format(form.start_time.data, form.length.data)
|
||||
|
||||
c = ['ffmpeg', '-y']
|
||||
c += ['-ss', str(ss)]
|
||||
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)]
|
||||
|
||||
c = [
|
||||
'ffmpeg', '-y',
|
||||
'-ss', str(ss),
|
||||
'-i', 'concat:' + '|'.join(
|
||||
[os.path.join(app.config['DATA_DIR'], s['fn']) for s in sources]),
|
||||
'-codec', 'copy',
|
||||
'-t', str(form.length.data * 60),
|
||||
os.path.join(app.config['TMP_DIR'], output_filename)
|
||||
]
|
||||
app.logger.debug(' '.join(c))
|
||||
subprocess.call(c)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue