org.jaudiotagger.audio.mp4
Class Mp4TagReader
java.lang.Object
org.jaudiotagger.audio.mp4.Mp4TagReader
public class Mp4TagReader
- extends java.lang.Object
Reads metadata from mp4,
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
Field Summary |
static java.util.logging.Logger |
logger
|
Method Summary |
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 seperate mp4field for each image. |
Mp4Tag |
read(java.io.RandomAccessFile raf)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public static java.util.logging.Logger logger
Mp4TagReader
public Mp4TagReader()
read
public Mp4Tag read(java.io.RandomAccessFile raf)
throws CannotReadException,
java.io.IOException
- Throws:
CannotReadException
java.io.IOException
createMp4Field
private void createMp4Field(Mp4Tag tag,
Mp4BoxHeader header,
java.nio.ByteBuffer raw)
throws java.io.UnsupportedEncodingException
- 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 seperate mp4field for each image.
- Parameters:
tag
- header
- raw
-
- Throws:
java.io.UnsupportedEncodingException