MP4GetTrackDuration - Man Page

Get the duration of a track

Syntax

#include <mp4.h>

MP4Duration MP4GetTrackDuration(
MP4FileHandle hFile,
MP4TrackId trackId
)

Arguments

hFile

Specifies the mp4 file to which the operation applies.

trackId

Specifies the track for which the duration is desired.

Return Values

The duration in track time scale units of the track in the mp4 file.

Description

MP4GetTrackDuration returns the total duration of all the samples in the specified track in the mp4 file.

Caveat: The value is in units of the track time scale.

See Also

MP4(3)

Info

Version 0.9 Cisco Systems Inc. MP4 File Format Library