Merge pull request #226 from thebetauser/master

fix for audio overrun during multiplexing
This commit is contained in:
Puyodead1 2024-06-16 09:03:10 -04:00 committed by GitHub
commit 2de870c009
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 transcode, video_filepath, audio_filepath, codec, h265_crf, h265_preset, video_title, output_path
) )
else: 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 video_filepath, audio_filepath, video_title, output_path
) )