本帖最后由 zllk 于 2023-9-14 18:15 编辑
“字幕”文件夹有以下文件:
01.srt
02.srt- 1
- 00:00:50,420 --> 00:00:54,000
- 字幕1
-
- 2
- 00:00:54,940 --> 00:00:58,899
- 字幕2
-
- 3
- 00:00:59,060 --> 00:01:03,736
- 字幕3
-
- 4
- 00:01:47,620 --> 00:01:49,611
- 字幕4
-
- 5
- 00:01:49,780 --> 00:01:54,217
- 字幕5
- ......
-
- 6
- 00:01:54,380 --> 00:01:56,450
- 字幕6
-
- 7
- 00:01:56,620 --> 00:02:01,057
- 字幕7
复制代码 执行批处理效果
01.P1.srt文本内容如下:- 1
- 00:00:50,420 --> 00:00:54,000
- 字幕1
-
- 2
- 00:00:54,940 --> 00:00:58,899
- 字幕2
-
- 3
- 00:00:59,060 --> 00:01:03,736
- 字幕3
复制代码 例如01.P2.srt文本内容如下:- 4
- 00:01:47,620 --> 00:01:49,611
- 字幕4
-
- 5
- 00:01:49,780 --> 00:01:54,217
- 字幕5
- ......
-
- 6
- 00:01:54,380 --> 00:01:56,450
- 字幕6
复制代码 例如01.P3.srt文本内容如下:- 7
- 00:01:56,620 --> 00:02:01,057
- 字幕7
复制代码 “字幕”文件夹有以下文件:
01.srt
01.P1.srt
01.P2.srt
01.P3.srt
02.srt
01.P1.srt
01.P2.srt
需求概括:能支持Unicode、ANSI、UTF-8编码字幕文件分割生成的字幕文件,中文没有乱码问题,效果如上所述 |