SUBRIP(1)

NAME
subrip - extract subtitles from dvd

SYNOPSIS
subrip [-qk] [-d device] [-m mencoder-cmd] [-g gocr-cmd] -s sid [-s sid] -t title output

DESCRIPTION
The subrip command extracts subtitles from a dvd using mplayer(1) and passes them to gocr(1) for conversion into srt files. The resulting files are named output.srt, where a ‘%d’ in output is replaced with the subtitle stream number sid.

subrip is a simple shell-script that acts as a front-end and can be customized as needed.

The extraction is interactive, as gocr(1) often will need some help recognizing some character shapes.

The options are as follows:

-d device
    Select dvd device. Defaults to /dev/rcd0c.

-g gocr-cmd
    Add extra arguments to the invocation of gocr(1). Thanks to bugs in getopt(1), one should use several -g options to specify an option with arguments.

-k  Keep temporary files.

-m mencoder-cmd
    Add extra arguments to the invocation of mencoder(1). Thanks to bugs in getopt(1), one should use several -m options to specify an option with arguments.

-q  Quiet mode, do not display mencoder(1) progress.

-s sid
    Select subtitle id to copy. At least one subtitle stream should be selected.

-t title
    Select title to copy. Mandatory.

FILES
The directory db is used by gocr(1) to store user-supplied information to help in character recognition.

subrip stores temporary files into a temporary subdirectory of TMPDIR, or of /tmp if TMPDIR is not set.

SEE ALSO
gocr(1), mencoder(1), srttool(1), sub2pgm(1)