|
@@ -534,6 +534,7 @@ def video_writer_init(path):
|
|
|
|
|
|
|
|
|
def video_gen(name_hash,name,text_content, image_urls,multiLang,avatar):
|
|
|
+ name_hash = 'TESTER'
|
|
|
file_prepare_long(name, name_hash, text_content,image_urls,multiLang)
|
|
|
|
|
|
for fname in range(len(text_content)):
|
|
@@ -692,10 +693,14 @@ def video_gen(name_hash,name,text_content, image_urls,multiLang,avatar):
|
|
|
f = open(path, 'r')
|
|
|
print(f.read())
|
|
|
f.close()
|
|
|
- os.remove(tmp_video_dir+name_hash+"raw.mp4")
|
|
|
- os.remove(tmp_video_dir+name_hash+"script.txt")
|
|
|
+ #os.remove(tmp_video_dir+name_hash+"raw.mp4")
|
|
|
+ #os.remove(tmp_video_dir+name_hash+"script.txt")
|
|
|
print(name+"ALL DONE : www.choozmo.com:8168/"+video_sub_folder+name_hash+"raw.mp4")
|
|
|
|
|
|
+ Ctr_Autosub.init()
|
|
|
+ Ctr_Autosub.generate_subtitles(tmp_video_dir+name_hash+".mp4",'zh',listener_progress,output=tmp_video_dir+name_hash+"script.txt",concurrency=DEFAULT_CONCURRENCY,subtitle_file_format=DEFAULT_SUBTITLE_FORMAT)
|
|
|
+
|
|
|
+
|
|
|
|
|
|
def anchor_video_v2(name_hash,name,text_content, image_urls,multiLang,avatar):
|
|
|
print(os.getcwd())
|