Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ def resize_video(input_path, output_path, target_width):
|
|
| 59 |
video = VideoFileClip(input_path)
|
| 60 |
|
| 61 |
# Calculate the new dimensions while maintaining the aspect ratio and multiples of 32
|
| 62 |
-
new_width, new_height = get_new_dimensions(
|
| 63 |
|
| 64 |
# Resize the video
|
| 65 |
resized_video = video.resize(width=new_width, height=new_height)
|
|
|
|
| 59 |
video = VideoFileClip(input_path)
|
| 60 |
|
| 61 |
# Calculate the new dimensions while maintaining the aspect ratio and multiples of 32
|
| 62 |
+
new_width, new_height = get_new_dimensions(target_width, video.size[1])
|
| 63 |
|
| 64 |
# Resize the video
|
| 65 |
resized_video = video.resize(width=new_width, height=new_height)
|