piperod91 commited on
Commit
b265a61
·
1 Parent(s): 9bc9c4c

fixing resolution for some videos

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 > 1920 or height > 1080:
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