spookyuser
commited on
Commit
•
1be2667
1
Parent(s):
04efc95
Fix path
Browse files- animate.py +1 -1
animate.py
CHANGED
@@ -227,7 +227,7 @@ def create_mp4_with_audio(frames, cv2_images, duration, audio, output_path):
|
|
227 |
clip2 = vfc(temp_vid_path).resize(8).set_start(clip1.duration - 0.5).crossfadein(2)
|
228 |
clip3 = clip3.set_start((clip1.duration - 0.5) + (clip2.duration)).crossfadein(2)
|
229 |
|
230 |
-
new_clip = CompositeVideoClip([clip1, clip2, clip3])
|
231 |
new_clip.audio = audio # Naviely append audio without considering the length of the video, could be a problem, no idea, but it works, so I'm not touching it
|
232 |
new_clip.set_duration(duration)
|
233 |
new_clip.write_videofile(output_path.resolve().as_posix(), audio_codec="aac")
|
|
|
227 |
clip2 = vfc(temp_vid_path).resize(8).set_start(clip1.duration - 0.5).crossfadein(2)
|
228 |
clip3 = clip3.set_start((clip1.duration - 0.5) + (clip2.duration)).crossfadein(2)
|
229 |
|
230 |
+
new_clip = CompositeVideoClip([clip1.as_posix(), clip2, clip3.as_posix()])
|
231 |
new_clip.audio = audio # Naviely append audio without considering the length of the video, could be a problem, no idea, but it works, so I'm not touching it
|
232 |
new_clip.set_duration(duration)
|
233 |
new_clip.write_videofile(output_path.resolve().as_posix(), audio_codec="aac")
|