|
@@ -558,8 +558,8 @@ def anchor_video_v2(name,text_content, image_urls):
|
|
|
LOGO_ED = openshot.FFmpegReader(dir_video+"LOGO_ED.avi")
|
|
|
LOGO_ED.Open()
|
|
|
LOGO_ED_clip = video_photo_clip(vid=LOGO_ED,layer=4,position=main_timer,end=LOGO_ED.info.duration+2
|
|
|
- ,location_x=0.02,location_y=-0.03
|
|
|
- ,scale_x=0.79,scale_y=0.68)
|
|
|
+ ,location_x=0.01,location_y=-0.025
|
|
|
+ ,scale_x=0.79,scale_y=0.685)
|
|
|
t.AddClip(LOGO_ED_clip)
|
|
|
ED_duration = LOGO_ED.info.duration
|
|
|
LOGO_ED.Close()
|
|
@@ -603,14 +603,14 @@ def anchor_video_v2(name,text_content, image_urls):
|
|
|
for n in range(int(t.info.fps)*int(head_duration+main_timer+ED_duration)):
|
|
|
f=t.GetFrame(n)
|
|
|
w.WriteFrame(f)
|
|
|
- progress = 99
|
|
|
+ progress = 100
|
|
|
ws.send(str(progress))
|
|
|
- ws.close()
|
|
|
+
|
|
|
t.Close()
|
|
|
w.Close()
|
|
|
|
|
|
print("Raw Video done")
|
|
|
print("video at : www.choozmo.com:8168/"+name_hash+".mp4")
|
|
|
-
|
|
|
+ ws.close()
|
|
|
#line notifs
|
|
|
#notify_group(name+"的影片已經產生完成囉! www.choozmo.com:8168/"+name_hash+".mp4")
|