Skip to content

Commit

Permalink
Merge pull request s0md3v#124 from FurkanGozukara/main
Browse files Browse the repository at this point in the history
Improves final output video quality significantly
  • Loading branch information
s0md3v authored May 30, 2023
2 parents 339e531 + 561397a commit afefc37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit afefc37

Please sign in to comment.