Update main.py

Added -shortest flag to force the shortest stream during multiplexing. This resolves issue #215 on linux.
This commit is contained in:
h1pp0 2024-06-16 08:46:25 -04:00 committed by GitHub
parent ea59b43d4e
commit 1c0bca935e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
)