Update app.py
Browse files
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 =
|
63 |
-
frame_height =
|
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():
|