# HG changeset patch # User kmkaplan # Date 1026424036 0 # Node ID abe3f5b156f263d3cc6736042404f913f3a5aa62 # Parent 8898dd6c0302daae84c67e33e4c7ec40469484bc Document -vobsubout, -vobsubid and -vobsubindex diff -r 8898dd6c0302 -r abe3f5b156f2 DOCS/encoding.html --- a/DOCS/encoding.html Thu Jul 11 20:19:00 2002 +0000 +++ b/DOCS/encoding.html Thu Jul 11 21:47:16 2002 +0000 @@ -74,6 +74,7 @@
mencoder [options] [input file] [options] ...
2.4.3.7. Extracting DVD subtitles to Vobsub file
+ +MEncoder is capable of extracting subtitles from DVD into +Vobsub fomat files. They consist of a pair of files ending in .idx +and .sub and are usually packaged in a single .rar archive. MPlayer +can play these with the -vobsub and -vobsubid options.
+ +You specify the basename (i.e without the .idx or .sub extension) +of the output files with -vobsubout and the index for this +subtitle in the resulting files with -vobsuboutindex.
+ +If the input is not from a DVD you should use -ifo to +indicate the .ifo file needed to construct the resulting .idx file +
+ +If the input is not from a DVD and you don't have the .ifo file +you'll need to use the -vobsubid option to let it know what +language id to put in the .idx file.
+ +Each run will append the running subtitle if the .idx and .sub +files already exist. So you should remove any before starting. + +
Example
+ +Copying two subtitles from a DVD while doing 3-pass encoding
+ rm subtitles.idx subtitles.sub
+ mencoder -dvd 1 -vobsubout subtitles -vobsuboutindex 0 -sid 2 -o frameno.avi -ovc frameno
+ mencoder -dvd 1 -oac copy -ovc divx4 -pass 1
+ mencoder -dvd 1 -oac copy -ovc divx4 -pass 2 -vobsubout subtitles -vobsuboutindex 1 -sid 5
Copying a french subtitle from an MPEG file
+ rm subtitles.idx subtitles.sub
+ mencoder movie.mpg -ifo movie.ifo -vobsubout subtitles -vobsuboutindex 0 -vobsuboutid fr -sid 1
NOTE: for all available options, read the man page!
@@ -390,6 +425,18 @@ vbr=<value> - VBR sub-mode (3-ABR, best quality/speed) (this is for VBR only!)