initial commit

This commit is contained in:
Agamemnon Juunes
2024-06-19 12:44:55 -04:00
parent cb7965d7e1
commit 2f30c6c18b
9 changed files with 269 additions and 0 deletions

12
programs/resize.py Normal file
View 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}")