Clearly, AVFoundation (and Quicktime X) can demux and play properly encoded .ts
containers, because .ts
containers underly HTTPS live streaming.
This problem was annoying for us too for a long time. We have finally decided to write a tool to convert a list of ts to an mp4 file. It consists in using TSDemux to demux and concatenate videos/audios and then generate a mp4 file with GPAC.
It does really answer your question, but it may be a way to do what you want to do. This tool is on Github, feel free to try: https://github.com/Keemotion/TS2MP4