[MPlayer-dev-eng] [PATCH] subtitle reload, slave mode

Salvatore Falco sfalco at studenti.ing.uniroma1.it
Tue Oct 12 16:47:11 CEST 2004


On Tue, Oct 12, 2004 at 02:18:10PM +0200, Diego Biurrun wrote:
> Salvatore Falco writes:
> > On Tue, Oct 12, 2004 at 12:01:52PM +0200, Diego Biurrun wrote:
> > > Salvatore Falco writes:
> > > > 
> > > > This patch adds a new slave command (and related documentation):
> > > > 
> > > > sub_reload <search_file> <replace_file>
> > > >     Substitutes subtitles from file with absolute path <search> with subtitles from
> > > >     file with absolute path <replace>
> > > 
> > > This is confusing.  Why does this command need two parameters and not
> > > just one for the new sub file?
> > 
> >     Because otherwise you would be _obliged_ to reload the same file,
> > while in this way you can also change the file for another. Think about
> > switching between two languages, of between different versions of the same
> > language.
> 
> Huh?  We seem to have a misunderstanding here.  I understood from the
> documentation coming with your patch that this slave command can be
> used to load subtitles from a different file.  So that if I run
> 
>   mplayer -sub /path/foo.sub movie.avi
>
> and later use the slave command
> 
>   sub_reload /path/foo.sub /path2/bar.sub
> 
> bar.sub will be used for subtitles instead of foo.sub.
> 
> Is that not the case?

    Your understanding is right. And therefore you need to know that bar.sub
is to substitute foo.sub and not other.sub.
    Just as a side note. MPlayer is capable of loading several subtitle files
at time (try to play movie.nut when movie.srt, movie.sub and movie.smi are in
the same directory,ad all of them will be loaded). The subtitles originating
from the same file are contained in a sub_data structure, which is referenced
by set_of_subtitles[].

> Diego
    Salvatore Falco




More information about the MPlayer-dev-eng mailing list