MP4DMXMpoMp4TrackInf

Syntax

#include <cafe/mp4dmx.h>

///Track Information Structure
typedef struct{
    ///track ID
    s32     track_ID;
    ///time scale
    s32 timescale;
    ///Track playing time(Conversion time scale)
    u64     duration;
    ///Media type of the track
    s32     type;
    ///Flags whether to support the demultiplexer
    s32     supported_flag;
    ///Flags whether or not there is the stts Box
    s32     stts_exist_flag;
    ///Flags whether or not there is the tfra Box
    s32     tfra_exist_flag;
    ///Number of SampleEntry
    s32     num_of_entry;
} MP4DMXMpoMp4TrackInf;

Elements

track_ID The track ID.
timescale The time scale.
duration The track's playback time (in time scale units).
type The track's media type.
MP4DMX_VIDEO_TRACK for a video track.
MP4DMX_AUDIO_TRACK for an audio track.
MP4_DMX_TEXT_TRACK for a text track.
MP4DMX_OTHER_TRACK for any other track.
supported_flag A flag that indicates whether demultiplexing is supported. MP4DMX_UNSUPPORTED_TRACK when demultiplexing is not supported MP4DMX_SUPPORTED_TRACK when demultiplexing is supported.
This is MP4DMX_UNSUPPORTED_TRACK for a time scale of 0, for example.
stts_exist_flag A flag that indicates whether an stts Box exists.
This is MP4DMX_STTS_BOX_EXIST if an stts Box exists.
tfra_exist_flag A flag that indicates whether a tfra Box exists.
This is MP4DMX_TFRA_BOX_EXIST if a tfra Box exists.
num_of_entry The number of SampleEntry items.

Original Data Referenced by the MP4DMXMpoMp4TrackInf Structure

Member Variable Reference in MP4 Data File
track_ID tkhd->track_id
timescale mdhd->time_scale
duration stts->sample_delta
type hdlr->handler_type
supported_flag trak
stts_exist_flag stts
tfra_exist_flag tfra
num_of_entry stsd->entry_count

Description

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

See Also

MP4DMXMpoPARAMETER
MP4DMXMpoOutputFunction
MP4DMXMpoDATA
MP4DMXMpoUNIT
MP4DMXMpoMp4HeaderInf
MP4DMXMpoMp4VideoTrackInf
MP4DMXMpoMp4AudioTrackInf
MP4DMXAvcConfig
MP4DMXAvcParamSets

Revision History

2014-07-31 Initial topic creation.


CONFIDENTIAL