Patent ID: 7065213

Claim:
A apparatus for making a transport stream with a predetermined maximum bit rate, the apparatus comprising: a port adapted to receive an input transport stream having a plurality of PID streams included therein, wherein each PID stream comprise a plurality of packets having a common PID value; a storage device in communication with the port, the storage device adapted to store packets and a plurality of keys; means for determining whether to decrypt a first at least one PID stream of the plurality of received PID streams; means for decrypting the first at least one PID stream; means for determining whether to statistically multiplex a second at least one PID stream of the plurality of received PID streams; means for statistically multiplexing the second at least one PID stream, wherein the bit rate of the second at least one PID stream does not exceed the predetermined maximum bit rate; means for determining whether to encrypt a third at least one PID stream of the plurality of received PID streams; means for encrypting the third at least one PID stream; and means for transmitting a fourth at least one PID stream of the plurality of received PID streams downstream.