Make H265 codec compatible with Apple HEVC standards

This commit is contained in:
Valentine Briese 2023-10-11 18:26:51 -07:00
parent 9596175f7f
commit 610593a795

View file

@ -302,14 +302,26 @@ impl FFmpegPreset {
"-c:v", "-c:v",
"h264_cuvid", "h264_cuvid",
]); ]);
output.extend(["-c:v", "hevc_nvenc", "-c:a", "copy"]) output.extend([
} "-c:v",
FFmpegHwAccel::Apple => { "hevc_nvenc",
output.extend(["-c:v", "hevc_videotoolbox", "-c:a", "copy"]) "-c:a",
"copy",
"-tag:v",
"hvc1",
])
} }
FFmpegHwAccel::Apple => output.extend([
"-c:v",
"hevc_videotoolbox",
"-c:a",
"copy",
"-tag:v",
"hvc1",
]),
} }
} else { } else {
output.extend(["-c:v", "libx265", "-c:a", "copy"]) output.extend(["-c:v", "libx265", "-c:a", "copy", "-tag:v", "hvc1"])
} }
match quality { match quality {