Skip to content

mp4box dump opts

jeanlf edited this page Dec 9, 2019 · 9 revisions

HOME » MP4Box » Media Dump and Export

Extracting Options

MP4Box can be used to extract media tracks from MP4 files. If you need to convert these tracks however, please check the filters doc.

Options:
-raw (string): extract given track in raw format when supported. Use tkID:output=FileName to set output file name
-raws (string): extract each sample of the given track to a file. Use tkID:Nto extract the Nth sample
-nhnt (int): extract given track to NHNT format
-nhml (string): extract given track to NHML format. Use tkID:full for full NHML dump
-webvtt-raw (string): extract given track as raw media in WebVTT as metadata. Use tkID:embedded to include media data in the WebVTT file
-single (int): extract given track to a new mp4 file
-six (int): extract given track as raw media in experimental XML streaming instructions
-avi (int): extract given track to an avi file
-avi (int): same as -raw but defaults to QCP file for EVRC/SMV
-aviraw (string, values: video|audio): extract AVI track in raw format; parameter can be video, audioor audioN
-saf: remux file to SAF multiplex
-dvbhdemux: demux DVB-H file into IP Datagrams sent on the network
-raw-layer (int): same as -raw but skips SVC/MVC/LHVC extractors when extracting
-diod: extract file IOD in raw format

File Dumping

MP4Box has many dump functionalities, from simple track listing to more complete reporting of special tracks.

Options:
-stdb: dump/write to stdout and assume stdout is opened in binary mode
-stdb: dump/write to stdout and try to reopen stdout in binary mode
-tracks: print the number of tracks on stdout
-info (string): print movie info (no parameter) or track info with specified ID
-infon (string): print track info for given track number, 1 being the first track in the file
-diso: dump IsoMedia file boxes in XML output
-dxml: dump IsoMedia file boxes and known track samples in XML output
-bt: dump scene to BT format
-xmt: dump scene to XMT format
-wrl: dump scene to VRML format
-x3d: dump scene to X3D XML format
-x3dc: dump scene to X3D VRML format
-lsr: dump scene to LASeR XML (XSR) format
-drtp: dump rtp hint samples structure to XML output
-dts: print sample timing, size and position in file to text output
-dtsx: same as -dts but does not print offset
-dtsc: same as -dts but analyse each sample for duplicated dts/cts (slow !)
-dtsxc: same as -dtsc but does not print offset (slow !)
-dnal (int): print NAL sample info of given track
-dnalc (int): print NAL sample info of given track, adding CRC for each nal
-sdp: dump SDP description of hinted file
-dsap (int): dump DASH SAP cues (see -cues) for a given track
-dsaps (int): same as -dsap but only print sample number
-dsapc (int): same as -dsap but only print CTS
-dsapd (int): same as -dsap but only print DTS, -dsapp to only print presentation time
-dsapp (int): same as -dsap but only print presentation time
-dcr: dump ISMACryp samples structure to XML output
-dump-cover: extract cover art
-dump-chap: extract chapter file
-dump-chap-ogg: extract chapter file as OGG format
-dump-udta [tkID:]4cc (string): extract udta for the given 4CC. If tkID is given, dumps from UDTA of the given track ID, otherwise moov is used
-mergevtt: merge vtt cues while dumping
-ttxt (int): convert input subtitle to GPAC TTXT format if no parameter. Otherwise, dump given text track to GPAC TTXT format
-srt: convert input subtitle to SRT format if no parameter. Otherwise, dump given text track to SRT format
-rip-mpd: download manifest and segments of an MPD. Does not work with live sessions
-stat: generate node/field statistics for scene
-stats: generate node/field statistics per Access Unit
-statx: generate node/field statistics for scene after each AU
-hash: generate SHA-1 Hash of the input file
-comp (string): replace with compressed version all top level box types given as parameter, formated as orig_4cc_1=comp_4cc_1[,orig_4cc_2=comp_4cc_2]
-bin: convert input XML file using NHML bitstream syntax to binary
-topcount (string): print to stdout the number of top-level boxes matching box types given as parameter, formated as 4cc_1,4cc_2N
-topsize (string): print to stdout the number of bytes of top-level boxes matching types given as parameter, formated as 4cc_1,4cc_2N

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