spookyuser
commited on
Commit
•
0b0dc7f
1
Parent(s):
605c7d5
Fix path
Browse files- animate.py +2 -2
animate.py
CHANGED
@@ -232,8 +232,8 @@ def create_mp4_with_audio(frames, cv2_images, duration, audio, output_path):
|
|
232 |
)
|
233 |
clip3 = clip3.set_start((clip1.duration - 0.5) + (clip2.duration)).crossfadein(2)
|
234 |
|
235 |
-
new_clip = CompositeVideoClip([clip1
|
236 |
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
|
237 |
new_clip.set_duration(duration)
|
238 |
-
new_clip.write_videofile(output_path.
|
239 |
return output_path
|
|
|
232 |
)
|
233 |
clip3 = clip3.set_start((clip1.duration - 0.5) + (clip2.duration)).crossfadein(2)
|
234 |
|
235 |
+
new_clip = CompositeVideoClip([clip1, clip2, clip3])
|
236 |
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
|
237 |
new_clip.set_duration(duration)
|
238 |
+
new_clip.write_videofile(output_path.as_posix(), audio_codec="aac")
|
239 |
return output_path
|