[vdr] Trying to understand MPEG-TS (PMT, PES etc)

Chris Rankin rankincj at yahoo.com
Tue Aug 23 14:59:37 CEST 2011


I am digging into DVB streams and TS demuxing, and I was wondering: is the PMT the *only* (reasonable) way to determine which codec a given PES is using, please?

The TS demuxing code that I am reading (*cough* xine's) seems to have the idea that if it receives an audio or video PES with a PID that it hasn't seen before then it can "autodetect" the stream (somehow?!). But if it has to wait for the next PMT anyway to determine which codec to use then I'm not sure that I understand the point.

Can anyone advise, please? My research into MPEG-TS has only revealed the following, with regards to PMTs:

"Each elementary stream is labeled with a stream_type value."



More information about the vdr mailing list