Update app.py
Browse files
app.py
CHANGED
@@ -49,19 +49,19 @@ def get_frames(video_in, step, name):
|
|
49 |
#clip = VideoFileClip(video_in)
|
50 |
|
51 |
#check fps
|
52 |
-
if cfps > 25:
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
else:
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
|
61 |
-
print("video resized to 1024 height")
|
62 |
|
63 |
# Opens the Video file with CV2
|
64 |
-
cap = cv2.VideoCapture("video_resized.mp4")
|
65 |
|
66 |
fps = cap.get(cv2.CAP_PROP_FPS)
|
67 |
print("video fps: " + str(fps))
|
|
|
49 |
#clip = VideoFileClip(video_in)
|
50 |
|
51 |
#check fps
|
52 |
+
#if cfps > 25:
|
53 |
+
# print("video rate is over 25, resetting to 25")
|
54 |
+
# clip_resized = clip #.resize(height=1024)
|
55 |
+
# clip_resized.write_videofile("video_resized.mp4", fps=25)
|
56 |
+
#else:
|
57 |
+
# print("video rate is OK")
|
58 |
+
# clip_resized = clip.resize(height=1024)
|
59 |
+
# clip_resized.write_videofile("video_resized.mp4", fps=cfps)
|
60 |
|
61 |
+
#print("video resized to 1024 height")
|
62 |
|
63 |
# Opens the Video file with CV2
|
64 |
+
cap = clip #cv2.VideoCapture("video_resized.mp4")
|
65 |
|
66 |
fps = cap.get(cv2.CAP_PROP_FPS)
|
67 |
print("video fps: " + str(fps))
|