mirror of
https://github.com/vondas-network/videobeaux.git
synced 2025-12-16 12:50:02 +01:00
14 lines
480 B
Python
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}") |