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

NAME

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

SYNTAX

10       #include <mp4.h>
11
12       u_int64_t MP4ConvertFromTrackDuration(
13            MP4FileHandle hFile,
14            MP4TrackId trackId,
15            MP4Duration duration,
16            u_int32_t newTimeScale
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       newTimeScale
29              Specifies the new time scale in ticks per second  to  which  the
30              duration should be converted.
31

RETURN VALUES

33       Upon success, the duration in the new time scale units. Upon error, 0.
34

DESCRIPTION

36       MP4ConvertFromTrackDuration  converts a duration such as a sample dura‐
37       tion from the track time scale to another specified  time  scale.  This
38       can  be used by a player application to map all track samples to a com‐
39       mon time scale.
40
41

SEE ALSO

43       MP4(3) MP4GetSampleDuration(3) MP4ConvertToTrackDuration(3)
44
45
46
47Cisco Systems Inc.                Version 0.9                           MP4(3)
Impressum