|
@@ -215,6 +215,9 @@ def video_photo_clip(vid=None,layer=None, position=None, end=None
|
|
clip.has_audio=openshot.Keyframe(0)
|
|
clip.has_audio=openshot.Keyframe(0)
|
|
return clip
|
|
return clip
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
def myunichchar(unicode_char):
|
|
def myunichchar(unicode_char):
|
|
mb_string = unicode_char.encode('big5')
|
|
mb_string = unicode_char.encode('big5')
|
|
try:
|
|
try:
|
|
@@ -565,7 +568,7 @@ def anchor_video(name,text_content, image_urls):
|
|
anchor_list[idx] = openshot.FFmpegReader(dir_anchor+name_hash+".mp4")
|
|
anchor_list[idx] = openshot.FFmpegReader(dir_anchor+name_hash+".mp4")
|
|
anchor_list[idx].Open()
|
|
anchor_list[idx].Open()
|
|
anchor_clip_list[idx] = video_photo_clip(vid=anchor_list[idx],layer=4,scale_x=0.65,scale_y=0.65,
|
|
anchor_clip_list[idx] = video_photo_clip(vid=anchor_list[idx],layer=4,scale_x=0.65,scale_y=0.65,
|
|
- location_x=0.35,location_y=0.25,position=current_time_anchor, end=anchor_list[idx].info.duration,
|
|
|
|
|
|
+ location_x=0.35,location_y=0.22,position=current_time_anchor, end=anchor_list[idx].info.duration,
|
|
ck=ck_anchor,audio=False)
|
|
ck=ck_anchor,audio=False)
|
|
t.AddClip(anchor_clip_list[idx])
|
|
t.AddClip(anchor_clip_list[idx])
|
|
current_time_anchor += anchor_list[idx].info.duration
|
|
current_time_anchor += anchor_list[idx].info.duration
|