ISOBMFF
ISO Base Media File Format Reference Software Documentation
 
Loading...
Searching...
No Matches
Track related functions

Functions to operate with ISOTrack/MP4Track objects. More...

Enumerations

enum  {
  MP4HintTrackReferenceType = MP4_FOUR_CHAR_CODE('h', 'i', 'n', 't') , MP4StreamDependencyReferenceType = MP4_FOUR_CHAR_CODE('d', 'p', 'n', 'd') , MP4ODTrackReferenceType = MP4_FOUR_CHAR_CODE('m', 'p', 'o', 'd') , MP4SyncTrackReferenceType = MP4_FOUR_CHAR_CODE('s', 'y', 'n', 'c') ,
  MP4DescTrackReferenceType = MP4_FOUR_CHAR_CODE('c', 'd', 's', 'c')
}
 Track reference types. More...
 

Functions

ISOErr MJ2SetTrackMatrix (ISOTrack theTrack, u32 matrix[9])
 This sets the overall transformation matrix for the movie as a whole.
 
ISOErr MJ2GetTrackMatrix (ISOTrack theTrack, u32 outMatrix[9])
 This returns the current matrix.
 
ISOErr MJ2SetTrackLayer (ISOTrack theTrack, s16 layer)
 This sets the ordering of the visual tracks.
 
ISOErr MJ2GetTrackLayer (ISOTrack theTrack, s16 *outLayer)
 This returns the currently set track layer.
 
ISOErr MJ2SetTrackDimensions (ISOTrack theTrack, u32 width, u32 height)
 This sets the width and height of a track.
 
ISOErr MJ2GetTrackDimensions (ISOTrack theTrack, u32 *outWidth, u32 *outHeight)
 This returns the currently set dimensions.
 
ISOErr MJ2SetTrackVolume (ISOTrack theTrack, s16 volume)
 This sets the normal volume of the track.
 
ISOErr MJ2GetTrackVolume (ISOTrack theTrack, s16 *outVolume)
 Returns the currently set track volume.
 
MP4Err MP4AddTrackReference (MP4Track theTrack, MP4Track dependsOn, u32 referenceType, u32 *outReferenceIndex)
 Indicate that there exists a dependency between two tracks.
 
MP4Err MP4AddTrackReferenceWithID (MP4Track theTrack, u32 dependsOnID, u32 dependencyType, u32 *outReferenceIndex)
 Indicate that there exists a dependency between two tracks.
 
MP4Err MP4AddSubSampleInformationToTrack (MP4Track theTrack, MP4GenericAtom *subs)
 
MP4Err MP4SetSubSampleInformationFlags (MP4GenericAtom subsample, u32 flags)
 
MP4Err MP4GetSubSampleInformationEntryFromTrack (MP4Track theTrack, u32 *flags, u32 *entry_count, u32 **sample_delta, u32 **subsample_count, u32 ***subsample_size_array, u32 ***subsample_priority_array, u32 ***subsample_discardable_array)
 
MP4Err MP4AddSubSampleInformationEntry (MP4GenericAtom subsample, u32 sample_delta, u32 subsample_count, MP4Handle subsample_size_array, MP4Handle subsample_priority_array, MP4Handle subsample_discardable_array)
 
MP4Err MP4AddSubSampleInformationEntry2 (MP4GenericAtom subsample, u32 sample_delta, u32 subsample_count, MP4Handle subsample_size_array, MP4Handle subsample_priority_array, MP4Handle subsample_discardable_array, MP4Handle codec_specific_parameters_array)
 Same as MP4AddSubSampleInformationEntry but also allows to add the codec specific parameters.
 
MP4Err MP4AddTrackGroup (MP4Track theTrack, u32 groupID, u32 dependencyType)
 Add track to a track group ID.
 
MP4Err MP4AddTrackToMovieIOD (MP4Track theTrack)
 Add track's ES_Descriptor to its movie's initial object descriptor.
 
MP4Err MP4GetMovieIndTrack (MP4Movie theMovie, u32 trackIndex, MP4Track *outTrack)
 Get track using the track index.
 
MP4Err MP4GetMovieIndTrackSampleEntryType (MP4Movie theMovie, u32 idx, u32 *SEType)
 Get sample entry type of a track.
 
MP4Err MP4GetMovieTrackCount (MP4Movie theMovie, u32 *outTrackCount)
 This function allows you to determine the number of Tracks in a Movie.
 
MP4Err MP4GetTrackDuration (MP4Track theTrack, u64 *outDuration)
 Calculates and returns the duration of the track.
 
MP4Err MP4GetTrackEnabled (MP4Track theTrack, u32 *outEnabled)
 This returns a non-zero value in outEnabled if the track is enabled.
 
MP4Err MP4GetTrackID (MP4Track theTrack, u32 *outTrackID)
 Get the elementary stream ID for a given Track.
 
MP4Err MP4GetTrackMedia (MP4Track theTrack, MP4Media *outMedia)
 Returns the Media for a given Track.
 
MP4Err MP4GetTrackMovie (MP4Track theTrack, MP4Movie *outMovie)
 Get the Movie associated with a Track.
 
MP4Err MP4GetTrackOffset (MP4Track track, u32 *outMovieOffsetTime)
 Get the track's offset (the length of its initial empty edit).
 
MP4Err MP4GetTrackReference (MP4Track theTrack, u32 referenceType, u32 referenceIndex, MP4Track *outReferencedTrack)
 Obtain a specific track reference of the specified type.
 
MP4Err MP4GetTrackReferenceCount (MP4Track theTrack, u32 referenceType, u32 *outReferenceCount)
 Determine the number of a particular type of track references that are contained in a track.
 
MP4Err MP4GetTrackGroup (MP4Track theTrack, u32 groupType, u32 *outGroupId)
 Get the track group of a track.
 
MP4Err MP4AddAtomToTrack (MP4Track theTrack, MP4GenericAtom the_atom)
 Adds the given atom to the track.
 
MP4Err MP4InsertMediaIntoTrack (MP4Track trak, s32 trackStartTime, s32 mediaStartTime, u64 segmentDuration, s32 mediaRate)
 Adds a reference to the specified segment of media into a Track.
 
MP4Err MP4NewMovieTrack (MP4Movie theMovie, u32 newTrackFlags, MP4Track *outTrack)
 Creates a new track for the movie.
 
MP4Err MP4NewMovieTrackWithID (MP4Movie theMovie, u32 newTrackFlags, u32 newTrackID, MP4Track *outTrack)
 Creates a new track for the movie with a specified track ID.
 
MP4Err MP4NewTrackMedia (MP4Track theTrack, MP4Media *outMedia, u32 handlerType, u32 timeScale, MP4Handle dataReference)
 Creates the media container for a track.
 
MP4Err MP4SetTrackEnabled (MP4Track theTrack, u32 enabled)
 Enables or disables the track.
 
MP4Err MP4SetTrackOffset (MP4Track track, u32 movieOffsetTime)
 Modifies the duration of the empty space that lies at the beginning of the track, thus changing the duration of the entire track.
 
MP4Err MP4TrackTimeToMediaTime (MP4Track theTrack, u64 inTrackTime, s64 *outMediaTime)
 Convert from a time expressed in the movie time scale to a time expressed in the media time scale.
 
MP4Err ISOSetTrackFragmentDefaults (MP4Track theTrack, u32 duration, u32 size, u32 is_sync, u8 pad)
 Sets the default sample duration, size, sync-flag, and padding bits for samples added into movie fragments, for this track.
 
MP4Err MP4GetTrackEditlistEntryCount (MP4Track theTrack, u32 *entryCount)
 This returns the number of existent Edit list entries.
 
MP4Err MP4GetTrackEditlist (MP4Track theTrack, u64 *outSegmentDuration, s64 *outMediaTime, u32 entryIndex)
 This returns a non-zero value in outSegmentDuration and outMediaTime if the Edit list information is present and valid.
 

Detailed Description

Functions to operate with ISOTrack/MP4Track objects.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Track reference types.

Enumerator
MP4HintTrackReferenceType 

for hint tracks, to point to the media track they depend on

MP4StreamDependencyReferenceType 

for elementary stream tracks, to indicate other elementary stream tracks they depend on (an enhancement layer points to a base layer, for example)

MP4ODTrackReferenceType 

for object descriptor tracks, to point to the elementary stream whose metadata is being updated.

Function Documentation

◆ ISOSetTrackFragmentDefaults()

MP4Err ISOSetTrackFragmentDefaults ( MP4Track  theTrack,
u32  duration,
u32  size,
u32  is_sync,
u8  pad 
)

Sets the default sample duration, size, sync-flag, and padding bits for samples added into movie fragments, for this track.

Note
This function must be called for each track to which fragment samples will be added, before the first fragment is started.
Parameters
theTrackinput track object
durationdefault sample duration
sizedefault sample size
is_syncdefault sample sync-flag
paddefault sample padding bits
Returns
MP4Err error code

◆ MJ2GetTrackDimensions()

ISOErr MJ2GetTrackDimensions ( ISOTrack  theTrack,
u32 *  outWidth,
u32 *  outHeight 
)

This returns the currently set dimensions.

Parameters
theTrackinput track object
outWidthoutput width
outHeightoutput height
Returns
ISOErr error code

◆ MJ2GetTrackLayer()

ISOErr MJ2GetTrackLayer ( ISOTrack  theTrack,
s16 *  outLayer 
)

This returns the currently set track layer.

Parameters
theTrackinput track object
outLayeroutput layer value
Returns
ISOErr error code

◆ MJ2GetTrackMatrix()

ISOErr MJ2GetTrackMatrix ( ISOTrack  theTrack,
u32  outMatrix[9] 
)

This returns the current matrix.

Parameters
theTrackinput track object
outMatrixoutput matrix
Returns
ISOErr error code

◆ MJ2GetTrackVolume()

ISOErr MJ2GetTrackVolume ( ISOTrack  theTrack,
s16 *  outVolume 
)

Returns the currently set track volume.

Parameters
theTrackinput track object
outVolumeoutput volume
Returns
ISOErr error code

◆ MJ2SetTrackDimensions()

ISOErr MJ2SetTrackDimensions ( ISOTrack  theTrack,
u32  width,
u32  height 
)

This sets the width and height of a track.

Note that this may be different from the width and height of the media; scaling may occur. All MJ2 visual tracks should have this set explicitly.

Parameters
theTrackinput track object
widthinput width
heightinput height
Returns
ISOErr error code

◆ MJ2SetTrackLayer()

ISOErr MJ2SetTrackLayer ( ISOTrack  theTrack,
s16  layer 
)

This sets the ordering of the visual tracks.

It should be set if there is more than one visual track. Smaller numbers are closer to the front.

Parameters
theTrackinput track object
layerlayer value
Returns
ISOErr error code

◆ MJ2SetTrackMatrix()

ISOErr MJ2SetTrackMatrix ( ISOTrack  theTrack,
u32  matrix[9] 
)

This sets the overall transformation matrix for the movie as a whole.

The matrix allows for 2D transformations; see the MJ2 specification for the details of how it is applied. The default matrix is the unitary transform.

Parameters
theTrackinput track object
matrixinput matrix
Returns
ISOErr error code

◆ MJ2SetTrackVolume()

ISOErr MJ2SetTrackVolume ( ISOTrack  theTrack,
s16  volume 
)

This sets the normal volume of the track.

The normal, default, value is 1.0. The volume is expressed as an 8.8 fixed-point number. Different audio tracks may have different volume settings; they are mixed for playback.

Parameters
theTrackinput track object
volumeinput volume
Returns
ISOErr error code

◆ MP4AddAtomToTrack()

MP4Err MP4AddAtomToTrack ( MP4Track  theTrack,
MP4GenericAtom  the_atom 
)

Adds the given atom to the track.

See also
MP4NewForeignAtom, MP4NewUUIDAtom
Parameters
theTrackinput track object
the_atomatom to add
Returns
MP4Err error code

◆ MP4AddSubSampleInformationEntry()

MP4Err MP4AddSubSampleInformationEntry ( MP4GenericAtom  subsample,
u32  sample_delta,
u32  subsample_count,
MP4Handle  subsample_size_array,
MP4Handle  subsample_priority_array,
MP4Handle  subsample_discardable_array 
)
Parameters
subsample
sample_delta
subsample_count
subsample_size_array
subsample_priority_array
subsample_discardable_array
Returns
MP4Err error code

◆ MP4AddSubSampleInformationEntry2()

MP4Err MP4AddSubSampleInformationEntry2 ( MP4GenericAtom  subsample,
u32  sample_delta,
u32  subsample_count,
MP4Handle  subsample_size_array,
MP4Handle  subsample_priority_array,
MP4Handle  subsample_discardable_array,
MP4Handle  codec_specific_parameters_array 
)

Same as MP4AddSubSampleInformationEntry but also allows to add the codec specific parameters.

Parameters
subsample
sample_delta
subsample_count
subsample_size_array
subsample_priority_array
subsample_discardable_array
codec_specific_parameters_array
Returns
MP4Err error code

◆ MP4AddSubSampleInformationToTrack()

MP4Err MP4AddSubSampleInformationToTrack ( MP4Track  theTrack,
MP4GenericAtom subs 
)
Parameters
theTrackinput track object
subs
Returns
MP4Err error code

◆ MP4AddTrackGroup()

MP4Err MP4AddTrackGroup ( MP4Track  theTrack,
u32  groupID,
u32  dependencyType 
)

Add track to a track group ID.

If no track group with the dependency type is found in the track one is created and added to theTrack.

Parameters
theTrackinput track object
groupIDtrack_group_id in the TrackGroupTypeBox
dependencyTypetrack_group_type of the TrackGroupTypeBox
Returns
MP4Err error code

◆ MP4AddTrackReference()

MP4Err MP4AddTrackReference ( MP4Track  theTrack,
MP4Track  dependsOn,
u32  referenceType,
u32 *  outReferenceIndex 
)

Indicate that there exists a dependency between two tracks.

Parameters
theTracktrack object to which the track reference will be added
dependsOntrack object on which theTrack depends
referenceTyperefenrece type fourcc. Could be one of the following values, or any other reference type set with MP4_FOUR_CHAR_CODE():
outReferenceIndexoutput reference number. This is only useful for OD streams because the other reference types only allow one reference per track.
Returns
MP4Err error code

◆ MP4AddTrackReferenceWithID()

MP4Err MP4AddTrackReferenceWithID ( MP4Track  theTrack,
u32  dependsOnID,
u32  dependencyType,
u32 *  outReferenceIndex 
)

Indicate that there exists a dependency between two tracks.

Similar to MP4AddTrackReference() but allows you to set the reference using a track ID rather than a track.

Parameters
theTracktrack object to which the track reference will be added
dependsOnIDtrack ID on which theTrack depends
dependencyTypesame as in MP4AddTrackReference()
outReferenceIndexoutput reference number
Returns
MP4Err error code

◆ MP4AddTrackToMovieIOD()

MP4Err MP4AddTrackToMovieIOD ( MP4Track  theTrack)

Add track's ES_Descriptor to its movie's initial object descriptor.

This should be called for any tracks that need to appear in the initial object descriptor other than the initial BIFS track or the OD track.

Parameters
theTrackinput track object
Returns
MP4Err error code

◆ MP4GetMovieIndTrack()

MP4Err MP4GetMovieIndTrack ( MP4Movie  theMovie,
u32  trackIndex,
MP4Track outTrack 
)

Get track using the track index.

Use this to sequence through tracks in the Movie without regard to the trackID.

Parameters
theMovieinput movie object
trackIndexindex of the track ranges between 1 and the number of tracks in theMovie.
outTrackoutput track object
Returns
MP4Err error code

◆ MP4GetMovieIndTrackSampleEntryType()

MP4Err MP4GetMovieIndTrackSampleEntryType ( MP4Movie  theMovie,
u32  idx,
u32 *  SEType 
)

Get sample entry type of a track.

Note
This function only returns the first sample entry type.
Parameters
theMovieinput movie object
idxindex of the track ranges between 1 and the number of tracks in theMovie.
SEType[out] sample entry type (4CC)

◆ MP4GetMovieTrackCount()

MP4Err MP4GetMovieTrackCount ( MP4Movie  theMovie,
u32 *  outTrackCount 
)

This function allows you to determine the number of Tracks in a Movie.

Parameters
theMovieinput movie object
outTrackCountoutput number of tracks.
Returns
MP4Err error code

◆ MP4GetSubSampleInformationEntryFromTrack()

MP4Err MP4GetSubSampleInformationEntryFromTrack ( MP4Track  theTrack,
u32 *  flags,
u32 *  entry_count,
u32 **  sample_delta,
u32 **  subsample_count,
u32 ***  subsample_size_array,
u32 ***  subsample_priority_array,
u32 ***  subsample_discardable_array 
)
Parameters
theTrackinput track object
flags
entry_count
sample_delta
subsample_count
subsample_size_array
subsample_priority_array
subsample_discardable_array
Returns
MP4Err error code

◆ MP4GetTrackDuration()

MP4Err MP4GetTrackDuration ( MP4Track  theTrack,
u64 *  outDuration 
)

Calculates and returns the duration of the track.

If there is an edit list, it is the sum of the durations of the edits. In the absence of an edit list, it is the track’s cumulative sample durations.

Parameters
theTrackinput track object
outDurationoutput duration of the track in the movie's timescale.
Returns
MP4Err error code

◆ MP4GetTrackEditlist()

MP4Err MP4GetTrackEditlist ( MP4Track  theTrack,
u64 *  outSegmentDuration,
s64 *  outMediaTime,
u32  entryIndex 
)

This returns a non-zero value in outSegmentDuration and outMediaTime if the Edit list information is present and valid.

Parameters
theTrackinput track object
outSegmentDurationoutput segment duration
outMediaTimeoutput media time
entryIndexdefines the one-based index of the entry to return
Returns
MP4Err error code

◆ MP4GetTrackEditlistEntryCount()

MP4Err MP4GetTrackEditlistEntryCount ( MP4Track  theTrack,
u32 *  entryCount 
)

This returns the number of existent Edit list entries.

Returns the number of existent Edit list entries in entryCount if the Edit list information is present, otherwise 0.

Parameters
theTrackinput track object
entryCountoutput number of Edit list entries
Returns
MP4Err error code

◆ MP4GetTrackEnabled()

MP4Err MP4GetTrackEnabled ( MP4Track  theTrack,
u32 *  outEnabled 
)

This returns a non-zero value in outEnabled if the track is enabled.

Parameters
theTrackinput track object
outEnabledoutput enabled flag is a non-zero value if the track is enabled
Returns
MP4Err error code

◆ MP4GetTrackGroup()

MP4Err MP4GetTrackGroup ( MP4Track  theTrack,
u32  groupType,
u32 *  outGroupId 
)

Get the track group of a track.

Parameters
theTrackinput track object
groupTypegroup type
outGroupIdoutput group ID
Returns
MP4Err error code

◆ MP4GetTrackID()

MP4Err MP4GetTrackID ( MP4Track  theTrack,
u32 *  outTrackID 
)

Get the elementary stream ID for a given Track.

Parameters
theTrackinput track object
outTrackIDoutput track ID
Returns
MP4Err error code

◆ MP4GetTrackMedia()

MP4Err MP4GetTrackMedia ( MP4Track  theTrack,
MP4Media outMedia 
)

Returns the Media for a given Track.

An error is returned if the track contains no media

Parameters
theTrackinput track object
outMediaoutput pointer to a track media object
Returns
MP4Err error code

◆ MP4GetTrackMovie()

MP4Err MP4GetTrackMovie ( MP4Track  theTrack,
MP4Movie outMovie 
)

Get the Movie associated with a Track.

Parameters
theTrackinput track object
outMovieoutput pointer to a movie object
Returns
MP4Err error code

◆ MP4GetTrackOffset()

MP4Err MP4GetTrackOffset ( MP4Track  track,
u32 *  outMovieOffsetTime 
)

Get the track's offset (the length of its initial empty edit).

Parameters
trackinput track object
outMovieOffsetTimeoutput movie offset value in the Movie's time scale.
Returns
MP4Err error code

◆ MP4GetTrackReference()

MP4Err MP4GetTrackReference ( MP4Track  theTrack,
u32  referenceType,
u32  referenceIndex,
MP4Track outReferencedTrack 
)

Obtain a specific track reference of the specified type.

Parameters
theTrackinput track object
referenceTypeThe type of track reference you wish to index
referenceIndexThe particular reference of this type that you wish to retrieve. This is usually one, since most track references only allow one entry.
outReferencedTrackoutput pointer to a track object that is referenced.
Returns
MP4Err error code

◆ MP4GetTrackReferenceCount()

MP4Err MP4GetTrackReferenceCount ( MP4Track  theTrack,
u32  referenceType,
u32 *  outReferenceCount 
)

Determine the number of a particular type of track references that are contained in a track.

Parameters
theTrackinput track object
referenceTypeinput reference type
outReferenceCountnumber of track references of a specific type. If the track doesn't contain any references of the specified type the return value will be zero.
Returns
MP4Err error code

◆ MP4InsertMediaIntoTrack()

MP4Err MP4InsertMediaIntoTrack ( MP4Track  trak,
s32  trackStartTime,
s32  mediaStartTime,
u64  segmentDuration,
s32  mediaRate 
)

Adds a reference to the specified segment of media into a Track.

Note
This may create an edit list entry for this track.
Parameters
trakinput track object
trackStartTimetime (in the movie’s time scale) at which the media is to be inserted in to the track
mediaStartTimetime (in the media’s time scale) at which the desired media segment begins
segmentDurationduration (in the media’s time scale) of the segment
mediaRateThe desired playback rate of the media. A value of 1 indicates normal rate. The only other permitted value is -1 which indicates a ’dwell’ should occur.
Returns
MP4Err error code

◆ MP4NewMovieTrack()

MP4Err MP4NewMovieTrack ( MP4Movie  theMovie,
u32  newTrackFlags,
MP4Track outTrack 
)

Creates a new track for the movie.

Parameters
theMovieinput movie object
newTrackFlagstrack flags can be zero or one of:
Flags value Description
ISONewTrackIsVisual if the track will contain visual media
ISONewTrackIsAudio if the track will contain audio media
ISONewTrackIsPrivate if the track will not contain a media type known to MPEG-4
ISONewTrackIsMetadata if the track will be a meta-data track
outTrackoutput track object
Returns
MP4Err error code

◆ MP4NewMovieTrackWithID()

MP4Err MP4NewMovieTrackWithID ( MP4Movie  theMovie,
u32  newTrackFlags,
u32  newTrackID,
MP4Track outTrack 
)

Creates a new track for the movie with a specified track ID.

Parameters
theMovieinput movie object
newTrackFlagstrack flags as in MP4NewMovieTrack()
newTrackIDinput track ID to set for a new track
outTrackoutput track object
Returns
MP4Err error code

◆ MP4NewTrackMedia()

MP4Err MP4NewTrackMedia ( MP4Track  theTrack,
MP4Media outMedia,
u32  handlerType,
u32  timeScale,
MP4Handle  dataReference 
)

Creates the media container for a track.

Parameters
theTrackinput track object
outMediaoutput pointer to a media object
handlerTypeDescribes the stream type at a high level. Use one of the handler types from ISOMovies.h. Examples are ISOVisualHandlerType, ISOAudioHandlerType and ISOHintHandlerType.
timeScaleThe media time scale. This is the time coordinate system for the media. You express durations as a multiple of this value, so typical values are the sampling rate for audio, or frame rate for video.
dataReferenceA URL that indicates the location of the media samples. This must either be NULL to indicate that the samples are included in the movie’s file, or a "file://" URL encoded in UTF-8. This data reference is given index 1 in the Media. You can add others using MP4AddMediaDataReference()
Returns
MP4Err error code

◆ MP4SetSubSampleInformationFlags()

MP4Err MP4SetSubSampleInformationFlags ( MP4GenericAtom  subsample,
u32  flags 
)
Parameters
subsample
flags
Returns
MP4Err error code

◆ MP4SetTrackEnabled()

MP4Err MP4SetTrackEnabled ( MP4Track  theTrack,
u32  enabled 
)

Enables or disables the track.

Parameters
theTrackinput track object
enabledSet enabled to a nonzero value to enable the track, or zero to disable the track
Returns
MP4Err error code

◆ MP4SetTrackOffset()

MP4Err MP4SetTrackOffset ( MP4Track  track,
u32  movieOffsetTime 
)

Modifies the duration of the empty space that lies at the beginning of the track, thus changing the duration of the entire track.

Note
Call this function after you have constructed your track - it relies on being able to find the duration of the media in the track.
Parameters
trackinput track object
movieOffsetTimetime offset as a time value in the movie’s time scale
Returns
MP4Err error code

◆ MP4TrackTimeToMediaTime()

MP4Err MP4TrackTimeToMediaTime ( MP4Track  theTrack,
u64  inTrackTime,
s64 *  outMediaTime 
)

Convert from a time expressed in the movie time scale to a time expressed in the media time scale.

Parameters
theTrackinput track object
inTrackTimeinput track timestamp
outMediaTimeoutput media timestamp (in the media time scale)
Returns
MP4Err error code