fffiloni commited on
Commit
e4d5d8e
β€’
1 Parent(s): 0b31d76

Lower max fps to 24

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -114,10 +114,10 @@ def get_frames(video_in, img_type):
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)
 
114
 
115
  #check fps
116
 
117
+ if clip.fps > 24:
118
+ print("vide rate is over 24, resetting to 24")
119
  clip_resized = clip.resize(height=512)
120
+ clip_resized.write_videofile(f"{img_type}_video_resized.mp4", fps=24)
121
  else:
122
  print("video rate is OK")
123
  clip_resized = clip.resize(height=512)