32 uint32_t timeScale DEFAULT(MP4_MSECS_TIME_SCALE) );
76 MP4FileHandle hFile );
96 MP4FileHandle hFile );
125 MP4Duration sampleDuration,
126 uint8_t audioType DEFAULT(MP4_MPEG4_AUDIO_TYPE) );
161MP4TrackId MP4AddAC3AudioTrack(
163 uint32_t samplingRate,
169 uint8_t bit_rate_code );
172MP4TrackId MP4AddAmrAudioTrack(
176 uint8_t modeChangePeriod,
177 uint8_t framesPerSample,
187void MP4SetAmrDecoderVersion(
190 uint8_t decoderVersion );
193void MP4SetAmrModeSet(
199uint16_t MP4GetAmrModeSet(
201 MP4TrackId trackId );
204MP4TrackId MP4AddHrefTrack(
207 MP4Duration sampleDuration,
208 const char* base_url DEFAULT(NULL) );
211const char* MP4GetHrefTrackBaseUrl(
213 MP4TrackId trackId );
245 MP4Duration sampleDuration,
248 uint8_t videoType DEFAULT(MP4_MPEG4_VIDEO_TYPE) );
251MP4TrackId MP4AddH264VideoTrack(
254 MP4Duration sampleDuration,
257 uint8_t AVCProfileIndication,
258 uint8_t profile_compat,
259 uint8_t AVCLevelIndication,
260 uint8_t sampleLenFieldSizeMinusOne );
263void MP4AddH264SequenceParameterSet(
266 const uint8_t* pSequence,
267 uint16_t sequenceLen );
270void MP4AddH264PictureParameterSet(
273 const uint8_t* pPict,
277void MP4SetH263Vendor(
283void MP4SetH263DecoderVersion(
286 uint8_t decoderVersion );
289void MP4SetH263Bitrates(
293 uint32_t maxBitrate );
296MP4TrackId MP4AddH263VideoTrack(
299 MP4Duration sampleDuration,
305 uint32_t maxBitrate );
333 MP4TrackId refTrackId );
336MP4TrackId MP4AddTextTrack(
338 MP4TrackId refTrackId );
341MP4TrackId MP4AddSubtitleTrack(
348MP4TrackId MP4AddSubpicTrack(
355MP4TrackId MP4AddPixelAspectRatio(
357 MP4TrackId refTrackId,
362MP4TrackId MP4AddColr(
364 MP4TrackId refTrackId,
393 MP4FileHandle srcFile,
394 MP4TrackId srcTrackId,
433 MP4FileHandle srcFile,
434 MP4TrackId srcTrackId,
436 bool applyEdits DEFAULT(
false),
457 MP4TrackId trackId );
485 const char* type DEFAULT(NULL),
486 uint8_t subType DEFAULT(0) );
527 const char* type DEFAULT(NULL),
528 uint8_t subType DEFAULT(0) );
545 MP4TrackId trackId );
561 MP4Duration* duration );
577 MP4Duration duration );
588 MP4TrackId trackId );
#define MP4_INVALID_TRACK_ID
Constant: invalid MP4TrackId.
Definition: general.h:49
#define MP4_INVALID_FILE_HANDLE
Constant: invalid MP4FileHandle.
Definition: general.h:48
bool MP4AddIPodUUID(MP4FileHandle hFile, MP4TrackId trackId)
MP4TrackId MP4AddSystemsTrack(MP4FileHandle hFile, const char *type)
Add an MPEG-4 systems track.
bool MP4GetTrackDurationPerChunk(MP4FileHandle hFile, MP4TrackId trackId, MP4Duration *duration)
Get maximum duration of chunk.
MP4TrackId MP4AddVideoTrack(MP4FileHandle hFile, uint32_t timeScale, MP4Duration sampleDuration, uint16_t width, uint16_t height, uint8_t videoType=MP4_MPEG4_VIDEO_TYPE)
Add a video track.
MP4TrackId MP4AddHintTrack(MP4FileHandle hFile, MP4TrackId refTrackId)
Add a hint track.
bool MP4SetTrackDurationPerChunk(MP4FileHandle hFile, MP4TrackId trackId, MP4Duration duration)
Set maximum duration of chunk.
uint32_t MP4GetNumberOfTracks(MP4FileHandle hFile, const char *type=NULL, uint8_t subType=0)
Get the number of tracks.
MP4TrackId MP4CopyTrack(MP4FileHandle srcFile, MP4TrackId srcTrackId, MP4FileHandle dstFile=MP4_INVALID_FILE_HANDLE, bool applyEdits=false, MP4TrackId dstHintTrackReferenceTrack=MP4_INVALID_TRACK_ID)
Make a copy of a specified track.
MP4TrackId MP4AddODTrack(MP4FileHandle hFile)
Add a object descriptor (OD) track.
uint16_t MP4FindTrackIndex(MP4FileHandle hFile, MP4TrackId trackId)
Find a track index.
MP4TrackId MP4AddTrack(MP4FileHandle hFile, const char *type, uint32_t timeScale=MP4_MSECS_TIME_SCALE)
Add a user defined track.
MP4TrackId MP4AddSceneTrack(MP4FileHandle hFile)
Add a scene (BIFS) track.
MP4TrackId MP4AddULawAudioTrack(MP4FileHandle hFile, uint32_t timeScale)
Add ulaw track to mp4 file.
MP4TrackId MP4FindTrackId(MP4FileHandle hFile, uint16_t index, const char *type=NULL, uint8_t subType=0)
Find a track id.
MP4TrackId MP4AddAudioTrack(MP4FileHandle hFile, uint32_t timeScale, MP4Duration sampleDuration, uint8_t audioType=MP4_MPEG4_AUDIO_TYPE)
Add audio track to mp4 file.
MP4TrackId MP4AddALawAudioTrack(MP4FileHandle hFile, uint32_t timeScale)
Add alaw track to mp4 file.
MP4TrackId MP4CloneTrack(MP4FileHandle srcFile, MP4TrackId srcTrackId, MP4FileHandle dstFile=MP4_INVALID_FILE_HANDLE, MP4TrackId dstHintTrackReferenceTrack=MP4_INVALID_TRACK_ID)
Make a clone of a specified track.
bool MP4DeleteTrack(MP4FileHandle hFile, MP4TrackId trackId)
Delete a track.