فهرست منبع

字幕文件优化

zhangyong 1 سال پیش
والد
کامیت
3088b2c780
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      video_stitching/video_stitching.py

+ 4 - 0
video_stitching/video_stitching.py

@@ -192,7 +192,11 @@ class VideoStitching():
             subtitle_clips = []
             for match in matches:
                 start = match[0]
+                start = cls.srt_to_seconds(start)
                 end = match[1]
+                end = cls.srt_to_seconds(end)
+                start = editor.cvsecs(start)
+                end = editor.cvsecs(end)
                 text = match[2].strip()
                 text = cls.split_text(text, 10)
                 # /System/Library/Fonts/Hiragino Sans GB.ttc 本地字体