From 561397ab058867cbc2feef6d6896903fd4cacb24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20G=C3=B6z=C3=BCkara?= Date: Tue, 30 May 2023 19:07:20 +0300 Subject: [PATCH] Improves final output video quality significantly Improves final output video quality significantly --- core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/utils.py b/core/utils.py index 2d12fa6..66dab65 100644 --- a/core/utils.py +++ b/core/utils.py @@ -36,7 +36,7 @@ def set_fps(input_path, output_path, fps): def create_video(video_name, fps, output_dir): output_dir = path(output_dir) - os.system(f'ffmpeg -framerate {fps} -i "{output_dir}{sep}%04d.png" -c:v libx264 -crf 32 -pix_fmt yuv420p -y "{output_dir}{sep}output.mp4"') + os.system(f'ffmpeg -framerate {fps} -i "{output_dir}{sep}%04d.png" -c:v libx264 -crf 7 -pix_fmt yuv420p -y "{output_dir}{sep}output.mp4"') def extract_frames(input_path, output_dir):