fffiloni commited on
Commit
28ef21d
1 Parent(s): 98aad5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -34,8 +34,9 @@ def get_video_dimension(filepath):
34
  width = int(video.get(cv2.CAP_PROP_FRAME_WIDTH))
35
  height = int(video.get(cv2.CAP_PROP_FRAME_HEIGHT))
36
  fps = int(video.get(cv2.CAP_PROP_FPS))
 
37
  video.release()
38
- return width, height, fps
39
 
40
  def adjust_to_multiple_of_12(number):
41
  remainder = number % 12
 
34
  width = int(video.get(cv2.CAP_PROP_FRAME_WIDTH))
35
  height = int(video.get(cv2.CAP_PROP_FRAME_HEIGHT))
36
  fps = int(video.get(cv2.CAP_PROP_FPS))
37
+ frame_count = int(video.get(cv2.CAP_PROP_FRAME_COUNT))
38
  video.release()
39
+ return width, height, fps, frame_count
40
 
41
  def adjust_to_multiple_of_12(number):
42
  remainder = number % 12