Patent ID: 7983417

Claim:
A method for dynamically allocating identifier values to a secondary stream depending upon a primary stream in a multi-encrypted transport stream, wherein the identifier values fall within a range of values, the method comprising the steps of: receiving a primary encrypted stream at a processor, wherein the primary encrypted stream comprises primary encrypted packets; discovering an identifier value for each primary encrypted packet; storing a bit value corresponding to each discovered identifier value in an allocated table; based on each discovered identifier value in the allocated table, assigning an available identifier value to each secondary encrypted packet comprised in a secondary encrypted stream, wherein the available identifier value is chosen from an available table; mapping the assigned identifier value in accordance with the bit value to one of a program association table (PAT) and a program map table (PMT), wherein the PAT and PMT are transmitted along with the multi-encrypted transport stream; continuously monitoring the identifier values of the primary encrypted stream; resetting the bit value in the allocated table when a monitored identifier value is changed in an updated primary encrypted stream; determining a reset bit value conflicts with an assigned identifier of the secondary encrypted stream; and changing the assigned identifier of the secondary stream to an updated assigned identifier value taken from the available table to provide an updated secondary encrypted stream.