mirror of
https://cdm-project.com/Download-Tools/udemy-downloader.git
synced 2025-04-30 17:04:24 +02:00
update ffmpeg h265 command
This commit is contained in:
parent
1ee5d79664
commit
6570f7c45f
4
main.py
4
main.py
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user