Systems and methods for stream format conversion. A stream format
conversion system converts data from a TS format to a PS format by
selecting TS packets according to PID, filtering out TS headers and PES
headers to obtain ES format data, and inserting PES and PS headers into
the ES format data to generate PS packets.