[MEncoder-users] Selectable subtitle

Gabri Nurtinaz Shally gabri.ns at gmail.com
Fri Apr 6 12:38:25 CEST 2012


On Apr 6, 2012 5:10 PM, "Janos Szamosfalvi" <szamosj at yahoo.com> wrote:
>
> I'm encoding directly from a DVD, and I would like to know how do I
include a subtitle that is not hardcoded into the main movie.  In other
words, if I play it with VLC, I can choose to enable it or not.
>
> Mu current commandline: mencoder dvd://1 -dvd-device k: -alang en -slang
en -of lavf -lavfopts format=mp4 -o tmp4.mp4 -srate 44100 -af
resample=44100:0:1,format=s16le -oac mp3lame -lameopts cbr:br=128 -ofps
24000/1001 -vf crop=704:480:10:0,scale=800:600,harddup  -ovc x264
-x264encopts
bitrate=1000:bframes=2:b_pyramid=normal:weight_b:keyint=24:psnr:ssim:pass=2

if you have the documentation, you can read menc-feat-extractsub.html, or
you can read it online here
http://mplayerhq.hu/DOCS/HTML/en/menc-feat-extractsub.html

add this line in your command:
-vobsubout <filename> -vobsuboutindex <index> -sid <subindex>
where:
filename: file name you wish, eg "eagle eye", i think it is you should use
same value with -o value
index: index of sub in outputed file. initially you should give 0, and
increment it as you add another sub, of different language of course.
subindex: subtitle index number from source file

if you just want to dump all sub, you can use this:
for %index in (0,1,<max index>) do mencoder -oac copy -ovc copy -o nul
<filename, or maybe dvd command> -vobsubout <subfilename> -vobsuboutindex
%index -sid %index


More information about the MEncoder-users mailing list