public class Mp4TagReader
extends java.lang.Object
The metadata tags are usually held under the ilst atom as shown below
Valid Exceptions to the rule:
Can be no udta atom with meta rooted immediately under moov instead
Can be no udta/meta atom at all
|--- ftyp |--- moov |......| |......|----- mvdh |......|----- trak |......|----- udta |..............| |..............|-- meta |....................| |....................|-- hdlr |....................|-- ilst |.........................| |.........................|---- @nam (Optional for each metadatafield) |.........................|.......|-- data |.........................|....... ecetera |.........................|---- ---- (Optional for reverse dns field) |.................................|-- mean |.................................|-- name |.................................|-- data |.................................... ecetere | |--- mdat
Modifier and Type | Field and Description |
---|---|
static java.util.logging.Logger |
logger |
Constructor and Description |
---|
Mp4TagReader() |
Modifier and Type | Method and Description |
---|---|
private void |
createMp4Field(Mp4Tag tag,
Mp4BoxHeader header,
java.nio.ByteBuffer raw)
Process the field and add to the tag
Note:In the case of coverart MP4 holds all the coverart within individual dataitems all within
a single covr atom, we will add separate mp4field for each image.
|
Mp4Tag |
read(java.io.RandomAccessFile raf) |
public Mp4Tag read(java.io.RandomAccessFile raf) throws CannotReadException, java.io.IOException
CannotReadException
java.io.IOException
private void createMp4Field(Mp4Tag tag, Mp4BoxHeader header, java.nio.ByteBuffer raw) throws java.io.UnsupportedEncodingException
tag
- header
- raw
- java.io.UnsupportedEncodingException
Copyright © 2005-2013 java.net. All Rights Reserved.