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

NAME

6       MP4ConvertToTrackTimestamp  - Convert a timestamp from a specified time
7       scale to the track time scale.
8

SYNTAX

10       #include <mp4.h>
11
12       MP4Timestamp MP4ConvertToTrackTimestamp(
13            MP4FileHandle hFile,
14            MP4TrackId trackId,
15            u_int64_t timestamp,
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       timestamp
26              Specifies the timestamp that is to be converted.
27
28       oldTimeScale
29              Specifies the time scale in ticks per second in which the  time‐
30              stamp is currently expressed.
31

RETURN VALUES

33       Upon  success, the timestamp in the track time scale units. Upon error,
34       MP4_INVALID_TIMESTAMP.
35

DESCRIPTION

37       MP4ConvertToTrackTimestamp converts a timestamp such as a sample  start
38       time from the specified time scale to the track time scale.
39

SEE ALSO

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