一个电影字幕工具,提供以下功能:
- 平移时间轴 (ASS, SRT文件格式已经支持)
- 平移区间时间轴(ASS, SRT文件格式已经支持)
- 合并字幕 (未实现)
usage: dasubtitle -t [+/-]milliseconds input_file -o output_file
-t, --time in milliseconds. positive to delay and negative to rush
-b, --begin in milliseconds. start position in timeline
-e, --end in milliseconds. end position in timeline
-o, --output if no outpath specified, the default one `newsubtitle.ass` will be used.
-v, --[no-]version show the version
如果字幕的文件编码不是utf-8
,需要使用iconv
转换成utf-8
,比如:
iconv -t utf-16le -f utf8 s.ass > t.ass
s.ass
和t.ass
分别是你的源文件和转换后的文件
dart compile exe bin/dasubtitle.dart
或是使用编译脚本:
./release_build.sh
如果你觉得这个 应用 有点用处,可以考虑捐助一下让我保持动力。