Browse Source

shorten sub duration

ming 3 năm trước cách đây
mục cha
commit
7319be62cb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      OpenshotService/openshot_video_generator.py

+ 1 - 1
OpenshotService/openshot_video_generator.py

@@ -374,7 +374,7 @@ def parse_script(file_path,gt_list):
             new_dic = {}
             new_dic['index'] = new_idx
             new_idx+=1
-            ind_duration = duration * sub_dic['time_ratio']
+            ind_duration = duration * sub_dic['time_ratio']*0.8
             new_dic['start'] = dic['start'] + accumulated_duration
             accumulated_duration += ind_duration