<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">As you've discovered, our Transport Stream multiplexing code ("MPEG2TransportStreamMultiplexor.cpp") was intended primarily for creating a single-program Transport Stream (because this is primarily a 'streaming media' library, and a single-program Transport Stream is the kind that most people will want to stream).  At first glance, I'm not sure what would be involved in making this support the creation of multi-program Transport Streams, but the changes might end up not being significant.  As always, people are welcome to look into this code and suggest changes.<div><br></div><div>In any case, the "setProgramStreamMap()" function is probably a 'red herring', because that function is used to *read* information from a 'Program Map Table that happens to be in the input data; it's not used to *write* a Program Map Table.  For that, the function "deliverPMTPacket()" is used.<br></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>