asad231 commited on
Commit
86068b3
·
verified ·
1 Parent(s): dbd5cd3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -59,8 +59,8 @@ def compress_video(video):
59
  fourcc = cv2.VideoWriter_fourcc(*'mp4v')
60
 
61
  # ✅ Reduce resolution to 480p
62
- frame_width = 640
63
- frame_height = 480
64
  out = cv2.VideoWriter(temp_file.name, fourcc, 20.0, (frame_width, frame_height))
65
 
66
  while cap.isOpened():
 
59
  fourcc = cv2.VideoWriter_fourcc(*'mp4v')
60
 
61
  # ✅ Reduce resolution to 480p
62
+ frame_width = 320
63
+ frame_height = 240
64
  out = cv2.VideoWriter(temp_file.name, fourcc, 20.0, (frame_width, frame_height))
65
 
66
  while cap.isOpened():