1MP4(3)                      MP4 File Format Library                     MP4(3)
2
3
4

NAME

6       MP4ConvertToTrackDuration  -  Convert  a duration from a specified time
7       scale to the track time scale.
8

SYNTAX

10       #include <mp4.h>
11
12       MP4Duration MP4ConvertToTrackDuration(
13            MP4FileHandle hFile,
14            MP4TrackId trackId,
15            u_int64_t duration,
16            u_int32_t oldTimeScale
17       )
18

ARGUMENTS

20       hFile  Specifies the mp4 file to which the operation applies.
21
22       trackId
23              Specifies the track from which the duration originates.
24
25       duration
26              Specifies the duration that is to be converted.
27
28       oldTimeScale
29              Specifies the time scale in ticks per second in which the  dura‐
30              tion is currently expressed.
31

RETURN VALUES

33       Upon  success,  the duration in the track time scale units. Upon error,
34       MP4_INVALID_DURATION.
35

DESCRIPTION

37       MP4ConvertToTrackDuration converts a duration such as a sample duration
38       from the specified time scale to the track time scale.
39

SEE ALSO

41       MP4(3) MP4ConvertFromTrackDuration(3)
42
43
44
45Cisco Systems Inc.                Version 0.9                           MP4(3)
Impressum