Maven module :un.storage : media-mpeg4 :
Class : un.storage.media.mp4.MP4Store
Extends/Implements : un.api.media.AbstractMediaStore
Subclasses : -

The MP4Store is the central class for the MP4 demultiplexer. It reads the
container and gives access to the containing data.

The data source can be either an InputStream or a
RandomAccessFile. Since the specification does not decree a
specific order of the content, the data needed for parsing (the sample
tables) may be at the end of the stream. In this case, random access is
needed and reading from an InputSteam will cause an exception.
Thus, whenever possible, a RandomAccessFile should be used for
local files. Parsing from an InputStream is useful when reading
from a network stream.

Each MP4Container can return the used file brand (file format
version). Optionally, the following data may be present:


Additionally it gives access to the underlying MP4 boxes, that can be
retrieved by getBoxes(). However, it is not recommended to
access the boxes directly.

@author Alexander Simm
@author Johann Sorel


Variables : -
Functions : MP4Store, getStreamsMeta, createReader, createWriter, getMajorBrand, getMinorBrand, getCompatibleBrands, getMovie, getBoxes



public void MP4Store (Path input)

public MediaStreamMeta[] getStreamsMeta ()

public MediaReadStream createReader (MediaReadParameters params)

public MediaWriteStream createWriter (MediaWriteParameters params)

public Brand getMajorBrand ()

public Brand getMinorBrand ()

public Brand[] getCompatibleBrands ()



public Movie getMovie ()

public List getBoxes ()