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

14 lines
480 B
Python

from utils.ffmpeg_operations import run_ffmpeg_command
def scrolling_pro(input_file, horizontal, vertical, output_file):
command = [
"ffmpeg",
"-y",
"-i", input_file,
"-filter_complex", f"[0:v]scroll=horizontal={horizontal}:h=0.00:vertical={vertical}[out_v]",
"-map", "[out_v]",
"-map", "0:a",
output_file
]
run_ffmpeg_command(command)
print(f"Video processed with scrolling_pro and file is {output_file}")