|
@@ -411,16 +411,16 @@ def anchor_video_v2(name,text_content, image_urls):
|
|
|
print('sub image made')
|
|
|
file_prepare_v2(name, name_hash, text_content,image_urls)
|
|
|
progress = 10
|
|
|
- #ws.send(progress)
|
|
|
+ #ws.send(str(progress))
|
|
|
sub_list=generate_subtitle_image(name_hash,text_content)
|
|
|
progress = 20
|
|
|
- #ws.send(progress)
|
|
|
+ #ws.send(str(progress))
|
|
|
|
|
|
progress_per_video = int(40/len(text_content))
|
|
|
for fname in range(len(text_content)):
|
|
|
call_achor_video_v2(name_hash+"/"+str(fname))
|
|
|
progress += progress_per_video
|
|
|
- #ws.send(progress)
|
|
|
+ #ws.send(str(progress))
|
|
|
print('step finish')
|
|
|
print('called............................................')
|
|
|
|
|
@@ -507,7 +507,7 @@ def anchor_video_v2(name,text_content, image_urls):
|
|
|
idx+=1
|
|
|
|
|
|
progress+=10
|
|
|
- #ws.send(progress)
|
|
|
+ #ws.send(str(progress))
|
|
|
|
|
|
LOGO_ED = openshot.FFmpegReader(dir_video+"LOGO_ED.avi")
|
|
|
LOGO_ED.Open()
|
|
@@ -562,7 +562,7 @@ def anchor_video_v2(name,text_content, image_urls):
|
|
|
print("Raw Video done")
|
|
|
print("video at : www.choozmo.com:8168/"+name_hash+".mp4")
|
|
|
progress = 100
|
|
|
- #ws.send(progress)
|
|
|
+ #ws.send(str(progress))
|
|
|
#line notifs
|
|
|
notify_group(name+"的影片已經產生完成囉! www.choozmo.com:8168/"+name_hash+".mp4")
|
|
|
|
|
@@ -582,16 +582,16 @@ def anchor_video_v3(name,text_content, image_urls):
|
|
|
print('sub image made')
|
|
|
file_prepare_v2(name, name_hash, text_content,image_urls)
|
|
|
progress = 10
|
|
|
- ws.send(progress)
|
|
|
+ ws.send(str(progress))
|
|
|
sub_list=generate_subtitle_image(name_hash,text_content)
|
|
|
progress = 20
|
|
|
- ws.send(progress)
|
|
|
+ ws.send(str(progress))
|
|
|
|
|
|
progress_per_video = int(40/len(text_content))
|
|
|
for fname in range(len(text_content)):
|
|
|
call_achor_video_v2(name_hash+"/"+str(fname))
|
|
|
progress += progress_per_video
|
|
|
- ws.send(progress)
|
|
|
+ ws.send(str(progress))
|
|
|
print('step finish')
|
|
|
print('called............................................')
|
|
|
|
|
@@ -678,7 +678,7 @@ def anchor_video_v3(name,text_content, image_urls):
|
|
|
idx+=1
|
|
|
|
|
|
progress+=10
|
|
|
- ws.send(progress)
|
|
|
+ ws.send(str(progress))
|
|
|
|
|
|
LOGO_ED = openshot.FFmpegReader(dir_video+"LOGO_ED.avi")
|
|
|
LOGO_ED.Open()
|
|
@@ -733,6 +733,6 @@ def anchor_video_v3(name,text_content, image_urls):
|
|
|
print("Raw Video done")
|
|
|
print("video at : www.choozmo.com:8168/"+name_hash+".mp4")
|
|
|
progress = 100
|
|
|
- ws.send(progress)
|
|
|
+ ws.send(str(progress))
|
|
|
#line notifs
|
|
|
#notify_group(name+"的影片已經產生完成囉! www.choozmo.com:8168/"+name_hash+".mp4")
|