Files
videobeaux/programs/scrolling.py
Christopher Konopka c14a02492b added v2 set of effects
2024-06-20 15:57:27 -04:00

15 lines
446 B
Python

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