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.


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

usage: mp42ts [options] <input> <output>
  --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]
  --playlist <filename>
  --playlist-hls-version <n> (default=3)