TS stream analyser and remultiplexer