浏览代码

add eng video materail

ming 3 年之前
父节点
当前提交
9bf54d6947
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      OpenshotService/openshot_video_generator.py

+ 4 - 4
OpenshotService/openshot_video_generator.py

@@ -412,7 +412,7 @@ def anchor_video_eng(name_hash,name,text_content, image_urls,sub_titles,avatar):
                     ,location_y=-0.03,scale_x=0.8,scale_y=0.704)
     t.AddClip(LOGO_OP_clip)
     #add background video  (head is different)
-    bg_head = openshot.FFmpegReader(dir_video+"bg_head.avi")
+    bg_head = openshot.FFmpegReader(dir_video+"bg_head_eng.mp4")
     bg_head.Open()
     bg_head_clip = video_photo_clip(vid=bg_head,layer=2,position=0,end=LOGO_OP.info.duration,ck=ck)
     t.AddClip(bg_head_clip)
@@ -481,7 +481,7 @@ def anchor_video_eng(name_hash,name,text_content, image_urls,sub_titles,avatar):
     LOGO_ED.Close()
     
 
-    bg = openshot.FFmpegReader(dir_video+"bg.mp4")
+    bg = openshot.FFmpegReader(dir_video+"bg_eng.mp4")
     bg.Open()
     bg_times = math.floor(main_timer+ED_duration/bg.info.duration)
     left_time = (main_timer+ED_duration) % bg.info.duration
@@ -490,14 +490,14 @@ def anchor_video_eng(name_hash,name,text_content, image_urls,sub_titles,avatar):
     bg.Close()
     bg_timer = head_duration
     for idx in range(bg_times):
-        bg_list[idx] = openshot.FFmpegReader(dir_video+"bg.mp4")
+        bg_list[idx] = openshot.FFmpegReader(dir_video+"bg_eng.mp4")
         bg_list[idx].Open()
         bg_clip_list[idx] = video_photo_clip(bg_list[idx],layer=2,position=bg_timer
                 ,end=bg_list[idx].info.duration,ck=ck)
         t.AddClip(bg_clip_list[idx])
         bg_timer += bg_list[idx].info.duration
         bg_list[idx].Close()
-    bg_left = openshot.FFmpegReader(dir_video+"bg.mp4")
+    bg_left = openshot.FFmpegReader(dir_video+"bg_eng.mp4")
     bg_left.Open()
     bg_left_clip = video_photo_clip(bg_left,layer=2,position=bg_timer,end=left_time,ck=ck)
     t.AddClip(bg_left_clip)