[MPlayer-dev-eng] [PATCH] demux_ts fixes

Nico nsabbi at libero.it
Thu Jun 5 21:49:09 CEST 2003


Hi,

I fixed the following in demux_ts:

- open new_ds_[audio | video] only when the relative streams are really 
available
- consequently, -nosound now works
- simplified the feeding (to ds_) function
- eliminated the previous buffering of ES data (so it should be a little 
faster)
- discard junk ES data after payload_size for the current pes packet is 
0 (Arpi, is it the problem that you were complaining about when you 
wrote that the decoder was dropping packets?)
- reduced the probe buffer
- better support for audio only TS (DAB seems to have many fans)

- in  pes_parse2 there are  some unused variables that I could need in 
the future; please don't remove them

Now a couple of questions:
-in PES packets there's a ESCR field that indicates the ES clock; I 
wonder if calculating the relative ES pts considering this field
might be more precise than the PTS alone;

- in TS there are adaption fields containing the Program Clock Reference 
(for a given program); each of them can be used for calculating the 
*real* bitrate of a particolar "program stream", rather than the broken 
one indicated by the decoder (what is really 3.7 Mbps is often indicated 
as 10 or 15); this mechanism might be used for seeking more accurately, 
especially considering that in TS there are often many Video streams.

Opinions?

Thanks,
        Nico



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: demux_ts.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030605/99509b09/attachment.asc>


More information about the MPlayer-dev-eng mailing list