Maven module :un.storage : media-mpeg4 :
Class :
un.storage.media.mp4.MP4Store
Extends/Implements :
un.api.media.AbstractMediaStore
Subclasses : -
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 ()
container and gives access to the containing data.
The data source can be either an
InputStreamor aRandomAccessFile. Since the specification does not decree aspecific 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
InputSteamwill cause an exception.Thus, whenever possible, a
RandomAccessFileshould be used forlocal files. Parsing from an
InputStreamis useful when readingfrom a network stream.
Each
MP4Containercan return the used file brand (file formatversion). Optionally, the following data may be present:
delay, see {@link #getDownloadInformationPairs() getDownloadInformationPairs()}
MovieAdditionally it gives access to the underlying MP4 boxes, that can be
retrieved by
getBoxes(). However, it is not recommended toaccess the boxes directly.
@author Alexander Simm
@author Johann Sorel