|
@@ -598,14 +598,14 @@ def anchor_video_v2(name,text_content, image_urls):
|
|
w.SetVideoOptions(True, "libx264", openshot.Fraction(30000, 1000), 1280, 720,
|
|
w.SetVideoOptions(True, "libx264", openshot.Fraction(30000, 1000), 1280, 720,
|
|
openshot.Fraction(1, 1), False, False, 3000000)
|
|
openshot.Fraction(1, 1), False, False, 3000000)
|
|
w.Open()
|
|
w.Open()
|
|
- #progress = 100
|
|
|
|
- #ws.send(str(progress))
|
|
|
|
|
|
+ progress = 100
|
|
|
|
+ ws.send(str(progress))
|
|
#may change duration into t.info.duration
|
|
#may change duration into t.info.duration
|
|
for n in range(int(t.info.fps)*int(head_duration+main_timer+ED_duration)):
|
|
for n in range(int(t.info.fps)*int(head_duration+main_timer+ED_duration)):
|
|
f=t.GetFrame(n)
|
|
f=t.GetFrame(n)
|
|
w.WriteFrame(f)
|
|
w.WriteFrame(f)
|
|
- notify_group(name+"的影片已經產生完成囉! www.choozmo.com:8168/"+name_hash+".mp4")
|
|
|
|
|
|
|
|
|
|
+ notify_group(name+"的影片已經產生完成囉! www.choozmo.com:8168/"+name_hash+".mp4")
|
|
t.Close()
|
|
t.Close()
|
|
w.Close()
|
|
w.Close()
|
|
|
|
|