Ios – How to convert (re-wrap) Transport Stream to MPEG-4 container in iOS app

ffmpegiosstreaming

I have a live stream in .ts format, containing AAC audio and H.264 video. I want to play it on iOS devices. I tried to use a movie player based on FFmpeg to decode and play video, but the audio was lagging.

Can I rewrap this Transport Stream to an MPEG-4 container to play on iOS devices – without converting it server-side?

The server returns me a URL of the .ts live stream and my goal is to play this stream on iOS devices without an .m3u8 playlist because I can't get it from the server.

Best Answer

To just re-mux without transcoding you can use: ffmpeg -i input.ts -acodec copy -vcodec copy out.mp4

Related Topic