1#ifndef MP4V2_TRACK_PROP_H
2#define MP4V2_TRACK_PROP_H
103 MP4TrackId trackId );
119 MP4TrackId trackId );
249 MP4TrackId trackId );
294 MP4TrackId trackId );
312 MP4TrackId trackId );
330 MP4TrackId trackId );
333bool MP4GetTrackVideoMetadata(
337 uint32_t* pConfigSize );
370 uint32_t* pConfigSize );
392 const uint8_t* pConfig,
393 uint32_t configSize );
398bool MP4GetTrackH264ProfileLevel(
405bool MP4GetTrackH264SeqPictHeaders(
408 uint8_t*** pSeqHeaders,
409 uint32_t** pSeqHeaderSize,
410 uint8_t*** pPictHeader,
411 uint32_t** pPictHeaderSize );
436 uint8_t** pSeqHeaders,
437 uint32_t* pSeqHeaderSize,
438 uint8_t** pPictHeader,
439 uint32_t* pPictHeaderSize );
442bool MP4GetTrackH264LengthSize(
463 MP4TrackId trackId );
491 MP4TrackId trackId );
519 MP4TrackId trackId );
537 MP4TrackId trackId );
554 MP4TrackId trackId );
569 MP4TrackId trackId );
589 const char* atomName );
608 const char* propName,
628 const char* propName,
649 const char* propName,
650 const char** retVal );
674 const char* propName,
676 uint32_t* pValueSize );
695 const char* propName,
714 const char* propName,
734 const char* propName,
754 const char* propName,
755 const uint8_t* pValue,
bool MP4SetTrackStringProperty(MP4FileHandle hFile, MP4TrackId trackId, const char *propName, const char *value)
Set the value of a string property for a track.
MP4SampleId MP4GetTrackNumberOfSamples(MP4FileHandle hFile, MP4TrackId trackId)
Get the number of samples in a track.
bool MP4SetTrackLanguage(MP4FileHandle hFile, MP4TrackId trackId, const char *code)
Set ISO-639-2/T language code of a track.
bool MP4GetTrackFloatProperty(MP4FileHandle hFile, MP4TrackId trackId, const char *propName, float *retVal)
Get the value of a float property for a track.
void MP4FreeH264SeqPictHeaders(uint8_t **pSeqHeaders, uint32_t *pSeqHeaderSize, uint8_t **pPictHeader, uint32_t *pPictHeaderSize)
Frees the memory allocated by MP4GetTrackH264SeqPictHeaders.
bool MP4HaveTrackAtom(MP4FileHandle hFile, MP4TrackId trackId, const char *atomName)
Check for presence of a track atom.
uint32_t MP4GetTrackTimeScale(MP4FileHandle hFile, MP4TrackId trackId)
Get the time scale of a track.
bool MP4GetTrackMediaDataOriginalFormat(MP4FileHandle hFile, MP4TrackId trackId, char *originalFormat, uint32_t buflen)
Get the name of an encrypted track's original media data atom.
const char * MP4GetTrackMediaDataName(MP4FileHandle hFile, MP4TrackId trackId)
Get the name of the track's media data atom.
bool MP4GetTrackBytesProperty(MP4FileHandle hFile, MP4TrackId trackId, const char *propName, uint8_t **ppValue, uint32_t *pValueSize)
Get the value of a bytes property for a track.
bool MP4GetTrackIntegerProperty(MP4FileHandle hFile, MP4TrackId trackId, const char *propName, uint64_t *retVal)
Get the value of an integer property for a track.
bool MP4GetTrackLanguage(MP4FileHandle hFile, MP4TrackId trackId, char *code)
Get ISO-639-2/T language code of a track.
bool MP4GetTrackESConfiguration(MP4FileHandle hFile, MP4TrackId trackId, uint8_t **ppConfig, uint32_t *pConfigSize)
Get the elementary stream (ES) configuration of a track.
bool MP4IsIsmaCrypMediaTrack(MP4FileHandle hFile, MP4TrackId trackId)
Check whether a track is ISMACrypt encrypted.
uint16_t MP4GetTrackVideoHeight(MP4FileHandle hFile, MP4TrackId trackId)
Get the video height in pixels of the specified video track.
bool MP4SetTrackBytesProperty(MP4FileHandle hFile, MP4TrackId trackId, const char *propName, const uint8_t *pValue, uint32_t valueSize)
Set the value of a bytes property for a track.
uint16_t MP4GetTrackVideoWidth(MP4FileHandle hFile, MP4TrackId trackId)
Get the video width in pixels of the specified video track.
int MP4GetTrackAudioChannels(MP4FileHandle hFile, MP4TrackId trackId)
Get the number of channels of the specified audio track.
uint8_t MP4GetTrackEsdsObjectTypeId(MP4FileHandle hFile, MP4TrackId trackId)
Get the encoding object type id from a track's esds atom.
uint32_t MP4GetTrackBitRate(MP4FileHandle hFile, MP4TrackId trackId)
Get the average bit rate in bits per second of the specified track.
const char * MP4GetTrackType(MP4FileHandle hFile, MP4TrackId trackId)
Get the track type.
MP4Duration MP4GetTrackDuration(MP4FileHandle hFile, MP4TrackId trackId)
Get the duration of a track.
bool MP4SetTrackTimeScale(MP4FileHandle hFile, MP4TrackId trackId, uint32_t value)
Set the time scale of a track.
bool MP4SetTrackESConfiguration(MP4FileHandle hFile, MP4TrackId trackId, const uint8_t *pConfig, uint32_t configSize)
Set the elementary stream (ES) configuration of a track.
uint8_t MP4GetTrackAudioMpeg4Type(MP4FileHandle hFile, MP4TrackId trackId)
Get the encoding type of an MPEG-4 audio track.
bool MP4SetTrackName(MP4FileHandle hFile, MP4TrackId trackId, const char *name)
Set track name.
double MP4GetTrackVideoFrameRate(MP4FileHandle hFile, MP4TrackId trackId)
Get the video frame rate of the specified video track.
bool MP4GetTrackName(MP4FileHandle hFile, MP4TrackId trackId, char **name)
Get track name.
bool MP4SetTrackIntegerProperty(MP4FileHandle hFile, MP4TrackId trackId, const char *propName, int64_t value)
Set the value of an integer property for a track.
bool MP4SetTrackFloatProperty(MP4FileHandle hFile, MP4TrackId trackId, const char *propName, float value)
Set the value of a float property for a track.
bool MP4GetTrackStringProperty(MP4FileHandle hFile, MP4TrackId trackId, const char *propName, const char **retVal)
Get the value of a string property for a track.
MP4Duration MP4GetTrackFixedSampleDuration(MP4FileHandle hFile, MP4TrackId trackId)
Get the fixed duration of samples in a track.