initial commit

This commit is contained in:
Agamemnon Juunes
2024-06-19 12:44:55 -04:00
parent cb7965d7e1
commit 2f30c6c18b
9 changed files with 269 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
from utils.ffmpeg_operations import run_ffmpeg_command
def extract_frames(input_file, output_folder, frame_rate):
command = [
"ffmpeg",
"-i", input_file,
"-vf", f"fps={frame_rate}",
f"{output_folder}/frame_%04d.png"
]
run_ffmpeg_command(command)
print(f"Frames extracted from {input_file} at {frame_rate} fps and saved to {output_folder}")