A transport stream is a multiplex of several program streams that are carried in packets. Demultiplexing is achieved by different packet IDs (PIDs).