TS-Packet-Extractor Function whose purpose is to extract the information of PAT and PMT tables from a TS (Transport Stream) file.