[MPlayer-dev-eng] MP-G2 - new mpeg demuxer

Nico nsabbi at libero.it
Tue Apr 15 22:38:35 CEST 2003


----- Original Message -----
From: "Arpi" <arpi at thot.banki.hu>
To: <mplayer-dev-eng at mplayerhq.hu>
Sent: Tuesday, April 15, 2003 9:28 PM
Subject: Re: [MPlayer-dev-eng] MP-G2 - new mpeg demuxer


> Hi,
>
> > > Btw, did you know that the payload size field of the PES header is
always
> > > zero in TS streams?
> > >
> >
> > As far as I know it can be zero for video streams only, but I may be
> > wrong (I read a faq about it). Effectively the actual code never uses
> > that field.
> your code... i've implemented it but then found that it results dropped
> packages so i removed that part.

can you  explain some more, please? I don't undestand what happens and
where's the bug.

> anyway it has some sence to allow zero for video only, as there is another
> demuxing layer (ES demuxer) which will drop junk data. but for audio it's
> more problematic.
>
> > I ask it because one of the problems of demux_ts (mplayer) is that if
> > you want to seek precisely you have to know the bitrates of all streams
> > present, otherwise you can only make a very rough guesstimate.
> > In TS there can be more VS, so this problems may exacerbate.
> you can count bitrate in mplayer too, whenever you register a new stream
> (allocate ts stream struct) you can add teh bitrate of the given stream to
> the summarized total bitrate field of demuxer's priv struct.
> maybe you need a 2-pass thing if you don't know teh bitrate imemdiately,
so
> first you flag that it's a new stream, and when bitrate is available and
> this flag set, then add it to the totals.
>
> > If it's possible  to collect bitrate statistics about all streams
> > present the problem is theoretically solved, right?
>
> yes, but demuxers shouldn't do such things imho

I agree, your seeking function in demux_mpg is so well made and generalized
that I thought  I could use for demux_ts, but it hangs.
I will retry later.

>
>
> A'rpi / Astral & ESP-team
>
> --
> Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu
>
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng



More information about the MPlayer-dev-eng mailing list