[MPlayer-dev-eng] [PATCH] sub_load and sub_remove slave mode commands
kiriuja
mplayer-patches at en-directo.net
Tue May 3 13:18:10 CEST 2005
> I do not understand this: you call sub_load giving the filename, but you
> must call sub_remove with subtitle index: how can you get that index, if
> you know only the subtitle filename?
If you run MPlayer with -identify option, you will see that it gives you
the indexes of all subtitle files, including autoloaded ones. Also when
you do sub_load, it gives you the index of the loaded subtitle.
If you don't like to parse MPlayer output, then just give it -noautosub
option and then subtitle file numbers will start with zero for subtitles
you pass on the command line, and sub_load'ed ones will get subsequent
numbers. Demuxer and vobsub subtitles have their own index sequences.
But the best thing is to use -identify, it is there specifically for
frontends that run MPlayer with -slave option.
--
kiriuja
More information about the MPlayer-dev-eng
mailing list