Spaces:
Runtime error
Runtime error
fixing resolution for some videos
Browse files
app.py
CHANGED
@@ -187,7 +187,7 @@ def process_video(input_video, out_fps = 'auto', skip_frames = 7):
|
|
187 |
width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))
|
188 |
height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
|
189 |
|
190 |
-
if width >
|
191 |
width = int(width//4)
|
192 |
height = int(height//4)
|
193 |
|
|
|
187 |
width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH))
|
188 |
height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
|
189 |
|
190 |
+
if width > 2200 or height > 2000:
|
191 |
width = int(width//4)
|
192 |
height = int(height//4)
|
193 |
|