fixes desyncing issue
part of the credit goes to https://github.com/RebelPorp
This commit is contained in:
1 parent
ef9ac9de17
commit
809bae88c9
1 file changed
+12
-11
@@ -88,20 +88,21 @@ def make_final_video(number_of_clips, length):
|
||||
.resize(width=W - 100)
|
||||
.set_opacity(float(opacity)),
|
||||
)
|
||||
if os.path.exists("assets/mp3/posttext.mp3"):
|
||||
image_clips.insert(
|
||||
0,
|
||||
ImageClip("assets/png/title.png")
|
||||
.set_duration(audio_clips[0].duration + audio_clips[1].duration)
|
||||
.set_position("center")
|
||||
.resize(width=W - 100)
|
||||
.set_opacity(float(opacity)),
|
||||
)
|
||||
else:
|
||||
image_clips.insert(
|
||||
#if os.path.exists("assets/mp3/posttext.mp3"):
|
||||
# image_clips.insert(
|
||||
# 0,
|
||||
# ImageClip("assets/png/title.png")
|
||||
# .set_duration(audio_clips[0].duration + audio_clips[1].duration)
|
||||
# .set_position("center")
|
||||
# .resize(width=W - 100)
|
||||
# .set_opacity(float(opacity)),
|
||||
# )
|
||||
#else:
|
||||
image_clips.insert(
|
||||
0,
|
||||
ImageClip("assets/temp/png/title.png")
|
||||
.set_duration(audio_clips[0].duration)
|
||||
#.set_duration(audixc vcco_clips[0].duration)
|
||||
.set_position("center")
|
||||
.resize(width=W - 100)
|
||||
.set_opacity(float(opacity)),
|
||||
|
||||
Reference in new issue
Block a user