MP4ConvertFromTrackDuration - Convert a duration from the track time scale to a specified time scale.
#include <mp4.h>
u_int64_t MP4ConvertFromTrackDuration(
MP4FileHandle hFile,
MP4TrackId trackId,
MP4Duration duration,
u_int32_t newTimeScale
)
Upon success, the duration in the new time scale units. Upon error, 0.
MP4ConvertFromTrackDuration converts a duration such as a sample duration from the track time scale to another specified time scale. This can be used by a player application to map all track samples to a common time scale.
MP4(3) MP4GetSampleDuration(3) MP4ConvertToTrackDuration(3)