I want to convert a .mp4 file into a .ts file programmatically. I searched and found out that I can use ffmpeg library for that, which I have never used before.
I have also successfully imported this library to my project, but I am not able to figure out how I can convert .mp4 file into .ts. I looked it over and I found commands like:
ffmpeg -i file.mp4 -acodec libfaac -vcodec libx264 -an -map 0 -f segment -segment_time 10 -segment_list test.m3u8 -segment_format mpegts -vbsf h264_mp4toannexb -flags -global_header stream%05d.ts
But how can I use this in my iOS project? Any help is appreciated.