mp4converttotrackduration(3) - Linux man page
Name
MP4ConvertToTrackDuration - Convert a duration from a specified time scale to the track time scale.
Syntax
#include <mp4.h>
MP4Duration MP4ConvertToTrackDuration(
MP4FileHandle hFile,
MP4TrackId trackId,
u_int64_t duration,
u_int32_t oldTimeScale
)
Arguments
- hFile
- Specifies the mp4 file to which the operation applies.
- trackId
- Specifies the track from which the duration originates.
- duration
- Specifies the duration that is to be converted.
- oldTimeScale
- Specifies the time scale in ticks per second in which the duration is currently expressed.
Return Values
Upon success, the duration in the track time scale units. Upon error, MP4_INVALID_DURATION.
Description
MP4ConvertToTrackDuration converts a duration such as a sample duration from the specified time scale to the track time scale.
See Also
mp4(3) mp4convertfromtrackduration(3)