Skip to content

Commit

Permalink
Revert "Update utilities.py (#542)"
Browse files Browse the repository at this point in the history
This reverts commit d57279c.
  • Loading branch information
henryruhs committed Jun 19, 2023
1 parent 3467ecd commit 63374ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roop/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def detect_fps(target_path: str) -> float:

def extract_frames(target_path: str) -> None:
temp_directory_path = get_temp_directory_path(target_path)
run_ffmpeg(['-i', target_path, '-pix_fmt', 'rgb24', '-sws_flags', '+accurate_rnd+full_chroma_int', '-colorspace', '1', '-color_primaries', '1', '-color_trc', '1', os.path.join(temp_directory_path, '%04d.png')])
run_ffmpeg(['-i', target_path, os.path.join(temp_directory_path, '%04d.png')])


def create_video(target_path: str, fps: float = 30.0) -> None:
Expand Down

0 comments on commit 63374ee

Please sign in to comment.