Latest 0.2.1
Homepage https://github.com/Keemotion/TS2MP4
License GPLv2
Platforms ios 7.0, requires ARC
Dependencies GPAC4iOS
Authors , , ,

Version
Platform

TS2MP4 converts a set of TS files to a MP4 file.

How it works

The conversion of a TS file into a MP4 file is done in two steps.

  1. The first step is the demuxing of the TS files. It consist of extracting the audio and the video elementary streams of the TS files and saving them into two distinct files on the disk. (using a modified version of tsdemux 1.52 )
  2. The second step is the muxing of the two elementary streams. It consist of assemble the two elementary streams into one MP4 file. (using the libgpac library as external lib, which is distributed as a GPAC4iOS Pod)

The concatenation of multiple TS files into a single MP4 file follow the same steps but the elementary streams are concatenated.

The C and C++ library are wrapped by an Objective-C interface KMMedia.

Usage

To run the example project: clone the repo, and launch the TS2MP4 project and run the TS2MP4Demo target. You have to manually put some TS files into the ressources directory of the App to be able to test it.

Installation

TS2MP4 is available through CocoaPods, to install it simply add the following line to your Podfile:

pod "TS2MP4"

Authors

  • Jonathan Gailliez, Keemotion s.a.
  • Damien Leroy, Keemotion s.a.
  • Anton Burdinuk (parts of TSDemux in /Classes/TSDemux)
  • GPAC (parts of MP4Box in /Classes/MP4Mux)

License

  • TS2MP4 is distributed under the GPLv2 license. See the LICENSE file for more info.
  • TSDemux (parts in /Classes/TSDemux) is distributed under the GPLv2 license.
  • GPAC (parts in /Classes/MP4Mux) is distributed under the LGPLv2 license.

Latest podspec

{
    "name": "TS2MP4",
    "version": "0.2.1",
    "summary": "TS2MP4 allow you to convert TS files to MP4 files.",
    "homepage": "https://github.com/Keemotion/TS2MP4",
    "description": "          TS2MP4 allow you to convert TS files into MP4 files. It can also concatenate multiple TS files into a single MP4 file.n          The conversion of a TS file into a MP4 file is done in two steps.nn          The first step is the demuxing of the TS files. It consist of extracting the audio and the video elementary streams of the TS files and saving them into two distinct files on the disk.nn          The second step is the muxing of the two elementary streams. It consist of assemble the two elementary streams into one MP4 file.nn          The concatenation of multiple TS files into a single MP4 file follow the same steps but the elementary streams are concatenated.nn          The demuxing step is achieve by using a modified version of tsdemux 1.52 (http://code.google.com/p/tsdemuxer/downloads/list)nn          The muxing step rely on the libgpac library (http://gpac.wp.mines-telecom.fr/) distributed as a Pod (GPAC4iOS)n",
    "license": "GPLv2",
    "authors": [
        "Jonathan Gailliez",
        "Damien Leroy",
        "Anton Burdinuk",
        "GPAC"
    ],
    "source": {
        "git": "https://github.com/Keemotion/TS2MP4.git",
        "tag": "0.2.1"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "dependencies": {
        "GPAC4iOS": [
            "0.2.1"
        ]
    },
    "libraries": [
        "z",
        "stdc++"
    ],
    "source_files": "Classes/**/*.{h,m,mm,cpp,c}",
    "prefix_header_file": "Project/TS2MP4/TS2MP4-Prefix.pch",
    "xcconfig": {
        "CLANG_ENABLE_MODULES": "NO"
    }
}

Pin It on Pinterest

Share This