Answers:
这非常简单,因为.srt文件只是包含时间戳记的文本文件-您要做的就是在中添加cd1.avi所有字幕的时间长度cd2.srt。你可以找到的长度cd1.avi有ffmpeg:
ffmpeg -i cd1.avi # Look for the Duration: line
然后添加到cd2.srt使用srttool
srttool -d 12345 -i cd2.srt # 12345 is the amount to add in seconds
要么:
srttool -a hh:mm:ss -i cd2.srt # The first subtitle will now start at hh:mm:ss
然后,您应该能够将文件串联在一起并重新编号:
srttool -r -i cd.srt
我srttool之所以选择它,是因为在Arch中随附了transcode该文件,您已为该问题安装了该文件;还有很多其他工具也可以移动和合并.srt文件,并且至少有一个网站可以淹没