MP4DMXMpoMp4VideoTrackInf

Syntax

#include <cafe/mp4dmx.h>

///Video Track Information Structure
typedef struct{
    ///Video track size
    s32     size;
    ///Image Width[pixel]
    s32     width;
    ///Image Height[pixel]
    s32     height;
    ///Maximum bit rate[bps]
    s32     maxbitrate;
    ///Average bit rate[bps]
    s32     avgbitrate;
    ///Media type of video
    s32     mediatype;
    ///Maximum frame rate[frame / 1000s]
    s32     framerate;
    ///Video Profile
    u8      profile;
    ///Video Level
    s32     level;
} MP4DMXMpoMp4VideoTrackInf;

Elements

size The size (in bytes) of the video track.
width The width (in pixels) of the video.
height The height (in pixels) of the video.
maxbitrate The maximum bitrate (in bits per second).
avgbitrate The average bitrate (in bits per second).
mediatype The video's media type. This is MP4DMX_MEDIA_TYPE_AVC1 for H.264 (MPEG-4 AVC).
framerate The average frame rate (in frames per 1000 seconds). This is UNKNOWN_INFO if the maximum frame rate cannot be calculated because there are no video samples.
profile The video profile (see table below).
level The video level (see table below).
NOTE:
The following table shows sample values for H.264 profiles and levels.
Sample Value Profile Level
Baseline Profile at Level 3 66 0xe01e
Main Profile at Level 4.1 77 0xc029

ProfileCompatibility is stored in the upper 8 bits of the H.264 level and AVCLevelIndication is stored in the lower 8 bits.

For information, see section 5.2.4.1 AVC Decoder Configuration Record in ISO/IEC 14496-15:2004(E).

Original Data Referenced by MP4DMXMpoMp4VideoTrackInf Structure

Member Referenced Source in MP4 Data File
size trak->size
width SampleEntry->width
height SampleEntry->height
maxbitrate H.264:
  1. btrt->avg_bitrate
  2. avcC->AVCProfileIndication
    avcC->Profile_compatibility
    avc1->avcC->AVCLevelIndication
avgbitrate H.264:
  1. btrt->avg_bitrate
  2. avcC->AVCProfileIndication
    avcC->Profile_compatibility
    avc1->avcC->AVCLevelIndication
mediatype SampleEntry->type
This takes the value avc1 even when bits are reversed.
framerate The average of the following two values.
  • stts->sample_delta
  • trex->default_sample_duration
profile H.264:
  • avcC->AVCProfileIndication
level H.264:
  • avcC->Profile_compatibility (upper 8 bits)
  • avc1->avcC->AVCLevelIndication (lower 8 bits)

In the Referenced Source column, (1) indicates information that exists in an optionally-specified box, and (2) indicates the information used to calculate the return value when (1) could not be obtained. (2) is the maximum bitrate given by each of the various profiles and levels.

Description

This structure stores video track information retrieved from the MP4 data file by the library. This data can be retrieved using the appropriate utility function.

See Also

MP4DMXMpoPARAMETER
MP4DMXMpoOutputFunction
MP4DMXMpoDATA
MP4DMXMpoUNIT
MP4DMXMpoMp4HeaderInf
MP4DMXMpoMp4TrackInf
MP4DMXMpoMp4AudioTrackInf
MP4DMXAvcConfig
MP4DMXAvcParamSets

Revision History

2014/08/01 Initial topic creation.


CONFIDENTIAL