Can AVFoundation be coerced into playing a local .ts file?

前端 未结 2 1978
后悔当初
后悔当初 2021-02-02 01:58

Clearly, AVFoundation (and Quicktime X) can demux and play properly encoded .ts containers, because .ts containers underly HTTPS live streaming.

<
2条回答
  •  悲哀的现实
    2021-02-02 02:27

    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

提交回复
热议问题