Hi,
thanks for ur reply. I have gone thru Mpeg2 spec.I have modified
the mpeg2dec.c of libmpeg2 in such a way that,it takes input(.ts) on a udp
port . I am using VLC to stream a already existing transport stream(recorded
one) to the port on which the mpeg2dec.c is listening.
I am using a single program transport stream
,so i am directly trying to parse the PAT,by searching the table id 0X02
and then i am trying to find the audio,video and the other PIDS. The problem
what i am facing is that the packet which actually contains the table id
0X02 is arrving very late on the udp port and also can i directly parse for
the table id 0X02 when its a single program transport stream?
regards
anand.
On 4/10/07, Burkhard Plaum <[EMAIL PROTECTED]> wrote:
Hi,
> Can anyone suugest a easy way of getting the pids of
video,audio
> and other PES from the stream.
Parse the PAT- and PMT-packets of the transport stream. The PAT contains
informations about the programs contained in the TS. For each program,
parse the PMT, it contains informations about the elementary streams.
Some streams (e.g. the ones recorded with the Linux DVB utils) have
neither PAT nor PMT. In this case you'll need to parse lots of transport
packets at the beginning and check for the payload-unit-start indicator.
For each transport packet with the payload-unit-start bit set, you can
assume, that the payload starts with the beginning of a PES header.
Then, by parsing the PES header, you can guess what stream type it is.
Burkhard
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libmpeg2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmpeg2-devel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Libmpeg2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmpeg2-devel