Files
videobeaux/programs/frame_delay_pro2.py
Christopher Konopka c934833caf created video examples
2024-06-24 01:47:41 -04:00

13 lines
399 B
Python

from utils.ffmpeg_operations import run_ffmpeg_command
def frame_delay_pro2(input_file, decay, planes, output_file):
command = [
"ffmpeg",
"-y",
"-i", input_file,
"-vf", f"format=yuv420p,lagfun=decay={decay}:planes={planes}",
output_file
]
run_ffmpeg_command(command)
print(f"Video processed with frame_delay_pro2 and file is {output_file}")