How to play .mts file in iOS

I am currently working with a Wi-Fi camera device that can only send .mts video . As I researched in google, this leads to the conclusion that it is not possible to play video on the iPhone or use Objective C.

Now my problem is that there is,

There are many more paid apps that let us play .mts files

PlayerXtreme is able to run files in almost any video format. It has currently the following formats covered:

3gp, asf, avi, divx, dv, dat, flv, gxf, m2p, m2ts, m2v, m4v, mkv, moov, mov, mp4, mpeg, mpeg1, mpeg2, mpeg4, mpg, mpv, mt2s, mts, mxf, ogm, ogv, ps, qt, rm, rmvb, ts, vob, webm, wm, wmv

See appendix: the iTunes application

Player i m curently trying AVPlayer lib

How can I start coding to do this in my application?

I am currently trying to solve by adding some python scripts to my project as an assembly ... and naming the same for conversion to mp4 format. Has anyone worked on py-ObjC Together in Xcode PLS, give some insight ..

+4
source share
1 answer

MTS is a container format. You need to know what video and audio codecs are and see if these video codecs support VideoToolbox and AudioToolbox (the basic framework of AVPlayer).

Assuming H264 for video and AAC or AC3 for audio, libavcodec (part of ffmpeg) supports the MTS container. You can use this to demonstrate video and audio streams, and then use VTDecompressionSessionand AudioQueueNewOutput(I think I did not use this API at the time).

+4

Source: https://habr.com/ru/post/1674956/


All Articles