public class Mp4EsdsBox extends AbstractMp4Box
Modifier and Type | Class and Description |
---|---|
static class |
Mp4EsdsBox.AudioProfile
Audio profile, held in Section 5 this is usually type LOW_COMPLEXITY
|
static class |
Mp4EsdsBox.Kind
File type, held in Section 4 , only really expecting type 0x64 (AAC)
|
Modifier and Type | Field and Description |
---|---|
static int |
AVERAGE_BITRATE_LENGTH |
static int |
BUFFER_SIZE_LENGTH |
static int |
CHANNEL_FLAGS_LENGTH |
static int |
CONFIG_TYPE_LENGTH |
static int |
DESCRIPTOR_OBJECT_TYPE_LENGTH |
static int |
DESCRIPTOR_TYPE_LENGTH |
static int |
ES_ID_LENGTH |
static int |
MAX_BITRATE_LENGTH |
static int |
OBJECT_TYPE_LENGTH |
static int |
OTHER_FLAG_LENGTH |
static int |
STREAM_PRIORITY_LENGTH |
static int |
STREAM_TYPE_LENGTH |
static int |
VERSION_FLAG_LENGTH |
dataBuffer, header
Constructor and Description |
---|
Mp4EsdsBox(Mp4BoxHeader header,
ByteBuffer dataBuffer)
DataBuffer must start from from the start of the body
|
Modifier and Type | Method and Description |
---|---|
Mp4EsdsBox.AudioProfile |
getAudioProfile()
Get audio profile, usually AAC Low Complexity
|
int |
getAvgBitrate() |
Mp4EsdsBox.Kind |
getKind()
Only expext MPG_Audio,
TODO shouldnt matter if another type of audio, but something gone wrong if type of video
|
int |
getMaxBitrate() |
int |
getNumberOfChannels() |
int |
processSectionHeader(ByteBuffer dataBuffer)
Process header, skipping filler bytes and calculating size
|
getData, getHeader
public static final int VERSION_FLAG_LENGTH
public static final int OTHER_FLAG_LENGTH
public static final int DESCRIPTOR_TYPE_LENGTH
public static final int ES_ID_LENGTH
public static final int STREAM_PRIORITY_LENGTH
public static final int CONFIG_TYPE_LENGTH
public static final int OBJECT_TYPE_LENGTH
public static final int STREAM_TYPE_LENGTH
public static final int BUFFER_SIZE_LENGTH
public static final int MAX_BITRATE_LENGTH
public static final int AVERAGE_BITRATE_LENGTH
public static final int DESCRIPTOR_OBJECT_TYPE_LENGTH
public static final int CHANNEL_FLAGS_LENGTH
public Mp4EsdsBox(Mp4BoxHeader header, ByteBuffer dataBuffer)
header
- header infodataBuffer
- data of box (doesnt include header data)public int getNumberOfChannels()
public int getMaxBitrate()
public int getAvgBitrate()
public int processSectionHeader(ByteBuffer dataBuffer)
dataBuffer
- public Mp4EsdsBox.Kind getKind()
public Mp4EsdsBox.AudioProfile getAudioProfile()
Copyright © 2005–2020 jthink.net. All rights reserved.