1#ifndef MP4V2_TRACK_PROP_H
2#define MP4V2_TRACK_PROP_H
17 const char* atomname );
52const char* MP4GetTrackMediaDataName(
62bool MP4GetTrackMediaDataOriginalFormat(
69MP4Duration MP4GetTrackDuration(
175uint8_t MP4GetTrackAudioMpeg4Type(
177 MP4TrackId trackId );
180uint8_t MP4GetTrackEsdsObjectTypeId(
182 MP4TrackId trackId );
186MP4Duration MP4GetTrackFixedSampleDuration(
188 MP4TrackId trackId );
191uint32_t MP4GetTrackBitRate(
193 MP4TrackId trackId );
196bool MP4GetTrackVideoMetadata(
200 uint32_t* pConfigSize );
203bool MP4GetTrackESConfiguration(
207 uint32_t* pConfigSize );
210bool MP4SetTrackESConfiguration(
213 const uint8_t* pConfig,
214 uint32_t configSize );
241 uint8_t** pSeqHeaders,
242 uint32_t* pSeqHeaderSize,
243 uint8_t** pPictHeader,
244 uint32_t* pPictHeaderSize );
247bool MP4GetTrackH264ProfileLevel(
254bool MP4GetTrackH264SeqPictHeaders(
257 uint8_t*** pSeqHeaders,
258 uint32_t** pSeqHeaderSize,
259 uint8_t*** pPictHeader,
260 uint32_t** pPictHeaderSize );
263bool MP4GetTrackH264LengthSize(
269MP4SampleId MP4GetTrackNumberOfSamples(
271 MP4TrackId trackId );
274uint16_t MP4GetTrackVideoWidth(
276 MP4TrackId trackId );
279uint16_t MP4GetTrackVideoHeight(
281 MP4TrackId trackId );
284double MP4GetTrackVideoFrameRate(
286 MP4TrackId trackId );
289int MP4GetTrackAudioChannels(
291 MP4TrackId trackId );
294bool MP4IsIsmaCrypMediaTrack(
296 MP4TrackId trackId );
301bool MP4HaveTrackAtom(
304 const char* atomName );
307bool MP4GetTrackIntegerProperty(
310 const char* propName,
311 uint64_t* retvalue );
314bool MP4GetTrackFloatProperty(
317 const char* propName,
321bool MP4GetTrackStringProperty(
324 const char* propName,
325 const char** retvalue );
328bool MP4GetTrackBytesProperty(
331 const char* propName,
333 uint32_t* pValueSize );
336bool MP4SetTrackIntegerProperty(
339 const char* propName,
343bool MP4SetTrackFloatProperty(
346 const char* propName,
350bool MP4SetTrackStringProperty(
353 const char* propName,
357bool MP4SetTrackBytesProperty(
360 const char* propName,
361 const uint8_t* pValue,
bool MP4SetTrackLanguage(MP4FileHandle hFile, MP4TrackId trackId, const char *code)
Set ISO-639-2/T language code of a track.
void MP4FreeH264SeqPictHeaders(uint8_t **pSeqHeaders, uint32_t *pSeqHeaderSize, uint8_t **pPictHeader, uint32_t *pPictHeaderSize)
Frees the memory allocated by MP4GetTrackH264SeqPictHeaders.
uint32_t MP4GetTrackTimeScale(MP4FileHandle hFile, MP4TrackId trackId)
Get the time scale of a track.
bool MP4GetTrackLanguage(MP4FileHandle hFile, MP4TrackId trackId, char *code)
Get ISO-639-2/T language code of a track.
const char * MP4GetTrackType(MP4FileHandle hFile, MP4TrackId trackId)
Get the track type.
bool MP4SetTrackTimeScale(MP4FileHandle hFile, MP4TrackId trackId, uint32_t value)
Set the time scale of a track.
bool MP4SetTrackName(MP4FileHandle hFile, MP4TrackId trackId, const char *name)
Set track name.
bool MP4GetTrackName(MP4FileHandle hFile, MP4TrackId trackId, char **name)
Get track name.