Spaces:
Paused
Paused
Update app.py
Browse files
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
|