update ffmpeg h265 command

This commit is contained in:
Puyodead1 2023-05-24 13:47:33 -04:00 committed by Puyodead1
parent d4a4ea1b17
commit b08f2569cb
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC

View File

@ -1013,7 +1013,7 @@ def mux_process(video_title, video_filepath, audio_filepath, output_path):
transcode = "-hwaccel cuda -hwaccel_output_format cuda" if use_nvenc else []
if os.name == "nt":
if use_h265:
command = 'ffmpeg {} -y -i "{}" -i "{}" -c:v {} -crf {} -preset {} -c:a copy -fflags +bitexact -map_metadata -1 -metadata title="{}" "{}"'.format(
command = 'ffmpeg {} -y -i "{}" -i "{}" -c:v {} -vtag hvc1 -crf {} -preset {} -c:a copy -fflags +bitexact -map_metadata -1 -metadata title="{}" "{}"'.format(
transcode, video_filepath, audio_filepath, codec, h265_crf, h265_preset, video_title, output_path
)
else:
@ -1022,7 +1022,7 @@ def mux_process(video_title, video_filepath, audio_filepath, output_path):
)
else:
if use_h265:
command = 'nice -n 7 ffmpeg {} -y -i "{}" -i "{}" -c:v libx265 -crf {} -preset {} -c:a copy -fflags +bitexact -map_metadata -1 -metadata title="{}" "{}"'.format(
command = 'nice -n 7 ffmpeg {} -y -i "{}" -i "{}" -c:v libx265 -vtag hvc1 -crf {} -preset {} -c:a copy -fflags +bitexact -map_metadata -1 -metadata title="{}" "{}"'.format(
transcode, video_filepath, audio_filepath, codec, h265_crf, h265_preset, video_title, output_path
)
else: