fffiloni commited on
Commit
91b6656
1 Parent(s): 987752b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -157,6 +157,8 @@ def blend_vsfx(video_in, audio_result):
157
  clip = VideoFileClip(video_in)
158
  print(f"VID: {clip.duration}")
159
  if clip.duration < audioClip.duration :
 
 
160
  clip = clip.subclip((0.0), (audioClip.duration))
161
  final_clip = clip.set_audio(audioClip)
162
  # Set the output codec
 
157
  clip = VideoFileClip(video_in)
158
  print(f"VID: {clip.duration}")
159
  if clip.duration < audioClip.duration :
160
+ audioClip = audioClip.subclip((0.0), (clip.duration))
161
+ elif clip.duration > audioClip.duration :
162
  clip = clip.subclip((0.0), (audioClip.duration))
163
  final_clip = clip.set_audio(audioClip)
164
  # Set the output codec