Please see this question.
I have just merged two avi files cd1.avi
and cd1.avi
into movie.avi
using:
avimerge -o movie.avi -i cd{1,2}.avi
Problem is that I had to subtitle files linked to the first avi
files:
cd1.srt
cd2.srt
At first I tried simply to concatenate the files together:
cat cd{1,2}.srt > movie.srt
But that caused havoc with the subtitles… any suggestions?
Best Answer
This is pretty trivially done, since
.srt
files are just text files that contain time stamps -- all you need to do is add the length ofcd1.avi
to the times of all the subtitles incd2.srt
. You can find the length ofcd1.avi
withffmpeg
:And then add that to
cd2.srt
usingsrttool
or:
Then you should just be able to concatenate the files together and renumber:
I picked
srttool
because in Arch it comes withtranscode
, which you installed for this question; there are lots of other tools that can shift and merge.srt
files too, and at least one website, submerge