Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
Added -shortest flag to force the shortest stream during multiplexing. This resolves issue Puyodead1#215 on linux.
  • Loading branch information
thebetauser authored Jun 16, 2024
1 parent ea59b43 commit 1c0bca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down

0 comments on commit 1c0bca9

Please sign in to comment.