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

NAME

6       MP4SetTrackTimeScale - Set the time scale of a track
7

SYNTAX

9       #include <mp4.h>
10
11       bool MP4SetTrackTimeScale(
12            MP4FileHandle hFile,
13            MP4TrackId trackId,
14            u_int32_t timeScale
15       )
16

ARGUMENTS

18       hFile  Specifies the mp4 file to which the operation applies.
19
20       trackId
21              Specifies the track to which the operation applies.
22
23       timeScale
24              Specifies the desired time scale for the track.
25

RETURN VALUES

27       Upon success, true (1). Upon an error, false (0).
28

DESCRIPTION

30       MP4SetTrackTimeScale  sets the time scale of the specified track in the
31       mp4 file. The time scale determines the number of clock ticks per  sec‐
32       ond for this track.
33
34       Typically  this  value  is  set once when the track is created. However
35       this call can be used to modify the value if  that  is  desired.  Since
36       track  sample durations are expressed in units of the track time scale,
37       any change to the time scale value will effect the real  time  duration
38       of the samples.
39

SEE ALSO

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