@UnstableApi
public abstract class Mp4Box

Known direct subclasses
Mp4Box.ContainerBox

An MP4 box that has child boxes.

Mp4Box.LeafBox

An MP4 box that is a leaf.


A representation of an MP4 box (aka atom).

Summary

Nested types

public final class Mp4Box.ContainerBox extends Mp4Box

An MP4 box that has child boxes.

public final class Mp4Box.LeafBox extends Mp4Box

An MP4 box that is a leaf.

Constants

static final int

Value for the size field in a box that defines its size in the largesize field.

static final int

Value for the size field in a box that extends to the end of the file.

static final int

Size of a full box header, in bytes.

static final int

Size of a box header, in bytes.

static final int

Size of a long box header, in bytes.

static final int
TYPE_H263 = 1211250227
static final int
TYPE_Opus = 1332770163
static final int
TYPE_TTML = 1414810956
static final int
TYPE__mp2 = 778924082
static final int
TYPE__mp3 = 778924083
static final int
TYPE_ac_3 = 1633889587
static final int
TYPE_ac_4 = 1633889588
static final int
TYPE_alac = 1634492771
static final int
TYPE_alaw = 1634492791
static final int
TYPE_av01 = 1635135537
static final int
TYPE_av1C = 1635135811
static final int
TYPE_avc1 = 1635148593
static final int
TYPE_avc3 = 1635148595
static final int
TYPE_avcC = 1635148611
static final int
TYPE_c608 = 1664495672
static final int
TYPE_camm = 1667329389
static final int
TYPE_clli = 1668050025
static final int
TYPE_co64 = 1668232756
static final int
TYPE_colr = 1668246642
static final int
TYPE_ctts = 1668576371
static final int
TYPE_d263 = 1681012275
static final int
TYPE_dOps = 1682927731
static final int
TYPE_dac3 = 1684103987
static final int
TYPE_dac4 = 1684103988
static final int
TYPE_data = 1684108385
static final int
TYPE_ddts = 1684305011
static final int
TYPE_dec3 = 1684366131
static final int
TYPE_dfLa = 1684425825
static final int
TYPE_dmlp = 1684892784
static final int
TYPE_dtsc = 1685353315
static final int
TYPE_dtse = 1685353317
static final int
TYPE_dtsh = 1685353320
static final int
TYPE_dtsl = 1685353324
static final int
TYPE_dtsx = 1685353336
static final int
TYPE_dva1 = 1685479729
static final int
TYPE_dvav = 1685479798
static final int
TYPE_dvcC = 1685480259
static final int
TYPE_dvh1 = 1685481521
static final int
TYPE_dvhe = 1685481573
static final int
TYPE_dvvC = 1685485123
static final int
TYPE_ec_3 = 1700998451
static final int
TYPE_edts = 1701082227
static final int
TYPE_edvd = 1701082724
static final int
TYPE_elst = 1701606260
static final int
TYPE_emsg = 1701671783
static final int
TYPE_enca = 1701733217
static final int
TYPE_encv = 1701733238
static final int
TYPE_esds = 1702061171
static final int
TYPE_eyes = 1702454643
static final int
TYPE_fLaC = 1716281667
static final int
TYPE_frma = 1718775137
static final int
TYPE_ftyp = 1718909296
static final int
TYPE_hdlr = 1751411826
static final int
TYPE_hev1 = 1751479857
static final int
TYPE_hvc1 = 1752589105
static final int
TYPE_hvcC = 1752589123
static final int
TYPE_iacb = 1767990114
static final int
TYPE_iamf = 1767992678
static final int
TYPE_ilst = 1768715124
static final int
TYPE_keys = 1801812339
static final int
TYPE_lhvC = 1818785347
static final int
TYPE_lpcm = 1819304813
static final int
TYPE_m1v_ = 1831958048
static final int
TYPE_mdat = 1835295092
static final int
TYPE_mdcv = 1835295606
static final int
TYPE_mdhd = 1835296868
static final int
TYPE_mdia = 1835297121
static final int
TYPE_mean = 1835360622
static final int
TYPE_mehd = 1835362404
static final int
TYPE_meta = 1835365473
static final int
TYPE_mett = 1835365492
static final int
TYPE_mha1 = 1835557169
static final int
TYPE_mhaC = 1835557187
static final int
TYPE_mhaP = 1835557200
static final int
TYPE_mhm1 = 1835560241
static final int
TYPE_minf = 1835626086
static final int
TYPE_mlpa = 1835823201
static final int
TYPE_moof = 1836019558
static final int
TYPE_moov = 1836019574
static final int
TYPE_mp4a = 1836069985
static final int
TYPE_mp4v = 1836070006
static final int
TYPE_mpvd = 1836086884
static final int
TYPE_mvex = 1836475768
static final int
TYPE_mvhd = 1836476516
static final int
TYPE_name = 1851878757
static final int
TYPE_pasp = 1885434736
static final int
TYPE_proj = 1886547818
static final int
TYPE_pssh = 1886614376
static final int
TYPE_s263 = 1932670515
static final int
TYPE_saio = 1935763823
static final int
TYPE_saiz = 1935763834
static final int
TYPE_samr = 1935764850
static final int
TYPE_saut = 1935766900
static final int
TYPE_sawb = 1935767394
static final int
TYPE_sbgp = 1935828848
static final int
TYPE_schi = 1935894633
static final int
TYPE_schm = 1935894637
static final int
TYPE_senc = 1936027235
static final int
TYPE_sgpd = 1936158820
static final int
TYPE_sidx = 1936286840
static final int
TYPE_sinf = 1936289382
static final int
TYPE_smta = 1936553057
static final int
TYPE_sowt = 1936684916
static final int
TYPE_srfr = 1936877170
static final int
TYPE_st3d = 1936995172
static final int
TYPE_stbl = 1937007212
static final int
TYPE_stco = 1937007471
static final int
TYPE_stpp = 1937010800
static final int
TYPE_stri = 1937011305
static final int
TYPE_stsc = 1937011555
static final int
TYPE_stsd = 1937011556
static final int
TYPE_stss = 1937011571
static final int
TYPE_stsz = 1937011578
static final int
TYPE_stts = 1937011827
static final int
TYPE_stz2 = 1937013298
static final int
TYPE_sv3d = 1937126244
static final int
TYPE_tenc = 1952804451
static final int
TYPE_tfdt = 1952867444
static final int
TYPE_tfhd = 1952868452
static final int
TYPE_tkhd = 1953196132
static final int
TYPE_traf = 1953653094
static final int
TYPE_trak = 1953653099
static final int
TYPE_trex = 1953654136
static final int
TYPE_trun = 1953658222
static final int
TYPE_twos = 1953984371
static final int
TYPE_tx3g = 1954034535
static final int
TYPE_udta = 1969517665
static final int
TYPE_udts = 1969517683
static final int
TYPE_ulaw = 1970037111
static final int
TYPE_uuid = 1970628964
static final int
TYPE_vexu = 1986361461
static final int
TYPE_vp08 = 1987063864
static final int
TYPE_vp09 = 1987063865
static final int
TYPE_vpcC = 1987076931
static final int
TYPE_wave = 2002876005
static final int
TYPE_wvtt = 2004251764
static final int
TYPE_xyz = -1451722374

Public fields

final int

Public methods

static String
getBoxTypeString(int type)

Converts a numeric box type to the corresponding four character string.

String

Constants

DEFINES_LARGE_SIZE

public static final int DEFINES_LARGE_SIZE = 1

Value for the size field in a box that defines its size in the largesize field.

EXTENDS_TO_END_SIZE

public static final int EXTENDS_TO_END_SIZE = 0

Value for the size field in a box that extends to the end of the file.

FULL_HEADER_SIZE

public static final int FULL_HEADER_SIZE = 12

Size of a full box header, in bytes.

HEADER_SIZE

public static final int HEADER_SIZE = 8

Size of a box header, in bytes.

LONG_HEADER_SIZE

public static final int LONG_HEADER_SIZE = 16

Size of a long box header, in bytes.

TYPE_H263

public static final int TYPE_H263 = 1211250227

TYPE_Opus

public static final int TYPE_Opus = 1332770163

TYPE_TTML

public static final int TYPE_TTML = 1414810956

TYPE__mp2

public static final int TYPE__mp2 = 778924082

TYPE__mp3

public static final int TYPE__mp3 = 778924083

TYPE_ac_3

public static final int TYPE_ac_3 = 1633889587

TYPE_ac_4

public static final int TYPE_ac_4 = 1633889588

TYPE_alac

public static final int TYPE_alac = 1634492771

TYPE_alaw

public static final int TYPE_alaw = 1634492791

TYPE_av01

public static final int TYPE_av01 = 1635135537

TYPE_av1C

public static final int TYPE_av1C = 1635135811

TYPE_avc1

public static final int TYPE_avc1 = 1635148593

TYPE_avc3

public static final int TYPE_avc3 = 1635148595

TYPE_avcC

public static final int TYPE_avcC = 1635148611

TYPE_c608

public static final int TYPE_c608 = 1664495672

TYPE_camm

public static final int TYPE_camm = 1667329389

TYPE_clli

public static final int TYPE_clli = 1668050025

TYPE_co64

public static final int TYPE_co64 = 1668232756

TYPE_colr

public static final int TYPE_colr = 1668246642

TYPE_ctts

public static final int TYPE_ctts = 1668576371

TYPE_d263

public static final int TYPE_d263 = 1681012275

TYPE_dOps

public static final int TYPE_dOps = 1682927731

TYPE_dac3

public static final int TYPE_dac3 = 1684103987

TYPE_dac4

public static final int TYPE_dac4 = 1684103988

TYPE_data

public static final int TYPE_data = 1684108385

TYPE_ddts

public static final int TYPE_ddts = 1684305011

TYPE_dec3

public static final int TYPE_dec3 = 1684366131

TYPE_dfLa

public static final int TYPE_dfLa = 1684425825

TYPE_dmlp

public static final int TYPE_dmlp = 1684892784

TYPE_dtsc

public static final int TYPE_dtsc = 1685353315

TYPE_dtse

public static final int TYPE_dtse = 1685353317

TYPE_dtsh

public static final int TYPE_dtsh = 1685353320

TYPE_dtsl

public static final int TYPE_dtsl = 1685353324

TYPE_dtsx

public static final int TYPE_dtsx = 1685353336

TYPE_dva1

public static final int TYPE_dva1 = 1685479729

TYPE_dvav

public static final int TYPE_dvav = 1685479798

TYPE_dvcC

public static final int TYPE_dvcC = 1685480259

TYPE_dvh1

public static final int TYPE_dvh1 = 1685481521

TYPE_dvhe

public static final int TYPE_dvhe = 1685481573

TYPE_dvvC

public static final int TYPE_dvvC = 1685485123

TYPE_ec_3

public static final int TYPE_ec_3 = 1700998451

TYPE_edts

public static final int TYPE_edts = 1701082227

TYPE_edvd

public static final int TYPE_edvd = 1701082724

TYPE_elst

public static final int TYPE_elst = 1701606260

TYPE_emsg

public static final int TYPE_emsg = 1701671783

TYPE_enca

public static final int TYPE_enca = 1701733217

TYPE_encv

public static final int TYPE_encv = 1701733238

TYPE_esds

public static final int TYPE_esds = 1702061171

TYPE_eyes

public static final int TYPE_eyes = 1702454643

TYPE_fLaC

public static final int TYPE_fLaC = 1716281667

TYPE_frma

public static final int TYPE_frma = 1718775137

TYPE_ftyp

public static final int TYPE_ftyp = 1718909296

TYPE_hdlr

public static final int TYPE_hdlr = 1751411826

TYPE_hev1

public static final int TYPE_hev1 = 1751479857

TYPE_hvc1

public static final int TYPE_hvc1 = 1752589105

TYPE_hvcC

public static final int TYPE_hvcC = 1752589123

TYPE_iacb

public static final int TYPE_iacb = 1767990114

TYPE_iamf

public static final int TYPE_iamf = 1767992678

TYPE_ilst

public static final int TYPE_ilst = 1768715124

TYPE_keys

public static final int TYPE_keys = 1801812339

TYPE_lhvC

public static final int TYPE_lhvC = 1818785347

TYPE_lpcm

public static final int TYPE_lpcm = 1819304813

TYPE_m1v_

public static final int TYPE_m1v_ = 1831958048

TYPE_mdat

public static final int TYPE_mdat = 1835295092

TYPE_mdcv

public static final int TYPE_mdcv = 1835295606

TYPE_mdhd

public static final int TYPE_mdhd = 1835296868

TYPE_mdia

public static final int TYPE_mdia = 1835297121

TYPE_mean

public static final int TYPE_mean = 1835360622

TYPE_mehd

public static final int TYPE_mehd = 1835362404

TYPE_meta

public static final int TYPE_meta = 1835365473

TYPE_mett

public static final int TYPE_mett = 1835365492

TYPE_mha1

public static final int TYPE_mha1 = 1835557169

TYPE_mhaC

public static final int TYPE_mhaC = 1835557187

TYPE_mhaP

public static final int TYPE_mhaP = 1835557200

TYPE_mhm1

public static final int TYPE_mhm1 = 1835560241

TYPE_minf

public static final int TYPE_minf = 1835626086

TYPE_mlpa

public static final int TYPE_mlpa = 1835823201

TYPE_moof

public static final int TYPE_moof = 1836019558

TYPE_moov

public static final int TYPE_moov = 1836019574

TYPE_mp4a

public static final int TYPE_mp4a = 1836069985

TYPE_mp4v

public static final int TYPE_mp4v = 1836070006

TYPE_mpvd

public static final int TYPE_mpvd = 1836086884

TYPE_mvex

public static final int TYPE_mvex = 1836475768

TYPE_mvhd

public static final int TYPE_mvhd = 1836476516

TYPE_name

public static final int TYPE_name = 1851878757

TYPE_pasp

public static final int TYPE_pasp = 1885434736

TYPE_proj

public static final int TYPE_proj = 1886547818

TYPE_pssh

public static final int TYPE_pssh = 1886614376

TYPE_s263

public static final int TYPE_s263 = 1932670515

TYPE_saio

public static final int TYPE_saio = 1935763823

TYPE_saiz

public static final int TYPE_saiz = 1935763834

TYPE_samr

public static final int TYPE_samr = 1935764850

TYPE_saut

public static final int TYPE_saut = 1935766900

TYPE_sawb

public static final int TYPE_sawb = 1935767394

TYPE_sbgp

public static final int TYPE_sbgp = 1935828848

TYPE_schi

public static final int TYPE_schi = 1935894633

TYPE_schm

public static final int TYPE_schm = 1935894637

TYPE_senc

public static final int TYPE_senc = 1936027235

TYPE_sgpd

public static final int TYPE_sgpd = 1936158820

TYPE_sidx

public static final int TYPE_sidx = 1936286840

TYPE_sinf

public static final int TYPE_sinf = 1936289382

TYPE_smta

public static final int TYPE_smta = 1936553057

TYPE_sowt

public static final int TYPE_sowt = 1936684916

TYPE_srfr

public static final int TYPE_srfr = 1936877170

TYPE_st3d

public static final int TYPE_st3d = 1936995172

TYPE_stbl

public static final int TYPE_stbl = 1937007212

TYPE_stco

public static final int TYPE_stco = 1937007471

TYPE_stpp

public static final int TYPE_stpp = 1937010800

TYPE_stri

public static final int TYPE_stri = 1937011305

TYPE_stsc

public static final int TYPE_stsc = 1937011555

TYPE_stsd

public static final int TYPE_stsd = 1937011556

TYPE_stss

public static final int TYPE_stss = 1937011571

TYPE_stsz

public static final int TYPE_stsz = 1937011578

TYPE_stts

public static final int TYPE_stts = 1937011827

TYPE_stz2

public static final int TYPE_stz2 = 1937013298

TYPE_sv3d

public static final int TYPE_sv3d = 1937126244

TYPE_tenc

public static final int TYPE_tenc = 1952804451

TYPE_tfdt

public static final int TYPE_tfdt = 1952867444

TYPE_tfhd

public static final int TYPE_tfhd = 1952868452

TYPE_tkhd

public static final int TYPE_tkhd = 1953196132

TYPE_traf

public static final int TYPE_traf = 1953653094

TYPE_trak

public static final int TYPE_trak = 1953653099

TYPE_trex

public static final int TYPE_trex = 1953654136

TYPE_trun

public static final int TYPE_trun = 1953658222

TYPE_twos

public static final int TYPE_twos = 1953984371

TYPE_tx3g

public static final int TYPE_tx3g = 1954034535

TYPE_udta

public static final int TYPE_udta = 1969517665

TYPE_udts

public static final int TYPE_udts = 1969517683

TYPE_ulaw

public static final int TYPE_ulaw = 1970037111

TYPE_uuid

public static final int TYPE_uuid = 1970628964

TYPE_vexu

public static final int TYPE_vexu = 1986361461

TYPE_vp08

public static final int TYPE_vp08 = 1987063864

TYPE_vp09

public static final int TYPE_vp09 = 1987063865

TYPE_vpcC

public static final int TYPE_vpcC = 1987076931

TYPE_wave

public static final int TYPE_wave = 2002876005

TYPE_wvtt

public static final int TYPE_wvtt = 2004251764

TYPE_xyz

public static final int TYPE_xyz = -1451722374

Public fields

type

public final int type

Public methods

getBoxTypeString

public static String getBoxTypeString(int type)

Converts a numeric box type to the corresponding four character string.

Parameters
int type

The numeric box type.

Returns
String

The corresponding four character string.

toString

public String toString()