From 1c0bca935ee364c9a1f2a668581f6f3dcaf8f502 Mon Sep 17 00:00:00 2001 From: h1pp0 <56662889+thebetauser@users.noreply.github.com> Date: Sun, 16 Jun 2024 08:46:25 -0400 Subject: [PATCH] Update main.py Added -shortest flag to force the shortest stream during multiplexing. This resolves issue #215 on linux. --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 7c24c93..b7e26af 100644 --- a/main.py +++ b/main.py @@ -1277,7 +1277,7 @@ def mux_process(video_title, video_filepath, audio_filepath, output_path): transcode, video_filepath, audio_filepath, codec, h265_crf, h265_preset, video_title, output_path ) else: - command = 'nice -n 7 ffmpeg -y -i "{}" -i "{}" -c:v copy -c:a copy -fflags +bitexact -map_metadata -1 -metadata title="{}" "{}"'.format( + command = 'nice -n 7 ffmpeg -y -i "{}" -i "{}" -c:v copy -c:a copy -fflags +bitexact -shortest -map_metadata -1 -metadata title="{}" "{}"'.format( video_filepath, audio_filepath, video_title, output_path )