fffiloni commited on
Commit
1e69927
·
1 Parent(s): a4646d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(video.size[0], video.size[1])
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)