move after render
This commit is contained in:
parent
00f6b9b4f4
commit
4faef5e1dd
1 changed files with 6 additions and 2 deletions
|
|
@ -556,10 +556,11 @@ def render_all(options):
|
|||
if '/audio' in timeline:
|
||||
ext = '.wav'
|
||||
out = '%s' % timeline.replace('.kdenlive', ext)
|
||||
tmp_out = '%s' % timeline.replace('.kdenlive', ".tmp" + ext)
|
||||
cmd = get_melt() + [
|
||||
timeline,
|
||||
'-quiet',
|
||||
'-consumer', 'avformat:%s' % out,
|
||||
'-consumer', 'avformat:%s' % tmp_out,
|
||||
]
|
||||
if ext == '.wav':
|
||||
cmd += ['vn=1']
|
||||
|
|
@ -571,6 +572,7 @@ def render_all(options):
|
|||
cmd += ['vcodec=libx264', 'x264opts=keyint=1', 'crf=15']
|
||||
if needs_update(timeline, out):
|
||||
subprocess.call(cmd)
|
||||
shutil.move(tmp_out, out)
|
||||
if ext == '.wav' and timeline.endswith('audio.kdenlive'):
|
||||
cmd = [
|
||||
'ffmpeg', '-y',
|
||||
|
|
@ -695,9 +697,10 @@ def render_all(options):
|
|||
if '/audio' in timelines[0]:
|
||||
ext = '.wav'
|
||||
out = base_prefix / (timeline + ext)
|
||||
tmp_out = base_prefix / (timeline + ".tmp" +ext)
|
||||
cmd = get_melt() + timelines + [
|
||||
'-quiet',
|
||||
'-consumer', 'avformat:%s' % out,
|
||||
'-consumer', 'avformat:%s' % tmp_out,
|
||||
]
|
||||
if ext == '.wav':
|
||||
cmd += ['vn=1']
|
||||
|
|
@ -709,6 +712,7 @@ def render_all(options):
|
|||
cmd += ['vcodec=libx264', 'x264opts=keyint=1', 'crf=15']
|
||||
if needs_update(timelines[0], out):
|
||||
cmds.append(cmd)
|
||||
shutil.move(tmp_out, out)
|
||||
|
||||
for src, out1, out2 in (
|
||||
("audio-front.wav", "fl.wav", "fr.wav"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue