MP4GetTrackEditTotalDuration man page
MP4GetTrackEditTotalDuration — Get the total duration of a sequence of track edit segments
MP4EditId editId = MP4_INVALID_EDIT_ID
Specifies the mp4 file to which the operation applies.
Specifies the track to which the operation applies.
Specifies the edit segment for which the total duration is desired. A value of MP4_INVALID_EDIT_ID specifies that all edit segments should be included.
The total duration of the edit segment sequence in track time scale units of the track in the mp4 file.
MP4GetTrackEditTotalDuration returns the total duration of the specified sequence of track edit segments from the first edit segment up to and including the specified edit segment. If the edit id value is MP4_INVALID_EDIT_ID, then the total duration of all of the edit segments is returned.
Caveat: The value is in units of the track time scale.