32 uint32_t timeScale DEFAULT(MP4_MSECS_TIME_SCALE) );
75 MP4FileHandle hFile );
95 MP4FileHandle hFile );
124 MP4Duration sampleDuration,
125 uint8_t audioType DEFAULT(MP4_MPEG4_AUDIO_TYPE) );
160MP4TrackId MP4AddAC3AudioTrack(
162 uint32_t samplingRate,
168 uint8_t bit_rate_code );
171MP4TrackId MP4AddAmrAudioTrack(
175 uint8_t modeChangePeriod,
176 uint8_t framesPerSample,
186void MP4SetAmrDecoderVersion(
189 uint8_t decoderVersion );
192void MP4SetAmrModeSet(
198uint16_t MP4GetAmrModeSet(
200 MP4TrackId trackId );
203MP4TrackId MP4AddHrefTrack(
206 MP4Duration sampleDuration,
207 const char* base_url DEFAULT(NULL) );
210const char* MP4GetHrefTrackBaseUrl(
212 MP4TrackId trackId );
244 MP4Duration sampleDuration,
247 uint8_t videoType DEFAULT(MP4_MPEG4_VIDEO_TYPE) );
250MP4TrackId MP4AddH264VideoTrack(
253 MP4Duration sampleDuration,
256 uint8_t AVCProfileIndication,
257 uint8_t profile_compat,
258 uint8_t AVCLevelIndication,
259 uint8_t sampleLenFieldSizeMinusOne );
262void MP4AddH264SequenceParameterSet(
265 const uint8_t* pSequence,
266 uint16_t sequenceLen );
269void MP4AddH264PictureParameterSet(
272 const uint8_t* pPict,
276void MP4SetH263Vendor(
282void MP4SetH263DecoderVersion(
285 uint8_t decoderVersion );
288void MP4SetH263Bitrates(
292 uint32_t maxBitrate );
295MP4TrackId MP4AddH263VideoTrack(
298 MP4Duration sampleDuration,
304 uint32_t maxBitrate );
332 MP4TrackId refTrackId );
335MP4TrackId MP4AddTextTrack(
337 MP4TrackId refTrackId );
340MP4TrackId MP4AddSubtitleTrack(
347MP4TrackId MP4AddSubpicTrack(
354MP4TrackId MP4AddPixelAspectRatio(
356 MP4TrackId refTrackId,
361MP4TrackId MP4AddColr(
363 MP4TrackId refTrackId,
369MP4TrackId MP4CloneTrack(
370 MP4FileHandle srcFile,
371 MP4TrackId srcTrackId,
376MP4TrackId MP4CopyTrack(
377 MP4FileHandle srcFile,
378 MP4TrackId srcTrackId,
380 bool applyEdits DEFAULT(
false),
386 MP4TrackId trackId );
389uint32_t MP4GetNumberOfTracks(
391 const char* type DEFAULT(NULL),
392 uint8_t subType DEFAULT(0) );
395MP4TrackId MP4FindTrackId(
398 const char* type DEFAULT(NULL),
399 uint8_t subType DEFAULT(0) );
402uint16_t MP4FindTrackIndex(
404 MP4TrackId trackId );
420 MP4Duration* duration );
436 MP4Duration duration );
447 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.
MP4TrackId MP4AddODTrack(MP4FileHandle hFile)
Add a object descriptor (OD) track.
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 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.