Files
videobeaux/programs/looper_pro.py
2024-07-04 21:12:33 -04:00

12 lines
462 B
Python

from utils.ffmpeg_operations import run_ffmpeg_command
def looper_pro(input_file, loop_count, size_in_frames, start_frame, output_file):
command = [
"ffmpeg",
"-i", input_file,
"-filter_complex", f"[0:v]loop=loop={loop_count}:size={size_in_frames}:start={start_frame}[out_v]",
"-map", "[out_v]",
output_file
]
run_ffmpeg_command(command)
print(f"Video processed with looper_pro and file is {output_file}")