ysharma HF staff commited on
Commit
a4f9546
·
1 Parent(s): 4d790eb
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -92,10 +92,9 @@ def merge_audio_video(entities_num, resize_img_list, text_input):
92
  #videoclip.ipython_display()
93
 
94
  #Getting size and frame count of merged video file
95
- video = cv2.VideoCapture(mergedclip)
96
  print('Getting size and frame count of merged video file')
97
- duration = video.get(cv2.CAP_PROP_POS_MSEC)
98
- frame_count = video.get(cv2.CAP_PROP_FRAME_COUNT)
99
  print('duration is:',duration)
100
  print('frame count :', frame_count)
101
 
 
92
  #videoclip.ipython_display()
93
 
94
  #Getting size and frame count of merged video file
 
95
  print('Getting size and frame count of merged video file')
96
+ duration = mergedclip.duration
97
+ frame_count = mergedclip.fps
98
  print('duration is:',duration)
99
  print('frame count :', frame_count)
100