From af8f7433c302d40acc59ef47d3b3254632f24bec Mon Sep 17 00:00:00 2001 From: j Date: Sun, 22 Oct 2023 11:18:03 +0100 Subject: [PATCH] produce better seeking mp4 files --- render.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/render.py b/render.py index ee7f817..adc34e4 100644 --- a/render.py +++ b/render.py @@ -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 = [