mirror of
https://github.com/vondas-network/videobeaux.git
synced 2025-12-16 12:50:02 +01:00
13 lines
348 B
Python
13 lines
348 B
Python
from utils.ffmpeg_operations import run_ffmpeg_command
|
|
|
|
def resize(input_file, output_file, width, height):
|
|
command = [
|
|
"ffmpeg",
|
|
"-i", input_file,
|
|
"-vf", f"scale={width}:{height}",
|
|
output_file
|
|
]
|
|
|
|
run_ffmpeg_command(command)
|
|
print(f"Video resized to {width}x{height} and saved as {output_file}")
|