Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -114,10 +114,10 @@ def get_frames(video_in, img_type):
|
|
114 |
|
115 |
#check fps
|
116 |
|
117 |
-
if clip.fps >
|
118 |
-
print("vide rate is over
|
119 |
clip_resized = clip.resize(height=512)
|
120 |
-
clip_resized.write_videofile(f"{img_type}_video_resized.mp4", fps=
|
121 |
else:
|
122 |
print("video rate is OK")
|
123 |
clip_resized = clip.resize(height=512)
|
|
|
114 |
|
115 |
#check fps
|
116 |
|
117 |
+
if clip.fps > 30:
|
118 |
+
print("vide rate is over 30, resetting to 30")
|
119 |
clip_resized = clip.resize(height=512)
|
120 |
+
clip_resized.write_videofile(f"{img_type}_video_resized.mp4", fps=30)
|
121 |
else:
|
122 |
print("video rate is OK")
|
123 |
clip_resized = clip.resize(height=512)
|