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

NAME

6       MP4GetSampleTime - Get the start time of a track sample
7

SYNTAX

9       #include <mp4.h>
10
11       MP4Timestamp MP4GetSampleTime(
12            MP4FileHandle hFile,
13            MP4TrackId trackId,
14            MP4SampleId sampleId
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       sampleId
24              Specifies the sample to which the operation applies. Caveat: the
25              first sample has id 1 not 0.
26
27

RETURN VALUES

29       Upon success, the sample start time in track time scale units. Upon  an
30       error, MP4_INVALID_TIMESTAMP.
31

DESCRIPTION

33       MP4GetSampleTime  returns  the  start time of the specified sample from
34       the specified track in the track time scale units. See  MP4ConvertFrom‐
35       TrackTimestamp() for how to map this value to another time scale.
36

SEE ALSO

38       MP4(3) MP4ConvertFromTrackDuration(3)
39
40
41
42Cisco Systems Inc.                Version 0.9                           MP4(3)
Impressum