[MPlayer-dev-eng] [PATCH] Make all subtitles availiable
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Mon Dec 18 16:12:27 CET 2006
Hello,
On Sun, Dec 10, 2006 at 07:54:17PM +0100, Lehel Bernadt wrote:
> On Sunday 10 December 2006 18:59, Reimar Döffinger wrote:
> > On Sun, Dec 10, 2006 at 06:37:41PM +0100, Nico Sabbi wrote:
> > > Reimar Döffinger wrote:
> > > >On Sun, Dec 10, 2006 at 05:43:14PM +0100, Nico Sabbi wrote:
> > > >>nothing else than aligning all demuxers and streams to map subtitles
> > > >>the same way, or -even better- adding a subtitles super-manager to
> > > >>hide subs ids and languages from demuxers and streams
> > > >
> > > >Well, why would that be needed assuming the values printed by -identify
> > > >are right? Or are they still actually some random numbers?
> > >
> > > they may not be random but surely they are mapped differently among
> > > streams and demuxers
> >
> > What I meant is identify gives something like this:
> > > subtitle ( sid ): 0 language: de
> > > ID_SUBTITLE_ID=0
> > > ID_SID_0_LANG=de
> > > subtitle ( sid ): 1 language: en
> > > ID_SUBTITLE_ID=1
> > > ID_SID_1_LANG=en
> >
> > Assuming they are correct, all we would have to do is set dvdsub_id
> > (which is exactly what -sid does) and in the worst case "restart" from
> > some earlier place in mplayer.c.
> > If that does not work, then -sid would not work as these messages
> > advertise and they should be removed or at least changed.
> > I really seriously need some broken DVDs to find out wtf. is going on
> > here.
>
> Ehmm... i think you misunderstand something. Right now, dvdsub_id is set
> from -sid. And this number is given to the dvd demuxer, as a subtitle stream
> id. The problem is, in the DVD spec, sid is not a subtitle stream id... it's
> an index into an array.
It's completely irrelevant how it works, my question was very, very
simple, is this output:
> ID_SID_0_LANG=de
always correct, yes or no?
If no, the simple patch is incomplete since it does not fix this issue.
If yes, setting dvdsub_id to the correct value should be trivial and
work the same way for mplayer and mencoder.
Greetings,
Reimar Döffinger
More information about the MPlayer-dev-eng
mailing list