Ver código fonte

shorten sub duration

ming 3 anos atrás
pai
commit
7319be62cb
1 arquivos alterados com 1 adições e 1 exclusões
  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