소스 검색

字幕文件优化

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 本地字体