mp42ts

mp42ts is a tools that converts an MP4 file to an MPEG2-TS file.

Running the tool without any argument will print out a summary of the tool’s command line options and parameters.

Usage

MP4 To MPEG2-TS File Converter - Version 1.2
(Bento4 Version 1.4.3.0)
(c) 2002-2014 Axiomatic Systems, LLC

usage: mp42ts [options] <input> <output>
Options:
  --pmt-pid <pid>   (default: 0x100)
  --audio-pid <pid> (default: 0x101)
  --video-pid <pid> (default: 0x102)
  --segment <segment-duration-in-seconds>
    [with this option, the <output> name must be a 'printf' template,
     like "seg-%d.ts"]
  --segment-duration-threshold in ms (default = 50)
    [only used with the --segment option]
  --verbose
  --playlist <filename>
  --playlist-hls-version <n> (default=3)