Use pixel format yuv422p to merge video

This commit is contained in:
henryruhs
2024-03-26 12:25:49 +01:00
parent f169caf82a
commit 390a4e8bc6
+1 -1
View File
@@ -64,7 +64,7 @@ def merge_video(target_path : str, output_video_resolution : str, output_video_f
if facefusion.globals.output_video_encoder in [ 'h264_amf', 'hevc_amf' ]:
output_video_compression = round(51 - (facefusion.globals.output_video_quality * 0.51))
commands.extend([ '-qp_i', str(output_video_compression), '-qp_p', str(output_video_compression), '-quality', map_amf_preset(facefusion.globals.output_video_preset) ])
commands.extend([ '-vf', 'framerate=fps=' + str(output_video_fps), '-pix_fmt', 'yuv420p', '-colorspace', 'bt709', '-y', temp_output_video_path ])
commands.extend([ '-vf', 'framerate=fps=' + str(output_video_fps), '-pix_fmt', 'yuv422p', '-colorspace', 'bt709', '-y', temp_output_video_path ])
return run_ffmpeg(commands)