[MPlayer-dev-eng] [PATCH] demux_ts additions
Nico
nsabbi at libero.it
Fri Aug 15 00:45:09 CEST 2003
Hi,
I added to the MPEG-TS demuxer the following:
1) support for PAT and PMT
2) a packet buffering mechanism to reduce the fregmentation of the ES
packets
3) initial support for MPEG-4 in TS (to interoperate with VLC)
The addition of PAT/PMT now permits to correctly identify AC3 in some
TS samples
that sooner didn't work (because the PES header is not as expected,
but the PMT announces the stream).
If there are tables in the stream mplayer will always try to play the
first program it finds
(previously it played the first audio and first video stream), unless
the user specifies
-tsprog <PROG>
If the user specifies -vid xor -aid mplayer will play the program
comprising the required stream,
in the case of -vid and -aid mplayer won't consider the program
association.
The packet buffering mechanism is the same as I posted in the previous
patch; generally I see an improved playback,
and no problem (at least not yet after so much use); it also shows that
some nice broadcaster shoots PES packets
with 512 KB video (use -v to verify).
To demux MPEG-4 content I used a pipeline to DEMUXER_TYPE_MPEG4_ES; it's
only at the very first stage,
and needs to be passed the fps via CLI, but it's working with all the
samples I generated with VLC
(XVID video plus MP2/3 and AC3 audio).
In the future I'd like to remove (if it's simple) this dependancy and
to make FAAD work (my usual problem).
In the code you will find some evident confusion regarding the check of
CRC32; I don't know how it works,
so the code is commented. Can someone explain, please?
Thanks,
Nico
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: demux_ts-20030814.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030815/6177b571/attachment.asc>
More information about the MPlayer-dev-eng
mailing list