mirror of
https://github.com/s0md3v/roop.git
synced 2025-12-06 18:08:29 +00:00
Merge pull request #1 from NickPittas/NickPittas-Next-patch-1
Update utilities.py
This commit is contained in:
commit
d1f126b204
@ -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, os.path.join(temp_directory_path, '%04d.png')])
|
||||
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')])
|
||||
|
||||
|
||||
def create_video(target_path: str, fps: float = 30.0) -> None:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user