[Home]Command Examples/Generating Subtitle Files

Showing revision 13
Difference (from revision 13 to revision 13) (minor diff, author diff)
(The revisions are identical or unavailable.)

Yes, It Really Works!!

Install [gocr-0.40]

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!

Transcode Wiki | Command Examples | Recent Changes | Preferences
Password required to edit | View other revisions | View current revision
Edited May 2, 2006 11:39 pm by tarazed.ligo.caltech.edu (diff)