Are you re-encoding? Because it’s TS, I’m guessing it’s muxed audio/video? If so, you can just stitch the underlying encoding inside the TS into a single TS container. This is much “simpler” (in terms of operations) and can be done as fast as you can download. Is there encryption?