Spaces:
Running
Running
Update app.py
Browse files
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.
|
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)
|