@@ -598,13 +598,13 @@ def anchor_video_v2(name,text_content, image_urls):
w.SetVideoOptions(True, "libx264", openshot.Fraction(30000, 1000), 1280, 720,
openshot.Fraction(1, 1), False, False, 3000000)
w.Open()
-
+ progress = 100
+ ws.send(str(progress))
#may change duration into t.info.duration
for n in range(int(t.info.fps)*int(head_duration+main_timer+ED_duration)):
f=t.GetFrame(n)
w.WriteFrame(f)
- progress = 100
- ws.send(str(progress))
+
t.Close()
w.Close()