Files
2024-06-21 00:46:43 -04:00

18 lines
558 B
Python

from utils.ffmpeg_operations import run_ffmpeg_command
def frame_delay_pro1(input_file, num_of_frames, frame_weights, output_file):
command = [
"ffmpeg",
"-y",
"-i", input_file,
"-vf", f"tmix=frames={num_of_frames}:weights='{frame_weights}'",
"-c:v", "libx264",
"-crf", "23",
"-preset", "fast",
"-c:a", "aac",
"-b:a", "128k",
"-ac", "2",
output_file
]
run_ffmpeg_command(command)
print(f"Video processed with frame_delay_pro1 and file is {output_file}")