mp4fragment is a tool that creates a fragmented MP4 file from a non-fragmented one.
Running the tool without any argument will print out a summary of the tool’s command line options and parameters.
The tool can also be used to re-fragement a file that’s already in fragmented-MP4 form. This can be useful if you need to fix certain defficiencies of a fragmented MP4 file, such as the lack of
tdft boxes in fragment headers, or if you need to change the timescale.
MP4 Fragmenter - Version 1.6.0 (Bento4 Version 18.104.22.168) (c) 2002-2015 Axiomatic Systems, LLC usage: mp4fragment [options] <input> <output> options are: --verbosity <n> sets the verbosity (details) level to <n> (between 0 and 3) --debug enable debugging information output --quiet don't print out notice messages --fragment-duration <milliseconds> (default = automatic) --timescale <n> (use 10000000 for Smooth Streaming compatibility) --track <track-id or type> only include media from one track (pass a track ID, 'audio', 'video' or 'subtitles') --index (re)create the segment index --trim trim excess media in longer tracks --no-tfdt don't add 'tfdt' boxes in the fragments (may be needed for legacy Smooth Streaming clients) --force-i-frame-sync <auto|all> treat all I-frames as sync samples (for open-gop sequences) 'auto' only forces the flag if an open-gop source is detected, 'all' forces the flag in all cases