MP4GetSampleDuration - Get the duration of a track sample
#include <mp4.h>
MP4Duration MP4GetSampleDuration(
MP4FileHandle hFile,
MP4TrackId trackId,
MP4SampleId sampleId
);
Upon success, the sample duration in track time scale units. Upon an error, MP4_INVALID_DURATION.
MP4GetSampleDuration returns the duration of the specified sample from the specified track in the track time scale units. See MP4ConvertFromTrackDuration() for how to map this value to another time scale.
MP4(3) MP4ConvertFromTrackDuration(3)