fffiloni commited on
Commit
fb02615
·
verified ·
1 Parent(s): 035ef1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -201,7 +201,7 @@ def blend_vsfx(video_in, audio_result):
201
  clip = VideoFileClip(video_in)
202
  print(f"VID: {clip.duration}")
203
  if clip.duration < audioClip.duration :
204
- audioClip = audioClip.set_start(0).set_end(clip.duration)
205
  elif clip.duration > audioClip.duration :
206
  clip = clip.subclip((0.0), (audioClip.duration))
207
  final_clip = clip.set_audio(audioClip)
 
201
  clip = VideoFileClip(video_in)
202
  print(f"VID: {clip.duration}")
203
  if clip.duration < audioClip.duration :
204
+ audioClip = audioClip.with_start(0).with_duration(clip.duration)
205
  elif clip.duration > audioClip.duration :
206
  clip = clip.subclip((0.0), (audioClip.duration))
207
  final_clip = clip.set_audio(audioClip)