[Live-devel] MPEG2TransportStreamIndexer with H264

Christopher Schatton christopher.schatton at gmail.com
Mon Jun 7 23:48:20 PDT 2010


Hi,

I'm new in this group so: hi everyone.

I'm working on a indexer that will support H.264-in-MPEG-Transport-Stream
files. MPEG2IndexFromTransportStream code is clear but i have question:

MPEG2IndexFromTransportStream.cpp, line 220

  if (payload_unit_start_indicator) {
    // Note: The following works only for MPEG-2 data #####
    u_int8_t PES_header_data_length = fInputBuffer[totalHeaderSize+8];
    //fprintf(stderr, "PES_header_data_length: %d\n",
PES_header_data_length);//#####
    totalHeaderSize += 9 + PES_header_data_length;

Question about this '9': Why this is working only with MPEG2 data? This '9'
is specific for video coded with mpeg2? This '9' is a header length?

Thanks for help.

Best regards,
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20100608/ed100cf8/attachment.html>


More information about the live-devel mailing list