mirror of
https://github.com/vondas-network/videobeaux.git
synced 2025-12-18 22:00:01 +01:00
initial commit
This commit is contained in:
12
programs/resize.py
Normal file
12
programs/resize.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from utils.ffmpeg_operations import run_ffmpeg_command
|
||||
|
||||
def resize_video(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}")
|
||||
Reference in New Issue
Block a user