Browse Source

adjust timing

ming 3 years ago
parent
commit
ae44fc2836
1 changed files with 2 additions and 2 deletions
  1. 2 2
      OpenshotService/openshot_video_generator.py

+ 2 - 2
OpenshotService/openshot_video_generator.py

@@ -279,9 +279,9 @@ def parse_script(file_path,gt_list):
                     start_plus = 0
                     for t2 in range(t):
                         start_plus += time_ratio[t2]
-                    new_dic['start'] =  dic['start'] + start_plus
+                    new_dic['start'] =  dic['start'] + start_plus+0.1
                     new_dic['stop'] = new_dic['start']+time_ratio[t]
-                    new_dic['duration'] = time_ratio[t]-0.1
+                    new_dic['duration'] = time_ratio[t]-0.05
                     splitted_dict.append(new_dic)
                     new_idx+=1
                 #else: