Files
videobeaux/programs/frame_delay_pro2.py
2024-06-21 00:46:43 -04:00

13 lines
396 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=gbrp,lagfun=decay={decay}:planes={planes}",
output_file
]
run_ffmpeg_command(command)
print(f"Video processed with frame_delay_pro2 and file is {output_file}")