MP4GetTrackFixedSampleDuration - Man Page

Get the fixed duration of samples in a track

Syntax

#include <mp4.h>

MP4Duration MP4GetTrackFixedSampleDuration(
MP4FileHandle hFile,
MP4TrackId trackId
)

Arguments

hFile

Specifies the mp4 file to which the operation applies.

trackId

Specifies the track to which the operation applies.

Return Values

Upon success, the number of fixed duration of the samples in the track in track time scale units. Upon an error, MP4_INVALID_DURATION.

Description

MP4GetTrackFixedSampleDuration returns the duration of samples in the specified track in the mp4 file, if this value is fixed for all samples. This is typically the case for audio tracks and video tracks. If the track samples have variable duration, then MP4_INVALID_DURATION is returned.

See Also

MP4(3)

Info

Version 0.9 Cisco Systems Inc. MP4 File Format Library