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

Reply via email to