produce better seeking mp4 files
This commit is contained in:
parent
c1c7fc27d3
commit
af8f7433c3
1 changed files with 5 additions and 1 deletions
|
@ -281,9 +281,13 @@ def render_all(options):
|
|||
cmd = [
|
||||
'xvfb-run', '-a',
|
||||
'melt', timeline,
|
||||
'-quiet',
|
||||
'-consumer', 'avformat:%s' % timeline.replace('.kdenlive', ext),
|
||||
'-quiet'
|
||||
]
|
||||
if ext == '.wav':
|
||||
cmd += ['vn=1']
|
||||
else:
|
||||
cmd += ['an=1', 'vcodec=libx264', 'x264opts=keyint=1', 'crf=15']
|
||||
subprocess.call(cmd)
|
||||
if ext == '.wav' and timeline.endswith('audio.kdenlive'):
|
||||
cmd = [
|
||||
|
|
Loading…
Reference in a new issue