Modern Containers Flashcards
(17 cards)
MP4 files
An extensive container file
Does not define a strict structure and allows custom structure and hierarchy for each media type
Divided into media related data (audio/visual) and the metadata (timestamps, random access points)
Box names
Boxes within the mp4 generally have a four letter box name referred to as the FourCc (character code)
fytp
File type box
Parent standard for mp4 container
32 bytes:
-4 indicate size
-4 indicate fytp header
-4 indicate major brand (isom)
-4 indicate minor version
Compatible brands are an array of four-byte elements until end of fytp box
16 bytes remain in box size so we expect four compatible brands
free
Box type
Irrelevant, can be ignored
mdat
Media data box
There will be an mdat box for each media stream in file (video, audio, text)
moov
Movie box type
Provides metadata which applies to entire file
Several boxes nested within moov box:
mvhd - movie header
trak - track boxes
edts - box which contains elst (edit list boxes)
mvhd
Box that contains metadata
Creation time
Modification time
Timescale
Duration
Rate
Volume
Matrix
NexttrackID
trak
A box contained by the moov that represents a single track of a presentation (audio, visual, text)
Each track is independent from the other tracks
Contains media data (in mdia box) and packetizatioj info for hint tracks
tkhd
Trak header box
Placed within the trak box and there can only be one; contains the metadata that describes the characteristics of a single track
Track width and height
Each a 32-bit fixed-point number that specifies the width/height of a track in pixels
edts
Edit box
Defines portions of the media that are to be used to build a track for a movie
Contains elst box, contained in moov
elst
Edit list
Box that maps from time in a movie to a time in a media
32-bit values, grouped into entries containing three values each:
-track duration (4 bytes)
-media time (4 bytes)
-media rate (4 bytes)
Bit
Binary digit
0 or 1
Byte
8 binary digits (8 bits)
Nibble
Four binary digits (4 bits)
stsd
Box which contains info about how the multimedia stream is encoded (the codec)
Contained in the moov box
ISO/IEC
Intl organization of standards/intl electrotechnical commission
Standards for codecs and containers