[Home]Command Examples/Generating Subtitle Files

Showing revision 16

Vobsub -> srt

Install [gocr-0.40]

Do NOT try to use the CVS version of gocr, it's usually broken.

And [subrip-0.3-4]

Subrip may also be found in the TOOLS subdirectory of the mplayer source.

Decide which subtitle ID you need:

 mplayer -vo null -ao null -frames 0 -identify dvd://1

Extract the .idx and .sub files for that subtitle ID:

 mencoder -ovc copy \
          -o /dev/null \
          -nosound \
          -vobsubout subtitles \ <- the name of the output files
          -vobsuboutindex 1 \    <- the index used in the output
          -vobsuboutid en \      <- the code used in the output file
          -sid $N $basename      <- the i.d. of the stream to be extracted

Run subrip:

 rm -rf db
 mkdir db
 subrip $basename 1 $basename.srt You will be prompted to identify
                                  about 40 glyphs during this process.

Fix the errors in the .srt file by hand, and you're done!

If subrip seems to be asking you to identify the same character more than once, the subtitle file may be too difficult for subrip to process... This does happen.


Transcode Wiki | Command Examples | Recent Changes | Preferences
Password required to edit | View other revisions | View current revision
Edited May 12, 2006 3:47 pm by gateway (diff)
Search: