Skip to content

mp4box other opts

jeanlf edited this page Jul 24, 2019 · 5 revisions

HOME » MP4Box » Other Features

Hinting Options

IsoMedia hinting consists in creating special tracks in the file that contain transport protocol specific information and optionally multiplexing information. These tracks are then used by the server to create the actual packets being sent over the network, in other words they provide the server with hints on how to build packets, hence their names hint tracks.
MP4Box supports creation of hint tracks for RTSP servers supporting these such as QuickTime Streaming Server, DarwinStreaming Server or 3GPP-compliant RTSP servers.
Note: GPAC streaming tools rtp output and rtsp server do not use hint tracks, they use on-the-fly packetization from any media sources, not just MP4

Options:
-hint: hint the file for RTP/RTSP
-hint (int, default: 1450): specify RTP MTU (max size) in bytes (this includes 12 bytes RTP header)
-copy: copy media data to hint track rather than reference (speeds up server but takes much more space)
-multi [maxptime] (int): enable frame concatenation in RTP packets if possible (with max duration 100 ms or maxptime ms if given)
-rate (int, default: 90000): specify rtp rate in Hz when no default for payload
-mpeg4: force MPEG-4 generic payload whenever possible
-latm: force MPG4-LATM transport for AAC streams
-static: enable static RTP payload IDs whenever possible (by default, dynamic payloads are always used)
-add-sdp (string): add given SDP string to hint track (tkID:string) or movie (string)
-unhint: remove all hinting information from file
-group-single: put all tracks in a single hint group
-ocr: force all MPEG-4 streams to be synchronized (MPEG-4 Systems only)
-rap: signal random access points in RTP packets (MPEG-4 Systems)
-ts: signal AU Time Stamps in RTP packets (MPEG-4 Systems)
-size: signal AU size in RTP packets (MPEG-4 Systems)
-idx: signal AU sequence numbers in RTP packets (MPEG-4 Systems)
-iod: prevent systems tracks embedding in IOD (MPEG-4 Systems), not compatible with -isma

ATSC 3.0 Grabber Options

MP4Box can be used to grab files from an ATSC 3.0 ROUTE session and records them to disk.

Note: On OSX with VM packet replay you will need to force mcast routing
Example

route add -net 239.255.1.4/32 -interface vboxnet0

Options
-atsc: enable ATSC 3.0 reader
-ifce (string): IP address of network interface to use
-dir (string): local filesystem path to which the files are written. If not set, nothing is written to disk
-service (int): ID of the service to grab

  • not set or -1: all services are dumped
  • 0: no services are dumped
  • -2: the first service found is used
  • positive: tunes to given service ID

-nb-segs (int, default: -1): set max segments to keep on disk per stream, -1 keeps all
-atsc-stats (int): print stats every N seconds

Clone this wiki locally
You can’t perform that action at this time.