Originally Posted by tschang13
Does anyone know how to convert a regular subtitle file to a subtitle file that will play in sync with a 720p/1080i/1080p MKV movie file (maybe decreasing the frame rate)?
Thanks in advance for any help.
mkvmerge's man page says this...
For text subtitles you can either use some Windows software (like SubRipper) or the subrip package found in transcode(1)'s sources (in contrib/subrip). The general process is:
1. extract a raw subtitle stream from the source:
$ tccat -i /path/to/copied/dvd/ -T 1 -L | \\
tcextract -x ps1 -t vob -a 0x20 | \\
subtitle2pgm -o mymovie
2. convert the resulting PGM images to text with gocr:
$ pgm2txt mymovie.
3. spell-check the resulting text files:
$ ispell -d american *txt
4. convert the text files to a SRT file:
$ srttool -s -w -i mymovie.srtx -o mymovie.srt
The resulting file can be used as another input file for mkvmerge:
$ mkvmerge -o mymovie.mkv mymovie.avi mymovie.srt